openjava.ptree
Interface MemberDeclaration

All Superinterfaces:
ParseTree
All Known Implementing Classes:
ClassDeclaration, ConstructorDeclaration, FieldDeclaration, MemberInitializer, MethodDeclaration

public interface MemberDeclaration
extends ParseTree

The MemberDeclaration interface types ptree-node into the member declaration in the body of class.

See Also:
ParseTree, FieldDeclaration, MethodDeclaration, ConstructorDeclaration, MemberInitializer, ClassDeclaration

Field Summary
static int CONSTRUCTOR
          The CONSTRUCTOR is a kind of MemberDeclaration
static int FIELD
          The FIELD is a kind of MemberDeclaration
static int METHOD
          The METHOD is a kind of MemberDeclaration
static int STATICINIT
          The STATICINIT is a kind of MemberDeclaration
static int STATICINITIALIZER
          This is same as STATICINIT
static int TYPE
          The TYPE is a kind of MemberDeclaration
 
Method Summary
 boolean eq(ParseTree p)
          Tests if this parse-tree-node's value equals to the specified ptree-node's.
 boolean equals(ParseTree p)
          Tests if this parse-tree-node's value equals to the specified ptree-node's.
 void writeCode()
           
 
Methods inherited from interface openjava.ptree.ParseTree
accept, childrenAccept, getObjectID, makeCopy, makeRecursiveCopy, replace, toFlattenString, toString
 

Field Detail

FIELD

public static final int FIELD
The FIELD is a kind of MemberDeclaration

See Also:
Constant Field Values

METHOD

public static final int METHOD
The METHOD is a kind of MemberDeclaration

See Also:
Constant Field Values

CONSTRUCTOR

public static final int CONSTRUCTOR
The CONSTRUCTOR is a kind of MemberDeclaration

See Also:
Constant Field Values

STATICINIT

public static final int STATICINIT
The STATICINIT is a kind of MemberDeclaration

See Also:
Constant Field Values

TYPE

public static final int TYPE
The TYPE is a kind of MemberDeclaration

See Also:
Constant Field Values

STATICINITIALIZER

public static final int STATICINITIALIZER
This is same as STATICINIT

See Also:
Constant Field Values
Method Detail

writeCode

public void writeCode()
Specified by:
writeCode in interface ParseTree

eq

public boolean eq(ParseTree p)
Description copied from interface: ParseTree
Tests if this parse-tree-node's value equals to the specified ptree-node's.

Specified by:
eq in interface ParseTree
Returns:
true if two this and p refer to the same ptree object.

equals

public boolean equals(ParseTree p)
Description copied from interface: ParseTree
Tests if this parse-tree-node's value equals to the specified ptree-node's.

Specified by:
equals in interface ParseTree
Returns:
true if two values are same.

SourceForge.net_Logo