|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jeffpalm.javaparser.SimpleNode
com.jeffpalm.javaparser.NamedNode
public abstract class NamedNode
Declares node with a name.
Field Summary | |
---|---|
protected java.lang.String |
name
|
Fields inherited from class com.jeffpalm.javaparser.SimpleNode |
---|
children, id, parent, parser, specials |
Constructor Summary | |
---|---|
protected |
NamedNode(int identifier)
Constructor for the Named node. |
protected |
NamedNode(JavaParser parser,
int identifier)
Constructor for the Named node. |
Method Summary | |
---|---|
java.lang.String |
getName()
Get the object's name |
void |
setName(java.lang.String newName)
Set the object's name |
Methods inherited from class com.jeffpalm.javaparser.SimpleNode |
---|
addSpecial, childrenAccept, dump, dumpString, findChildrenOfType, findChildrenOfType, findChildrenOfType, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getScope, getSpecial, hasAnyChildren, init, isRequired, jjtAccept, jjtAddChild, jjtAddFirstChild, jjtClose, jjtDeleteChild, jjtGetChild, jjtGetFirstChild, jjtGetID, jjtGetNumChildren, jjtGetParent, jjtInsertChild, jjtOpen, jjtSetParent, printModifiers, removeSpecial, setLineAndColumnInfo, setScope, testingOnly__setBeginColumn, testingOnly__setBeginLine, toString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
Constructor Detail |
---|
protected NamedNode(int identifier)
identifier
- The id of this node.protected NamedNode(JavaParser parser, int identifier)
parser
- The JavaParser that created this Named node.identifier
- The id of this node.Method Detail |
---|
public void setName(java.lang.String newName)
newName
- the new namepublic java.lang.String getName()
getName
in class SimpleNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |