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
-
ClassType(Identifier)
- Allocates new object.
-
ClassType(QualifiedName, Identifier)
- Allocates new object.
-
getName()
- Gets the short class name of this class type specificator.
-
getPackage()
- Gets the package name of this class type specificator.
-
setName(Identifier)
- Sets the short class name of this class type specificator.
-
setPackage(QualifiedName)
- Sets the package name of this class type specificator.
-
writeCode()
- Writes the code this parse-tree presents for.
ClassType
public ClassType(QualifiedName pack,
Identifier name)
- Allocates new object.
- Parameters:
- pack - package name of class
- name - short class name
ClassType
public ClassType(Identifier name)
- Allocates new object.
- Parameters:
- name - short class name
writeCode
public void writeCode()
- Writes the code this parse-tree presents for.
- Overrides:
- writeCode in class NonLeaf
getPackage
public QualifiedName getPackage()
- Gets the package name of this class type specificator.
- Returns:
- the package name of this class type specificator
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
getName
public Identifier getName()
- Gets the short class name of this class type specificator.
- Returns:
- the short class name of this class type specificator.
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