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

io.github.kiryu1223.expressionTree.expressions.StaticClassExpression Maven / Gradle / Ivy

package io.github.kiryu1223.expressionTree.expressions;

public class StaticClassExpression extends Expression
{
    private final Class type;

    public StaticClassExpression(Class type)
    {
        this.type = type;
    }

    public Class getType()
    {
        return type;
    }

    @Override
    public Kind getKind()
    {
        return Kind.StaticClass;
    }

    @Override
    public String toString()
    {
        return type.getSimpleName() + ".class";
    }

    @Override
    public boolean equals(Object obj)
    {
        if (this == obj) return true;
        if (obj == null || getClass() != obj.getClass()) return false;
        StaticClassExpression that = (StaticClassExpression) obj;
        return type.equals(that.type);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy