public MethodDeclaration(List <Modifier> modifiers, JavaType type, string methodname, List <Parameter> parameters, List <Statement> statements) { this.modifiers = modifiers; this.type = type; this.methodname = methodname; this.parameters = parameters; this.statements = statements; }
public LocalVariableDeclarationStatement(List <Modifier> modifiers, JavaType type, string varName) { this.modifiers = modifiers; this.type = type; this.varName = varName; }
public Parameter(List <Modifier> modifiers, JavaType arraytype, string IDENT) { this.modifiers = modifiers; this.arraytype = arraytype; this.IDENT = IDENT; }
public ArrayType(JavaType innerType) { this.innerType = innerType; this.name = innerType.GetTypeName() + "[]"; }
public bool Equal(JavaType other) { return(name.Equals(other.GetTypeName())); }
public bool Compatible(JavaType other) { return(Equal(other)); }