All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.qbicc.graph.literal.InstanceMethodLiteral Maven / Gradle / Ivy

There is a newer version: 0.77.0
Show newest version
package org.qbicc.graph.literal;

import org.qbicc.type.InstanceMethodType;
import org.qbicc.type.definition.element.ExecutableElement;
import org.qbicc.type.definition.element.InstanceMethodElement;

/**
 *
 */
public final class InstanceMethodLiteral extends MethodLiteral {
    InstanceMethodLiteral(InstanceMethodElement element) {
        super(element);
    }

    InstanceMethodLiteral(ExecutableElement element) {
        this((InstanceMethodElement) element);
    }

    @Override
    public InstanceMethodElement getExecutable() {
        return (InstanceMethodElement) super.getExecutable();
    }

    @Override
    public InstanceMethodType getPointeeType() {
        return getExecutable().getType();
    }

    @Override
    public boolean equals(MethodLiteral other) {
        return other instanceof InstanceMethodLiteral iml && equals(iml);
    }

    public boolean equals(InstanceMethodLiteral other) {
        return super.equals(other);
    }

    @Override
    public  R accept(LiteralVisitor visitor, T param) {
        return visitor.visit(param, this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy