1 46 package org.codehaus.groovy.ast; 47 48 import org.codehaus.groovy.ast.stmt.*; 49 50 51 57 public class ConstructorNode extends MetadataNode { 58 59 private int modifiers; 60 private Parameter[] parameters; 61 private Statement code; 62 private VariableScope variableScope; 63 64 public ConstructorNode(int modifiers, Statement code) { 65 this(modifiers, Parameter.EMPTY_ARRAY, code); 66 } 67 68 public ConstructorNode(int modifiers, Parameter[] parameters, Statement code) { 69 this.modifiers = modifiers; 70 this.parameters = parameters; 71 this.code = code; 72 } 73 74 public Statement getCode() { 75 return code; 76 } 77 78 public void setCode(Statement code) { 79 this.code = code; 80 } 81 82 public int getModifiers() { 83 return modifiers; 84 } 85 86 public Parameter[] getParameters() { 87 return parameters; 88 } 89 90 public VariableScope getVariableScope() { 91 return variableScope; 92 } 93 94 public void setVariableScope(VariableScope variableScope) { 95 this.variableScope = variableScope; 96 } 97 98 } 99 | Popular Tags |