|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.javasource.JType
public class JType
Represents a primitive or class type
Field Summary | |
---|---|
static JType |
Boolean
|
static JType |
Byte
|
static JType |
Char
|
static JType |
Double
|
static JType |
Float
|
static JType |
Int
|
static JType |
Long
|
static JType |
Short
|
Constructor Summary | |
---|---|
protected |
JType(java.lang.String name)
Creates a new JType with the given name |
Method Summary | |
---|---|
protected void |
changePackage(java.lang.String newPackage)
Allows subtypes, such as JClass to alter the package to which this JType belongs |
JType |
createArray()
Creates a JType Object representing an array of the current JType. |
JType |
getComponentType()
If this JType is an array this method will returns the component type of the array, otherwise null will be returned. |
java.lang.String |
getLocalName()
|
java.lang.String |
getName()
|
boolean |
isArray()
Checks to see if this JType represents an array. |
boolean |
isPrimitive()
Checks to see if this JType represents a primitive |
java.lang.String |
toString()
Returns the String representation of this JType, which is simply the name of this type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final JType Boolean
public static final JType Byte
public static final JType Char
public static final JType Double
public static final JType Float
public static final JType Int
public static final JType Long
public static final JType Short
Constructor Detail |
---|
protected JType(java.lang.String name)
name
- the name of the typeMethod Detail |
---|
public final JType createArray()
public JType getComponentType()
public java.lang.String getLocalName()
public java.lang.String getName()
public final boolean isArray()
public boolean isPrimitive()
public java.lang.String toString()
toString
in class java.lang.Object
protected void changePackage(java.lang.String newPackage)
newPackage
- the new package to which this JType belongs
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |