|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.umlv.corosol.component.JPrimitiveClass
public abstract class JPrimitiveClass
This class represents the base class of primitive class implementations.
| Field Summary | |
|---|---|
static JClass |
BOOLEAN
The JClass instance representing the primitive type boolean. |
static JClass |
BYTE
The JClass instance representing the primitive type byte. |
static JClass |
CHAR
The JClass instance representing the primitive type char. |
static JClass |
DOUBLE
The JClass instance representing the primitive type double. |
static JClass |
FLOAT
The JClass instance representing the primitive type float. |
static JClass |
INT
The JClass instance representing the primitive type int. |
static JClass |
LONG
The JClass instance representing the primitive type long. |
static JClass |
SHORT
The JClass instance representing the primitive type short. |
static JClass |
VOID
The JClass instance representing the primitive type void. |
| Fields inherited from interface fr.umlv.corosol.component.JClass |
|---|
CATEGORY1, CATEGORY2 |
| Method Summary | |
|---|---|
JClassLoader |
getClassLoader()
Returns the class loader of the class represented by this JClass object. |
JClass |
getComponentType()
Returns the JClass representing the component type of an array. |
JConstantPool |
getConstantPool()
Returns the constant pool of the class; |
JConstructor[] |
getDeclaredConstructors()
Returns an array of JConstructor objects reflecting all the constructors declared by the class represented by this JClass object. |
JField |
getDeclaredField(java.lang.String name)
Returns a JField object that reflects the specified declared field of the class or interface represented by this JClass object. |
JField[] |
getDeclaredFields()
Returns an array of JField objects reflecting all the fields declared by the class or interface represented by this JClass object. |
JMethod[] |
getDeclaredMethods()
Returns an array of JMethod objects reflecting all the methods declared by the class or interface represented by this JClass object. |
JClass[] |
getInterfaces()
Determines the interfaces implemented by the class or interface represented by this object. |
int |
getModifiers()
Returns the Java language modifiers for this class or interface, encoded in an integer. |
java.lang.String |
getName()
Returns the name of the entity (class, interface, array class, primitive type, or void) represented by this JClass object, as a String. |
JClass |
getSuperclass()
Returns the JClass representing the superclass of the entity (class, interface, primitive type or void) represented by this Class. |
boolean |
isAbstract()
Determines if the specified JClass object represents an abstract type. |
boolean |
isAnonymousClass()
Determines if the specified JClass object represents an anonymous class. |
boolean |
isArray()
Determines if this JClass object represents an array class. |
boolean |
isAssignableFrom(JClass c)
Determines if the class or interface represented by this JClass object is either the same as, or is a superclass or superinterface of, the class or interface represented by the specified JClass parameter. |
boolean |
isInterface()
Determines if the specified JClass object represents an interface type. |
boolean |
isJObject()
Determines if the specified JClass object represents a Corosol JObject element. |
boolean |
isPrimitive()
Determines if the specified JClass object represents a primitive type. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface fr.umlv.corosol.component.JClass |
|---|
arrayCopy, copyValue, doGetfield, doGetstatic, doPutfield, doPutstatic, fieldCopy, getComputationalType, getNativeClass, pop, push |
| Field Detail |
|---|
public static final JClass BOOLEAN
public static final JClass BYTE
public static final JClass CHAR
public static final JClass DOUBLE
public static final JClass FLOAT
public static final JClass INT
public static final JClass LONG
public static final JClass SHORT
public static final JClass VOID
| Method Detail |
|---|
public boolean isAssignableFrom(JClass c)
isAssignableFrom in interface JClassc - the JClass object to be checked
public boolean isInterface()
isInterface in interface JClasspublic boolean isArray()
isArray in interface JClasspublic boolean isPrimitive()
isPrimitive in interface JClasspublic boolean isAnonymousClass()
isAnonymousClass in interface JClasspublic boolean isJObject()
isJObject in interface JClasspublic boolean isAbstract()
isAbstract in interface JClasspublic java.lang.String getName()
getName in interface JClasspublic JClass getSuperclass()
getSuperclass in interface JClasspublic JClass[] getInterfaces()
If this object represents a class, the return value is an array containing objects representing all interfaces implemented by the class. The order of the interface objects in the array corresponds to the order of the interface names in the implements clause of the declaration of the class represented by this object.
If this object represents an interface, the array contains objects
representing all interfaces extended by the interface. The order of the
interface objects in the array corresponds to the order of the interface
names in the extends clause of the declaration of the
interface represented by this object.
If this object represents a class or interface that implements no interfaces, the method returns an array of length 0.
If this object represents a primitive type or void, the method returns an array of length 0.
getInterfaces in interface JClasspublic JClass getComponentType()
getComponentType in interface JClasspublic int getModifiers()
If the underlying class is an array class, then its public, private and protected modifiers are the same as those of its component type. If this Class represents a primitive type or void, its public modifier is always true, and its protected and private modifiers are always false. If this object represents an array class, a primitive type or void, then its final modifier is always true and its interface modifier is always false. The values of its other modifiers are not determined by this specification.
The modifier encodings are defined in The Java Virtual Machine Specification, table 4.1.
getModifiers in interface JClassModifierpublic JField[] getDeclaredFields()
See The Java Language Specification, sections 8.2 and 8.3.
getDeclaredFields in interface JClass
public JField getDeclaredField(java.lang.String name)
throws java.lang.NoSuchFieldException
getDeclaredField in interface JClassname - the name of the field
java.lang.NoSuchFieldException - if a field with the specified name is
not found.public JMethod[] getDeclaredMethods()
See The Java Language Specification, section 8.2.
getDeclaredMethods in interface JClasspublic JConstructor[] getDeclaredConstructors()
See The Java Language Specification, section 8.2.
getDeclaredConstructors in interface JClasspublic JConstantPool getConstantPool()
getConstantPool in interface JClasspublic JClassLoader getClassLoader()
getClassLoader in interface JClass
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||