All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class openjava.ptree.ClassType

java.lang.Object
   |
   +----openjava.ptree.PtreeObject
           |
           +----openjava.ptree.NonLeaf
                   |
                   +----openjava.ptree.ClassType

public class ClassType
extends NonLeaf
implements TypeName
The ClassType class presents for a class type specificator. The class type specificator consists of a package name and a short class name.
If this object presents for:
     java.lang.String
 

The package name is java.lang, and the short class name is String.

See Also:
NonLeaf, TypeName, QualifiedName, Identifier

Constructor Index

 o ClassType(Identifier)
Allocates new object.
 o ClassType(QualifiedName, Identifier)
Allocates new object.

Method Index

 o getName()
Gets the short class name of this class type specificator.
 o getPackage()
Gets the package name of this class type specificator.
 o setName(Identifier)
Sets the short class name of this class type specificator.
 o setPackage(QualifiedName)
Sets the package name of this class type specificator.
 o writeCode()
Writes the code this parse-tree presents for.

Constructors

 o ClassType
 public ClassType(QualifiedName pack,
                  Identifier name)
Allocates new object.

Parameters:
pack - package name of class
name - short class name
 o ClassType
 public ClassType(Identifier name)
Allocates new object.

Parameters:
name - short class name

Methods

 o writeCode
 public void writeCode()
Writes the code this parse-tree presents for.

Overrides:
writeCode in class NonLeaf
 o getPackage
 public QualifiedName getPackage()
Gets the package name of this class type specificator.

Returns:
the package name of this class type specificator
 o setPackage
 public void setPackage(QualifiedName packname)
Sets the package name of this class type specificator.

Parameters:
packname - the package name of this class type specificator. to set
 o getName
 public Identifier getName()
Gets the short class name of this class type specificator.

Returns:
the short class name of this class type specificator.
 o setName
 public void setName(Identifier name)
Sets the short class name of this class type specificator.

Parameters:
name - the short class name of this class type specificator. to set

All Packages  Class Hierarchy  This Package  Previous  Next  Index