public ClassDeclNode(IdentifierNode classNameNode, ExtendsNode extendsClassNode, VariableDeclListNode variableDeclListNode, MethodDeclListNode methodDeclListNode, int lineNumber) { this.className = classNameNode; this.extendsClass = extendsClassNode; this.variableDeclList = variableDeclListNode; this.methodDeclList = methodDeclListNode; this.lineNumber = lineNumber; }
public MethodDeclNode(TypeNode typeNode, IdentifierNode identifierNode, ParamDeclListNode paramListNode, VariableDeclListNode variableListNode, StatementListNode statementListNode, int lineNumber) { this.methodType = typeNode; this.methodName = identifierNode; this.paramDeclList = paramListNode; this.variableDeclList = variableListNode; this.statementList = statementListNode; this.lineNumber = lineNumber; }