com.jeffpalm.javaparser
Class ASTClassOrInterfaceType

java.lang.Object
  extended by com.jeffpalm.javaparser.SimpleNode
      extended by com.jeffpalm.javaparser.ASTName
          extended by com.jeffpalm.javaparser.ASTClassOrInterfaceType
All Implemented Interfaces:
Node, java.lang.Cloneable

public class ASTClassOrInterfaceType
extends ASTName

Description of the Class

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

Field Summary
 
Fields inherited from class com.jeffpalm.javaparser.ASTName
name
 
Fields inherited from class com.jeffpalm.javaparser.SimpleNode
children, id, parent, parser, specials
 
Constructor Summary
ASTClassOrInterfaceType(ASTName name)
          Constructor for the ASTClassOrInterfaceType node.
ASTClassOrInterfaceType(int identifier)
          Constructor for the ASTClassOrInterfaceType node.
ASTClassOrInterfaceType(JavaParser parser, int identifier)
          Constructor for the ASTClassOrInterfaceType node.
 
Method Summary
 ASTClassOrInterfaceType changeStartingPart(ASTClassOrInterfaceType oldBase, ASTClassOrInterfaceType newBase)
          Change starting part.
 ASTClassOrInterfaceType changeStartingPart(ASTClassOrInterfaceType oldBase, ASTName newBase)
          Change starting part.
 java.lang.Object jjtAccept(JavaParserVisitor visitor, java.lang.Object data)
          Accept the visitor.
 boolean startsWith(ASTClassOrInterfaceType otherName)
          Determines if two names start with the same series of items
 
Methods inherited from class com.jeffpalm.javaparser.ASTName
addNamePart, changeStartingPart, equals, fromString, getName, getNamePart, getNameSize, hashCode, insertNamePart, setImage, setNamePart, startsWith
 
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, 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, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASTClassOrInterfaceType

public ASTClassOrInterfaceType(int identifier)
Constructor for the ASTClassOrInterfaceType node.

Parameters:
identifier - The id of this node (JJTCLASSORINTERFACETYPE).

ASTClassOrInterfaceType

public ASTClassOrInterfaceType(JavaParser parser,
                               int identifier)
Constructor for the ASTClassOrInterfaceType node.

Parameters:
parser - The JavaParser that created this ASTClassOrInterfaceType node.
identifier - The id of this node (JJTCLASSORINTERFACETYPE).

ASTClassOrInterfaceType

public ASTClassOrInterfaceType(ASTName name)
Constructor for the ASTClassOrInterfaceType node.

Parameters:
name - The name of the class or interface.
Method Detail

jjtAccept

public java.lang.Object jjtAccept(JavaParserVisitor visitor,
                                  java.lang.Object data)
Accept the visitor. *

Specified by:
jjtAccept in interface Node
Overrides:
jjtAccept in class ASTName
Parameters:
visitor - An implementation of JavaParserVisitor that processes the ASTClassOrInterfaceType node.
data - Some data being passed between the visitor methods.
Returns:
Usually the data parameter (possibly modified).

startsWith

public boolean startsWith(ASTClassOrInterfaceType otherName)
Determines if two names start with the same series of items

Parameters:
otherName - Description of Parameter
Returns:
Description of the Returned Value

changeStartingPart

public ASTClassOrInterfaceType changeStartingPart(ASTClassOrInterfaceType oldBase,
                                                  ASTClassOrInterfaceType newBase)
Change starting part. Presumes that otherName is less than the length of the current name.

Parameters:
oldBase - Description of Parameter
newBase - Description of Parameter
Returns:
Description of the Returned Value

changeStartingPart

public ASTClassOrInterfaceType changeStartingPart(ASTClassOrInterfaceType oldBase,
                                                  ASTName newBase)
Change starting part. Presumes that otherName is less than the length of the current name.

Parameters:
oldBase - Description of Parameter
newBase - Description of Parameter
Returns:
Description of the Returned Value