org.codehaus.janino
Class ClassFileIClass

java.lang.Object
  extended by org.codehaus.janino.IClass
      extended by org.codehaus.janino.ClassFileIClass

public class ClassFileIClass
extends IClass

A wrapper object that turns a ClassFile object into a IClass.


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
 
Fields inherited from class org.codehaus.janino.IClass
BOOLEAN, BYTE, CHAR, declaredIMethods, DOUBLE, FLOAT, INT, LONG, NO_IMETHODS, SHORT, VOID
 
Constructor Summary
ClassFileIClass(ClassFile classFile, IClassLoader iClassLoader)
           
 
Method Summary
 Access getAccess()
           
protected  IClass getComponentType2()
           
protected  IClass[] getDeclaredIClasses2()
           
protected  IClass.IConstructor[] getDeclaredIConstructors2()
           
protected  IClass.IField[] getDeclaredIFields2()
          Uncached version of IClass.getDeclaredIFields().
protected  IClass.IMethod[] getDeclaredIMethods2()
           
protected  IClass getDeclaringIClass2()
           
protected  java.lang.String getDescriptor2()
           
protected  IClass[] getInterfaces2()
           
protected  IClass getOuterIClass2()
           
protected  IClass getSuperclass2()
           
 boolean isAbstract()
          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 isInterface()
          Returns "true" if this type represents an interface.
 boolean isPrimitive()
          Returns "true" if this type represents a primitive type or "void".
 boolean isPrimitiveNumeric()
          Returns "true" if this type represents "byte", "short", "int", "long", "char", "float" or "double".
 void resolveAllClasses()
           
 void resolveHalf()
           
 
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, isAssignableFrom, isSubclassOf, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassFileIClass

public ClassFileIClass(ClassFile classFile,
                       IClassLoader iClassLoader)
Parameters:
classFile - Source of data
iClassLoader - IClassLoader through which to load other classes
Method Detail

getDeclaredIConstructors2

protected IClass.IConstructor[] getDeclaredIConstructors2()
Specified by:
getDeclaredIConstructors2 in class IClass

getDeclaredIMethods2

protected IClass.IMethod[] getDeclaredIMethods2()
Specified by:
getDeclaredIMethods2 in class IClass

getDeclaredIFields2

protected IClass.IField[] getDeclaredIFields2()
Description copied from class: IClass
Uncached version of IClass.getDeclaredIFields().

Specified by:
getDeclaredIFields2 in class IClass

getDeclaredIClasses2

protected IClass[] getDeclaredIClasses2()
                                 throws CompileException
Specified by:
getDeclaredIClasses2 in class IClass
Throws:
CompileException

getDeclaringIClass2

protected IClass getDeclaringIClass2()
                              throws CompileException
Specified by:
getDeclaringIClass2 in class IClass
Throws:
CompileException

getOuterIClass2

protected IClass getOuterIClass2()
                          throws CompileException
Specified by:
getOuterIClass2 in class IClass
Throws:
CompileException

getSuperclass2

protected IClass getSuperclass2()
                         throws CompileException
Specified by:
getSuperclass2 in class IClass
Throws:
CompileException

getAccess

public Access getAccess()
Specified by:
getAccess in class IClass

isFinal

public boolean isFinal()
Description copied from class: IClass
Whether subclassing is allowed (JVMS 4.1 access_flags)

Specified by:
isFinal in class IClass
Returns:
true if subclassing is prohibited

getInterfaces2

protected IClass[] getInterfaces2()
                           throws CompileException
Specified by:
getInterfaces2 in class IClass
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 class IClass
Returns:
true if instantiation is prohibited

getDescriptor2

protected java.lang.String getDescriptor2()
Specified by:
getDescriptor2 in class IClass

isInterface

public boolean isInterface()
Description copied from class: IClass
Returns "true" if this type represents an interface.

Specified by:
isInterface in class IClass

isArray

public boolean isArray()
Description copied from class: IClass
Returns "true" if this type represents an array.

Specified by:
isArray in class IClass

isPrimitive

public boolean isPrimitive()
Description copied from class: IClass
Returns "true" if this type represents a primitive type or "void".

Specified by:
isPrimitive in class IClass

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 class IClass

getComponentType2

protected IClass getComponentType2()
Specified by:
getComponentType2 in class IClass

resolveHalf

public void resolveHalf()
                 throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

resolveAllClasses

public void resolveAllClasses()
                       throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException


Copyright © 2001-2012. All Rights Reserved.