|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||
java.lang.Objectjava.lang.Enum<PrimitiveType>
recoder.abstraction.PrimitiveType
public enum PrimitiveType
A program model element representing primitive types. As of 0.90, implemented as an enum.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface recoder.abstraction.ProgramModelElement |
|---|
ProgramModelElement.LexicalOrder |
| Enum Constant Summary | |
|---|---|
booleanType
|
|
byteType
|
|
charType
|
|
doubleType
|
|
floatType
|
|
intType
|
|
longType
|
|
shortType
|
|
| Field Summary |
|---|
| Fields inherited from interface recoder.abstraction.ProgramModelElement |
|---|
LEXICAL_ORDER |
| Fields inherited from interface recoder.bytecode.AccessFlags |
|---|
ABSTRACT, ANNOTATION, BRIDGE, ENUM, FINAL, INTERFACE, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SUPER, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILE |
| Method Summary | |
|---|---|
ArrayType |
createArrayType()
|
PrimitiveType |
deepClone()
|
java.util.List<PrimitiveType> |
getAllSupertypes()
|
ArrayType |
getArrayType()
|
java.lang.String |
getBinaryName()
Returns the binary name. |
java.lang.String |
getFullName()
Returns the name of type. |
java.lang.String |
getFullSignature()
Returns a full type signature of this type, i.e., the full name plus possible type arguments. |
java.lang.String |
getName()
Returns the name of this type. |
ProgramModelInfo |
getProgramModelInfo()
Returns the instance that can retrieve information about this program model element. |
java.util.List<PrimitiveType> |
getSupertypes()
|
void |
setProgramModelInfo(ProgramModelInfo service)
Sets the instance that can retrieve information about this program model element. |
java.lang.String |
toString()
|
void |
validate()
Check consistency and admissibility of a construct, e.g. cardinality of participants. |
static PrimitiveType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PrimitiveType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final PrimitiveType booleanType
public static final PrimitiveType byteType
public static final PrimitiveType shortType
public static final PrimitiveType longType
public static final PrimitiveType intType
public static final PrimitiveType floatType
public static final PrimitiveType doubleType
public static final PrimitiveType charType
| Method Detail |
|---|
public static final PrimitiveType[] values()
for(PrimitiveType c : PrimitiveType.values())
System.out.println(c);
public static PrimitiveType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namepublic ArrayType getArrayType()
getArrayType in interface Typepublic ArrayType createArrayType()
createArrayType in interface Typepublic java.lang.String getName()
getName in interface NamedModelElementpublic java.lang.String getFullName()
getFullName in interface ProgramModelElementpublic java.lang.String getBinaryName()
ProgramModelElement
getBinaryName in interface ProgramModelElementpublic ProgramModelInfo getProgramModelInfo()
getProgramModelInfo in interface ProgramModelElementpublic void setProgramModelInfo(ProgramModelInfo service)
setProgramModelInfo in interface ProgramModelElementservice - the program model info for this element.public void validate()
ModelElementrecoder.java.statement.If
has a boolean parameter as condition,
recoder.service.SemanticsChecker
validate in interface ModelElementSemanticsCheckerpublic java.lang.String getFullSignature()
TypegetFullName() on primitive types.
getFullSignature in interface Typepublic PrimitiveType deepClone()
public java.util.List<PrimitiveType> getAllSupertypes()
public java.util.List<PrimitiveType> getSupertypes()
public java.lang.String toString()
toString in class java.lang.Enum<PrimitiveType>
|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||