org.qbicc.graph.literal.StaticMethodLiteral Maven / Gradle / Ivy
package org.qbicc.graph.literal;
import org.qbicc.type.StaticMethodType;
import org.qbicc.type.definition.element.ExecutableElement;
import org.qbicc.type.definition.element.StaticMethodElement;
/**
*
*/
public final class StaticMethodLiteral extends MethodLiteral {
StaticMethodLiteral(StaticMethodElement element) {
super(element);
}
StaticMethodLiteral(ExecutableElement element) {
this((StaticMethodElement) element);
}
@Override
public StaticMethodElement getExecutable() {
return (StaticMethodElement) super.getExecutable();
}
@Override
public StaticMethodType getPointeeType() {
return getExecutable().getType();
}
@Override
public boolean equals(MethodLiteral other) {
return other instanceof StaticMethodLiteral sml && equals(sml);
}
public boolean equals(StaticMethodLiteral 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