com.jeffpalm.javaparser
Class NamedNode

java.lang.Object
  extended by com.jeffpalm.javaparser.SimpleNode
      extended by com.jeffpalm.javaparser.NamedNode
All Implemented Interfaces:
Node
Direct Known Subclasses:
ASTAssignmentOperator, ASTBooleanLiteral, ASTBreakStatement, ASTContinueStatement, ASTExplicitConstructorInvocation, ASTLabeledStatement, ASTLiteral, ASTMethodDeclarator, ASTPostfixExpression, ASTPrimaryPrefix, ASTPrimarySuffix, ASTPrimitiveType, ASTStatementExpression, ASTUnaryExpression, ASTUnaryExpressionNotPlusMinus, ASTUnmodifiedClassDeclaration, ASTUnmodifiedInterfaceDeclaration

public abstract class NamedNode
extends SimpleNode

Declares node with a name.

Since:
jRefactory 2.9.0, created October 16, 2003
Author:
Mike Atkinson

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

name

protected java.lang.String name
Constructor Detail

NamedNode

protected NamedNode(int identifier)
Constructor for the Named node.

Parameters:
identifier - The id of this node.

NamedNode

protected NamedNode(JavaParser parser,
                    int identifier)
Constructor for the Named node.

Parameters:
parser - The JavaParser that created this Named node.
identifier - The id of this node.
Method Detail

setName

public void setName(java.lang.String newName)
Set the object's name

Parameters:
newName - the new name

getName

public java.lang.String getName()
Get the object's name

Overrides:
getName in class SimpleNode
Returns:
the name