com.combex.e.edoc
Class EPrimitiveType

java.lang.Object
  |
  +--com.combex.e.edoc.EPrimitiveType
All Implemented Interfaces:
EType, Marker, PassByConstruction, Serializable, com.sun.javadoc.Type

class EPrimitiveType
extends Object
implements EType

Author:
mods by Mark Miller of combex.com subject to the terms of Sun's SCSL license.

Field Summary
private  String myName
           
private static ConstMap PrimMap
           
private static Object[][] Prims
           
 
Fields inherited from interface org.erights.e.elib.serial.PassByConstruction
HONORARY, HONORED_NAMES, serialVersionUID
 
Constructor Summary
private EPrimitiveType(String name)
           
 
Method Summary
 com.sun.javadoc.ClassDoc asClassDoc()
          Return this type as a class.
 String dimension()
          Return the type's dimension information, as a string.
static EPrimitiveType getOpt(String name)
           
 String qualifiedTypeName()
          Return qualified name of type excluding any dimension information.
 String toString()
          Returns a string representation of the type.
 String typeName()
          Return unqualified name of type excluding any dimension information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myName

private final String myName

Prims

private static final Object[][] Prims

PrimMap

private static final ConstMap PrimMap
Constructor Detail

EPrimitiveType

private EPrimitiveType(String name)
Method Detail

getOpt

public static EPrimitiveType getOpt(String name)

typeName

public String typeName()
Return unqualified name of type excluding any dimension information.

For example, a two dimensional array of String returns 'String'.


qualifiedTypeName

public String qualifiedTypeName()
Return qualified name of type excluding any dimension information.

For example, a two dimensional array of String returns 'java.lang.String'.


dimension

public String dimension()
Return the type's dimension information, as a string.

For example, a two dimensional array of String returns '[][]'.


asClassDoc

public com.sun.javadoc.ClassDoc asClassDoc()
Return this type as a class. Array dimensions are ignored.

Returns:
a ClassDocImpl if the type is a Class. Return null if it is a primitive type..

toString

public String toString()
Returns a string representation of the type. Return name of type including any dimension information.

For example, a two dimensional array of String returns String[][].

Overrides:
toString in class Object
Returns:
name of type including any dimension information.


comments?