cager.jexpr.ast
Class ClassDeclaration
java.lang.Object
cager.jexpr.ast.AST
cager.jexpr.ast.ClassDeclaration
- public class ClassDeclaration
- extends AST
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassDeclaration
public ClassDeclaration()
getName
public Identifier getName()
setName
public void setName(Identifier name)
add
public void add(MethodDeclaration md)
getMethod
public MethodDeclaration getMethod(int index)
getMethod
public MethodDeclaration getMethod(java.lang.String methodName)
getChildren
public AST[] getChildren()
- Specified by:
getChildren in class AST
getMethods
public MethodDeclaration[] getMethods()
visit
public java.lang.Object visit(Visitor v,
java.lang.Object o)
throws ParseException
- Description copied from class:
AST
- Provided to implement the visitor pattern.
- Specified by:
visit in class AST
- Throws:
ParseException
dump
public void dump(int level)
- Description copied from class:
AST
- Dump this node and all children to System.out.
- Overrides:
dump in class AST