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

Constructor Index

 o TypeSpecifier(TypeName)
Allocates a new object.
 o TypeSpecifier(TypeName, int)
Allocates a new object.

Method Index

 o getDim()
Gets array dimension of declarated type
 o getTypeName()
Gets the type name of this type specifier.
 o getUserDecorators()
Gets the user decorator list.
 o makeCopy()
Makes a new copy of this nonleaf-node as a ptree-node.
 o makeRecursiveCopy()
Makes a new copy (another object) of this nonleaf-node recursively.
 o setDim(int)
Sets array dimension of declarated type
 o setTypeName(TypeName)
Sets the type name of this type specifier.
 o setUserDecorators(UserDecoratorList)
Sets the user decorator list.
 o writeCode()
Writes the code this parse-tree presents for.

Constructors

 o TypeSpecifier
 public TypeSpecifier(TypeName typename,
                      int n)
Allocates a new object.

Parameters:
typename - type name
n - array dimension
 o 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

Methods

 o makeRecursiveCopy
 public Ptree makeRecursiveCopy()
Makes a new copy (another object) of this nonleaf-node recursively.

Overrides:
makeRecursiveCopy in class NonLeaf
 o makeCopy
 public Ptree makeCopy()
Makes a new copy of this nonleaf-node as a ptree-node.

Overrides:
makeCopy in class NonLeaf
 o writeCode
 public void writeCode()
Writes the code this parse-tree presents for.

Overrides:
writeCode in class NonLeaf
 o getDim
 public int getDim()
Gets array dimension of declarated type

Returns:
array dimension
 o setDim
 public void setDim(int n)
Sets array dimension of declarated type

Parameters:
dim - array dimension
 o getTypeName
 public TypeName getTypeName()
Gets the type name of this type specifier.

Returns:
the type name.
 o setTypeName
 public void setTypeName(TypeName typename)
Sets the type name of this type specifier.

Parameters:
typename - the type name to set.
 o setUserDecorators
 public void setUserDecorators(UserDecoratorList ud)
Sets the user decorator list.

Returns:
the user decorator list.
 o 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