org.qbicc.graph.literal.InstanceMethodLiteral Maven / Gradle / Ivy
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