All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class openjava.ptree.ClassLiteral

java.lang.Object
   |
   +----openjava.ptree.PtreeObject
           |
           +----openjava.ptree.Leaf
                   |
                   +----openjava.ptree.ClassLiteral

public class ClassLiteral
extends Leaf
implements Expression
The ClassLiteral class represents an expression as a object of Class class, which is suppoted since JDK 1.1. This is like :
     String.class
 

or :
     int.class
 

See Also:
Class, Leaf, Expression, TypeName

Constructor Index

 o ClassLiteral(TypeName)
Allocates a new object.

Method Index

 o getTypeName()
Gets the type name of this class literal.

Constructors

 o ClassLiteral
 public ClassLiteral(TypeName tn)
Allocates a new object.

Methods

 o getTypeName
 public TypeName getTypeName()
Gets the type name of this class literal.

Returns:
the type name.

All Packages  Class Hierarchy  This Package  Previous  Next  Index