All Packages Class Hierarchy This Package Previous Next Index
Class openjava.ptree.TypeSpecifier
java.lang.Object
|
+----openjava.ptree.PtreeObject
|
+----openjava.ptree.NonLeaf
|
+----openjava.ptree.TypeSpecifier
- public class TypeSpecifier
- extends NonLeaf
The TypeSpecifier
class represents a type specifier
node of parse tree.
- See Also:
- Ptree, NonLeaf
-
TypeSpecifier(TypeName)
- Allocates a new object.
-
TypeSpecifier(TypeName, int)
- Allocates a new object.
-
getDim()
- Gets array dimension of declarated type
-
getTypeName()
- Gets the type name of this type specifier.
-
getUserDecorators()
- Gets the user decorator list.
-
makeCopy()
- Makes a new copy of this nonleaf-node as a ptree-node.
-
makeRecursiveCopy()
- Makes a new copy (another object) of this nonleaf-node recursively.
-
setDim(int)
- Sets array dimension of declarated type
-
setTypeName(TypeName)
- Sets the type name of this type specifier.
-
setUserDecorators(UserDecoratorList)
- Sets the user decorator list.
-
writeCode()
- Writes the code this parse-tree presents for.
TypeSpecifier
public TypeSpecifier(TypeName typename,
int n)
- Allocates a new object.
- Parameters:
- typename - type name
- n - array dimension
TypeSpecifier
public TypeSpecifier(TypeName typename)
- Allocates a new object.
No array dimension will set.
new TypeSpecifier( typename )
equals:
new TypeSpecifier( typename, 0 )
- Parameters:
- typename - type name
makeRecursiveCopy
public Ptree makeRecursiveCopy()
- Makes a new copy (another object) of this nonleaf-node recursively.
- Overrides:
- makeRecursiveCopy in class NonLeaf
makeCopy
public Ptree makeCopy()
- Makes a new copy of this nonleaf-node as a ptree-node.
- Overrides:
- makeCopy in class NonLeaf
writeCode
public void writeCode()
- Writes the code this parse-tree presents for.
- Overrides:
- writeCode in class NonLeaf
getDim
public int getDim()
- Gets array dimension of declarated type
- Returns:
- array dimension
setDim
public void setDim(int n)
- Sets array dimension of declarated type
- Parameters:
- dim - array dimension
getTypeName
public TypeName getTypeName()
- Gets the type name of this type specifier.
- Returns:
- the type name.
setTypeName
public void setTypeName(TypeName typename)
- Sets the type name of this type specifier.
- Parameters:
- typename - the type name to set.
setUserDecorators
public void setUserDecorators(UserDecoratorList ud)
- Sets the user decorator list.
- Returns:
- the user decorator list.
getUserDecorators
public UserDecoratorList getUserDecorators()
- Gets the user decorator list.
- Parameters:
- typename - the type name to set.
All Packages Class Hierarchy This Package Previous Next Index