Package org.codehaus.janino
Class ClassFileIClass
java.lang.Object
org.codehaus.janino.IClass
org.codehaus.janino.ClassFileIClass
-
Nested Class Summary
Nested classes/interfaces inherited from class org.codehaus.janino.IClass
IClass.IConstructor, IClass.IField, IClass.IInvocable, IClass.IMember, IClass.IMethod
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IClass
protected IClass[]
protected IClass.IConstructor[]
The uncached version ofIClass.getDeclaredIConstructors()
which must be implemented by derived classes.protected IClass.IField[]
Uncached version ofIClass.getDeclaredIFields()
.protected IClass.IMethod[]
The uncached version ofIClass.getDeclaredIMethods()
which must be implemented by derived classes.protected IClass
protected String
protected IClass[]
protected IClass
protected IClass
boolean
Whether the class may be instantiated (JVMS 4.1 access_flags)boolean
isArray()
Returns "true" if this type represents an array.boolean
isFinal()
Whether subclassing is allowed (JVMS 4.1 access_flags)boolean
Returns "true" if this type represents an interface.boolean
Returns "true" if this type represents a primitive type or "void".boolean
Returns "true" if this type represents "byte", "short", "int", "long", "char", "float" or "double".void
Resolves all classes referenced by this class file.void
Methods inherited from class org.codehaus.janino.IClass
clearIFieldCaches, findIMethod, getArrayIClass, getArrayIClass, getComponentType, getDeclaredIClasses, getDeclaredIConstructors, getDeclaredIField, getDeclaredIFields, getDeclaredIMethods, getDeclaredIMethods, getDeclaringIClass, getDescriptor, getDescriptors, getIMethods, getInterfaces, getOuterIClass, getSuperclass, getSyntheticIFields, hasIMethod, implementsInterface, invalidateMethodCaches, isAssignableFrom, isSubclassOf, toString
-
Constructor Details
-
ClassFileIClass
- Parameters:
classFile
- Source of dataiClassLoader
-IClassLoader
through which to load other classes
-
-
Method Details
-
getDeclaredIConstructors2
Description copied from class:IClass
The uncached version ofIClass.getDeclaredIConstructors()
which must be implemented by derived classes.- Specified by:
getDeclaredIConstructors2
in classIClass
-
getDeclaredIMethods2
Description copied from class:IClass
The uncached version ofIClass.getDeclaredIMethods()
which must be implemented by derived classes.- Specified by:
getDeclaredIMethods2
in classIClass
-
getDeclaredIFields2
Description copied from class:IClass
Uncached version ofIClass.getDeclaredIFields()
.- Specified by:
getDeclaredIFields2
in classIClass
-
getDeclaredIClasses2
- Specified by:
getDeclaredIClasses2
in classIClass
- Throws:
CompileException
-
getDeclaringIClass2
- Specified by:
getDeclaringIClass2
in classIClass
- Throws:
CompileException
-
getOuterIClass2
- Specified by:
getOuterIClass2
in classIClass
- Throws:
CompileException
-
getSuperclass2
- Specified by:
getSuperclass2
in classIClass
- Throws:
CompileException
-
getAccess
-
isFinal
public boolean isFinal()Description copied from class:IClass
Whether subclassing is allowed (JVMS 4.1 access_flags) -
getInterfaces2
- Specified by:
getInterfaces2
in classIClass
- Throws:
CompileException
-
isAbstract
public boolean isAbstract()Description copied from class:IClass
Whether the class may be instantiated (JVMS 4.1 access_flags)- Specified by:
isAbstract
in classIClass
- Returns:
true
if instantiation is prohibited
-
getDescriptor2
- Specified by:
getDescriptor2
in classIClass
-
isInterface
public boolean isInterface()Description copied from class:IClass
Returns "true" if this type represents an interface.- Specified by:
isInterface
in classIClass
-
isArray
public boolean isArray()Description copied from class:IClass
Returns "true" if this type represents an array. -
isPrimitive
public boolean isPrimitive()Description copied from class:IClass
Returns "true" if this type represents a primitive type or "void".- Specified by:
isPrimitive
in classIClass
-
isPrimitiveNumeric
public boolean isPrimitiveNumeric()Description copied from class:IClass
Returns "true" if this type represents "byte", "short", "int", "long", "char", "float" or "double".- Specified by:
isPrimitiveNumeric
in classIClass
-
getComponentType2
- Specified by:
getComponentType2
in classIClass
-
resolveHalf
- Throws:
ClassNotFoundException
-
resolveAllClasses
Resolves all classes referenced by this class file.- Throws:
ClassNotFoundException
-