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

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

There is a newer version: 0.77.0
Show newest version
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