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 IClassprotected 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 IClassprotected Stringprotected IClass[]protected IClassprotected IClassbooleanWhether the class may be instantiated (JVMS 4.1 access_flags)booleanisArray()Returns "true" if this type represents an array.booleanisFinal()Whether subclassing is allowed (JVMS 4.1 access_flags)booleanReturns "true" if this type represents an interface.booleanReturns "true" if this type represents a primitive type or "void".booleanReturns "true" if this type represents "byte", "short", "int", "long", "char", "float" or "double".voidResolves all classes referenced by this class file.voidMethods 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-IClassLoaderthrough which to load other classes
-
-
Method Details
-
getDeclaredIConstructors2
Description copied from class:IClassThe uncached version ofIClass.getDeclaredIConstructors()which must be implemented by derived classes.- Specified by:
getDeclaredIConstructors2in classIClass
-
getDeclaredIMethods2
Description copied from class:IClassThe uncached version ofIClass.getDeclaredIMethods()which must be implemented by derived classes.- Specified by:
getDeclaredIMethods2in classIClass
-
getDeclaredIFields2
Description copied from class:IClassUncached version ofIClass.getDeclaredIFields().- Specified by:
getDeclaredIFields2in classIClass
-
getDeclaredIClasses2
- Specified by:
getDeclaredIClasses2in classIClass- Throws:
CompileException
-
getDeclaringIClass2
- Specified by:
getDeclaringIClass2in classIClass- Throws:
CompileException
-
getOuterIClass2
- Specified by:
getOuterIClass2in classIClass- Throws:
CompileException
-
getSuperclass2
- Specified by:
getSuperclass2in classIClass- Throws:
CompileException
-
getAccess
-
isFinal
public boolean isFinal()Description copied from class:IClassWhether subclassing is allowed (JVMS 4.1 access_flags) -
getInterfaces2
- Specified by:
getInterfaces2in classIClass- Throws:
CompileException
-
isAbstract
public boolean isAbstract()Description copied from class:IClassWhether the class may be instantiated (JVMS 4.1 access_flags)- Specified by:
isAbstractin classIClass- Returns:
trueif instantiation is prohibited
-
getDescriptor2
- Specified by:
getDescriptor2in classIClass
-
isInterface
public boolean isInterface()Description copied from class:IClassReturns "true" if this type represents an interface.- Specified by:
isInterfacein classIClass
-
isArray
public boolean isArray()Description copied from class:IClassReturns "true" if this type represents an array. -
isPrimitive
public boolean isPrimitive()Description copied from class:IClassReturns "true" if this type represents a primitive type or "void".- Specified by:
isPrimitivein classIClass
-
isPrimitiveNumeric
public boolean isPrimitiveNumeric()Description copied from class:IClassReturns "true" if this type represents "byte", "short", "int", "long", "char", "float" or "double".- Specified by:
isPrimitiveNumericin classIClass
-
getComponentType2
- Specified by:
getComponentType2in classIClass
-
resolveHalf
- Throws:
ClassNotFoundException
-
resolveAllClasses
Resolves all classes referenced by this class file.- Throws:
ClassNotFoundException
-