net.sourceforge.jane.jjtree
Class JavaClassDeclaration

java.lang.Object
  |
  +--net.sourceforge.jane.jjtree.SimpleNode
        |
        +--net.sourceforge.jane.jjtree.JavaClassDeclaration
All Implemented Interfaces:
JavaParserConstants, Node

public class JavaClassDeclaration
extends SimpleNode
implements JavaParserConstants


Fields inherited from class net.sourceforge.jane.jjtree.SimpleNode
children, id, parent, parser
 
Fields inherited from interface net.sourceforge.jane.jjtree.JavaParserConstants
_DEFAULT, ABSTRACT, ANDASSIGN, ASSERT, ASSIGN, BANG, BIT_AND, BIT_OR, BOOLEAN, BREAK, BYTE, CASE, CATCH, CHAR, CHARACTER_LITERAL, CLASS, COLON, COMMA, CONST, CONTINUE, DECIMAL_LITERAL, DECR, DEFAULT, DIGIT, DO, DOT, DOUBLE, ELSE, EOF, EQ, EXPONENT, EXTENDS, FALSE, FINAL, FINALLY, FLOAT, FLOATING_POINT_LITERAL, FOR, FORMAL_COMMENT, GE, GOTO, GT, HEX_LITERAL, HOOK, IDENTIFIER, IF, IMPLEMENTS, IMPORT, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, INCR, INSTANCEOF, INT, INTEGER_LITERAL, INTERFACE, LBRACE, LBRACKET, LE, LETTER, LONG, LPAREN, LSHIFT, LSHIFTASSIGN, LT, MINUS, MINUSASSIGN, MULTI_LINE_COMMENT, NATIVE, NE, NEW, NULL, OCTAL_LITERAL, ORASSIGN, PACKAGE, PLUS, PLUSASSIGN, PRIVATE, PROTECTED, PUBLIC, RBRACE, RBRACKET, REM, REMASSIGN, RETURN, RPAREN, RSIGNEDSHIFT, RSIGNEDSHIFTASSIGN, RUNSIGNEDSHIFT, RUNSIGNEDSHIFTASSIGN, SC_AND, SC_OR, SEMICOLON, SHORT, SINGLE_LINE_COMMENT, SLASH, SLASHASSIGN, STAR, STARASSIGN, STATIC, STRICTFP, STRING_LITERAL, SUPER, SWITCH, SYNCHRONIZED, THIS, THROW, THROWS, TILDE, tokenImage, TRANSIENT, TRUE, TRY, VOID, VOLATILE, WHILE, XOR, XORASSIGN
 
Constructor Summary
JavaClassDeclaration(int id)
           
JavaClassDeclaration(JavaParser p, int id)
           
 
Method Summary
 JavaClassBody getClassBody()
          Returns the class body.
 java.lang.String[] getInterfaces()
          Returns the list of interfaces.
 Modifiers getModifiers()
          Returns the modifiers for this class.
 java.lang.String getName()
          Returns the name of this class.
 java.lang.String getSuperClass()
          Returns the name of the super class.
 java.lang.Object jjtAccept(JavaParserVisitor visitor, java.lang.Object data)
          Accept the visitor.
 void jjtClose()
          This method is called after all the child nodes have been added.
 void jjtOpen()
          This method is called after the node has been made the current node.
 
Methods inherited from class net.sourceforge.jane.jjtree.SimpleNode
childrenAccept, dump, jjtAddChild, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtSetParent, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaClassDeclaration

public JavaClassDeclaration(int id)

JavaClassDeclaration

public JavaClassDeclaration(JavaParser p,
                            int id)
Method Detail

jjtOpen

public void jjtOpen()
Description copied from interface: Node
This method is called after the node has been made the current node. It indicates that child nodes can now be added to it.
Overrides:
jjtOpen in class SimpleNode

jjtClose

public void jjtClose()
Description copied from interface: Node
This method is called after all the child nodes have been added.
Overrides:
jjtClose in class SimpleNode

jjtAccept

public java.lang.Object jjtAccept(JavaParserVisitor visitor,
                                  java.lang.Object data)
Accept the visitor.
Overrides:
jjtAccept in class SimpleNode

getName

public java.lang.String getName()
Returns the name of this class.

getModifiers

public Modifiers getModifiers()
Returns the modifiers for this class.

getSuperClass

public java.lang.String getSuperClass()
Returns the name of the super class.

getInterfaces

public java.lang.String[] getInterfaces()
Returns the list of interfaces.

getClassBody

public JavaClassBody getClassBody()
Returns the class body.


Copyright © 2002-2002 SourceForge. All Rights Reserved.