Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 public LocalVariableDeclarationStatement(List <Modifier> modifiers, JavaType type, string varName)
 {
     this.modifiers = modifiers;
     this.type      = type;
     this.varName   = varName;
 }
Exemplo n.º 3
0
 public Parameter(List <Modifier> modifiers, JavaType arraytype, string IDENT)
 {
     this.modifiers = modifiers;
     this.arraytype = arraytype;
     this.IDENT     = IDENT;
 }
Exemplo n.º 4
0
 public ArrayType(JavaType innerType)
 {
     this.innerType = innerType;
     this.name      = innerType.GetTypeName() + "[]";
 }
Exemplo n.º 5
0
 public bool Equal(JavaType other)
 {
     return(name.Equals(other.GetTypeName()));
 }
Exemplo n.º 6
0
 public bool Compatible(JavaType other)
 {
     return(Equal(other));
 }