Exemplo n.º 1
0
 public MethodNode()
 {
     encapsulation    = null;
     methodHeaderNode = null;
     statemetBlock    = null;
     Modifier         = null;
     evaluated        = false;
 }
Exemplo n.º 2
0
 public MethodNode(MethodHeaderNode methodHeaderNode, StatementBlockNode statemetBlock, Token token)
 {
     this.methodHeaderNode = methodHeaderNode;
     this.encapsulation    = new EncapsulationNode(TokenType.RW_PRIVATE, token);
     this.statemetBlock    = statemetBlock;
     this.Modifier         = null;
     this.token            = token;
     evaluated             = false;
 }
Exemplo n.º 3
0
 public ConstructorNode(IdNode identifier, List <ParameterNode> parameters,
                        ConstructorInitializerNode initializer, StatementBlockNode statementBlock, Token token)
 {
     this.identifier     = identifier;
     this.parameters     = parameters;
     this.initializer    = initializer;
     this.statementBlock = statementBlock;
     this.encapsulation  = null;
     this.token          = token;
 }
Exemplo n.º 4
0
 public FieldNode(IdNode identifier, TypeNode type, bool isStatic, EncapsulationNode encapsulation,
                  VariableInitializerNode assigner, Token token)
 {
     this.identifier    = identifier;
     this.type          = type;
     this.isStatic      = isStatic;
     this.encapsulation = encapsulation;
     this.assigner      = assigner;
     this.token         = token;
 }
Exemplo n.º 5
0
 public void setEncapsulation(EncapsulationNode encapsulation)
 {
     this.encapsulation = encapsulation;
 }