package org.antlr.v4.codegen.model.decl;
import org.antlr.v4.codegen.OutputModelFactory;
import org.antlr.v4.codegen.model.SrcOp;
public class Decl extends SrcOp {
public String name;
public String decl;
public boolean isLocal;
public StructDecl ctx;
public Decl(OutputModelFactory factory, String name, String decl) {
this(factory, name);
this.decl = decl;
}
public Decl(OutputModelFactory factory, String name) {
super(factory);
this.name = name;
}
@Override
public int hashCode() {
return name.hashCode();
}
@Override
public boolean equals(Object obj) {
if ( this==obj ) return true;
if ( !(obj instanceof Decl) ) return false;
if ( obj instanceof ContextGetterDecl ) return false;
return name.equals(((Decl) obj).name);
}
}