Package org.codehaus.janino
Class ClassFileIClass
- java.lang.Object
-
- org.codehaus.janino.IClass
-
- org.codehaus.janino.ClassFileIClass
-
public class ClassFileIClass extends IClass
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.codehaus.janino.IClass
IClass.IConstructor, IClass.IField, IClass.IInvocable, IClass.IMember, IClass.IMethod
-
-
Constructor Summary
Constructors Constructor Description ClassFileIClass(ClassFile classFile, IClassLoader iClassLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessgetAccess()protected IClassgetComponentType2()protected IClass[]getDeclaredIClasses2()protected IClass.IConstructor[]getDeclaredIConstructors2()The uncached version ofIClass.getDeclaredIConstructors()which must be implemented by derived classes.protected IClass.IField[]getDeclaredIFields2()Uncached version ofIClass.getDeclaredIFields().protected IClass.IMethod[]getDeclaredIMethods2()The uncached version ofIClass.getDeclaredIMethods()which must be implemented by derived classes.protected IClassgetDeclaringIClass2()protected java.lang.StringgetDescriptor2()protected IClass[]getInterfaces2()protected IClassgetOuterIClass2()protected IClassgetSuperclass2()booleanisAbstract()Whether 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)booleanisInterface()Returns "true" if this type represents an interface.booleanisPrimitive()Returns "true" if this type represents a primitive type or "void".booleanisPrimitiveNumeric()Returns "true" if this type represents "byte", "short", "int", "long", "char", "float" or "double".voidresolveAllClasses()Resolves all classes referenced by this class file.voidresolveHalf()-
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 Detail
-
ClassFileIClass
public ClassFileIClass(ClassFile classFile, IClassLoader iClassLoader)
- Parameters:
classFile- Source of dataiClassLoader-IClassLoaderthrough which to load other classes
-
-
Method Detail
-
getDeclaredIConstructors2
protected IClass.IConstructor[] getDeclaredIConstructors2()
Description copied from class:IClassThe uncached version ofIClass.getDeclaredIConstructors()which must be implemented by derived classes.- Specified by:
getDeclaredIConstructors2in classIClass
-
getDeclaredIMethods2
protected IClass.IMethod[] getDeclaredIMethods2()
Description copied from class:IClassThe uncached version ofIClass.getDeclaredIMethods()which must be implemented by derived classes.- Specified by:
getDeclaredIMethods2in classIClass
-
getDeclaredIFields2
protected IClass.IField[] getDeclaredIFields2()
Description copied from class:IClassUncached version ofIClass.getDeclaredIFields().- Specified by:
getDeclaredIFields2in classIClass
-
getDeclaredIClasses2
protected IClass[] getDeclaredIClasses2() throws CompileException
- Specified by:
getDeclaredIClasses2in classIClass- Throws:
CompileException
-
getDeclaringIClass2
protected IClass getDeclaringIClass2() throws CompileException
- Specified by:
getDeclaringIClass2in classIClass- Throws:
CompileException
-
getOuterIClass2
protected IClass getOuterIClass2() throws CompileException
- Specified by:
getOuterIClass2in classIClass- Throws:
CompileException
-
getSuperclass2
protected IClass getSuperclass2() throws CompileException
- Specified by:
getSuperclass2in classIClass- Throws:
CompileException
-
isFinal
public boolean isFinal()
Description copied from class:IClassWhether subclassing is allowed (JVMS 4.1 access_flags)
-
getInterfaces2
protected IClass[] getInterfaces2() throws CompileException
- 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
protected java.lang.String 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
protected IClass getComponentType2()
- Specified by:
getComponentType2in classIClass
-
resolveHalf
public void resolveHalf() throws java.lang.ClassNotFoundException- Throws:
java.lang.ClassNotFoundException
-
resolveAllClasses
public void resolveAllClasses() throws java.lang.ClassNotFoundExceptionResolves all classes referenced by this class file.- Throws:
java.lang.ClassNotFoundException
-
-