Uses of Class
org.codehaus.janino.IClass
Packages that use IClass
-
Uses of IClass in org.codehaus.janino
Subclasses of IClass in org.codehaus.janinoModifier and TypeClassDescriptionclass
private static class
(package private) class
Fields in org.codehaus.janino declared as IClassModifier and TypeFieldDescriptionfinal IClass
Java.NewInitializedArray.arrayIClass
The resolvedJava.NewInitializedArray.arrayType
.static final IClass
IClass.BOOLEAN
TheIClass
object for the primitive type BOOLEAN.static final IClass
IClass.BYTE
TheIClass
object for the primitive type BYTE.static final IClass
IClass.CHAR
TheIClass
object for the primitive type CHAR.private IClass
IClass.componentTypeCache
private IClass[]
IClass.declaredIClassesCache
private IClass
IClass.declaringIClassCache
static final IClass
IClass.DOUBLE
TheIClass
object for the primitive type DOUBLE.static final IClass
IClass.FLOAT
TheIClass
object for the primitive type FLOAT.(package private) IClass
Java.ThisReference.iClass
A cache for the type of the instance that "this" refers to.static final IClass
IClass.INT
TheIClass
object for the primitive type INT.private IClass[]
IClass.interfacesCache
static final IClass
IClass.LONG
TheIClass
object for the primitive type LONG.static final IClass
IClass.NULL
TheIClass
of thenull
literal.private IClass
IClass.outerIClassCache
private IClass[]
IClass.IInvocable.parameterTypesCache
(package private) IClass
Java.AbstractTypeDeclaration.resolvedType
Holds the resolved type during compilation.static final IClass
IClass.SHORT
TheIClass
object for the primitive type SHORT.private IClass
IClass.superclassCache
private IClass[]
IClass.IInvocable.thrownExceptionsCache
private final IClass
UnitCompiler.SimpleIField.type
IClassLoader.TYPE_java_io_Serializable
IClassLoader.TYPE_java_lang_annotation_Retention
IClassLoader.TYPE_java_lang_AssertionError
IClassLoader.TYPE_java_lang_Boolean
IClassLoader.TYPE_java_lang_Byte
IClassLoader.TYPE_java_lang_Character
IClassLoader.TYPE_java_lang_Class
IClassLoader.TYPE_java_lang_Cloneable
IClassLoader.TYPE_java_lang_Double
IClassLoader.TYPE_java_lang_Enum
IClassLoader.TYPE_java_lang_Error
IClassLoader.TYPE_java_lang_Exception
IClassLoader.TYPE_java_lang_Float
IClassLoader.TYPE_java_lang_Integer
IClassLoader.TYPE_java_lang_Iterable
IClassLoader.TYPE_java_lang_Long
IClassLoader.TYPE_java_lang_Object
IClassLoader.TYPE_java_lang_Override
IClassLoader.TYPE_java_lang_RuntimeException
IClassLoader.TYPE_java_lang_Short
IClassLoader.TYPE_java_lang_String
IClassLoader.TYPE_java_lang_StringBuilder
IClassLoader.TYPE_java_lang_System
IClassLoader.TYPE_java_lang_Throwable
IClassLoader.TYPE_java_lang_Void
IClassLoader.TYPE_java_util_Iterator
static final IClass
IClass.VOID
TheIClass
object for the type VOID.private static final IClass[]
IClass.ZERO_ICLASSES
Fields in org.codehaus.janino with type parameters of type IClassModifier and TypeFieldDescriptionIClassLoader.arrayIClasses
IClassLoader.arrayIClasses
IClassLoader.loadedIClasses
UnitCompiler.onDemandImportableTypes
ClassFileIClass.resolvedClasses
Methods in org.codehaus.janino that return IClassModifier and TypeMethodDescriptionprivate IClass
UnitCompiler.binaryNumericPromotionType
(Java.Locatable locatable, IType type1, IType type2) private IClass[]
ReflectionIClass.classesToIClasses
(Class<?>[] cs) private IClass
ReflectionIClass.classToIClass
(Class<?> c) private IClass
UnitCompiler.compileGet2
(Java.ArrayCreationReference acr) private IClass
UnitCompiler.compileGet2
(Java.ArrayLength al) private IClass
UnitCompiler.compileGet2
(Java.BooleanRvalue brv) private IClass
UnitCompiler.compileGet2
(Java.ClassInstanceCreationReference cicr) private IClass
UnitCompiler.compileGet2
(Java.ClassLiteral cl) private IClass
UnitCompiler.compileGet2
(Java.Instanceof io) private IClass
UnitCompiler.compileGet2
(Java.LambdaExpression le) private IClass
UnitCompiler.compileGet2
(Java.Literal l) private IClass
UnitCompiler.compileGet2
(Java.MethodInvocation mi) private IClass
UnitCompiler.compileGet2
(Java.MethodReference mr) private IClass
UnitCompiler.compileGet2
(Java.NewAnonymousClassInstance naci) private IClass
UnitCompiler.compileGet2
(Java.NewArray na) private IClass
UnitCompiler.compileGet2
(Java.SimpleConstant sl) private IClass
UnitCompiler.compileGet2
(Java.SuperclassMethodInvocation scmi) private IClass
UnitCompiler.compileGet2
(Java.ThisReference tr) private IClass
UnitCompiler.compileGet2
(Java.UnaryOperation uo) private IClass
UnitCompiler.compileStringConcatenation
(Java.Locatable locatable, IType type, Java.Rvalue secondOperand, Iterator<Java.Rvalue> operands) private IClass
UnitCompiler.consT
(Java.Locatable locatable, Object value) Pushes one value on the operand stack and pushes the respectiveClassFile.StackMapTableAttribute.VerificationTypeInfo
operand to the stack map.private IClass
UnitCompiler.convertToPrimitiveNumericType
(Java.Locatable locatable, IType type) If the given type is a primitive type, return that type.private IClass
Compiler.CompilerIClassLoader.defineIClassFromClassFileResource
(Resource classFileResource) Opens the given classFileResource, reads its contents, defines it in theIClassLoader
, and resolves it (this step may involve loading more classes).private IClass
Compiler.CompilerIClassLoader.defineIClassFromSourceResource
(Resource sourceResource, String className) Parses the compilation unit stored in the given sourceResource, remembers it inCompiler.this.parsedCompilationUnits
(it may declare other classes that are needed later), finds the declaration of the type with the given className, and defines it in theIClassLoader
.Finds one class or interface declaration in this compilation unit and resolves it into anIClass
.protected IClass
ClassLoaderIClassLoader.findIClass
(String descriptor) protected IClass
Compiler.CompilerIClassLoader.findIClass
(String type) protected abstract IClass
IClassLoader.findIClass
(String descriptor) Finds a newIClass
by descriptor and callsIClassLoader.defineIClass(IClass)
.JavaSourceIClassLoader.findIClass
(String fieldDescriptor) protected IClass
ResourceFinderIClassLoader.findIClass
(String descriptor) (package private) IClass[]
IClass.findMemberType
(String name) If name isnull
, finds allIClass
es visible in the scope of the current class.private IClass
UnitCompiler.findMemberType
(IType iType, String name, Java.TypeArgument[] typeArguments, Location location) Finds a named type in the givenIClass
orIParameterizedType
.private IClass
UnitCompiler.findTypeByFullyQualifiedName
(Location location, String[] identifiers) Attempts to load anIClass
by fully-qualified name throughUnitCompiler.iClassLoader
.private IClass
UnitCompiler.findTypeByName
(Location location, String className) Finds the namedIClass
in this compilation unit, or through theUnitCompiler.iClassLoader
.IClassLoader.getArrayIClass
(IClass componentType) Gets anIClass
that represents an array of this type.IClassLoader.getArrayIClass
(IClass componentType, int n) Gets anIClass
that represents an n-dimensional array of this type.private IClass
IClassLoader.getArrayIClass2
(IClass componentType) final IClass
IClass.getComponentType()
protected IClass
ClassFileIClass.getComponentType2()
protected abstract IClass
IClass.getComponentType2()
protected IClass
IClass.PrimitiveIClass.getComponentType2()
protected IClass
ReflectionIClass.getComponentType2()
final IClass[]
IClass.getDeclaredIClasses()
Returns the classes and interfaces declared as members of the class (but not inherited classes and interfaces).protected IClass[]
ClassFileIClass.getDeclaredIClasses2()
protected abstract IClass[]
IClass.getDeclaredIClasses2()
protected IClass[]
IClass.PrimitiveIClass.getDeclaredIClasses2()
protected IClass[]
ReflectionIClass.getDeclaredIClasses2()
final IClass
IClass.getDeclaringIClass()
IClass.IField.getDeclaringIClass()
IClass.IInvocable.getDeclaringIClass()
IClass.IMember.getDeclaringIClass()
protected IClass
ClassFileIClass.getDeclaringIClass2()
protected abstract IClass
IClass.getDeclaringIClass2()
protected IClass
IClass.PrimitiveIClass.getDeclaringIClass2()
protected IClass
ReflectionIClass.getDeclaringIClass2()
private IClass
UnitCompiler.getIClass
(Java.ThisReference tr) final IClass[]
IClass.getInterfaces()
Returns the interfaces implemented by the class, respectively the superinterfaces of the interface, respectively{
Cloneable
,
Serializable
}
for arrays.protected IClass[]
ClassFileIClass.getInterfaces2()
protected abstract IClass[]
IClass.getInterfaces2()
protected IClass[]
IClass.PrimitiveIClass.getInterfaces2()
protected IClass[]
ReflectionIClass.getInterfaces2()
final IClass
IClass.getOuterIClass()
The following types have an "outer class": Anonymous classes declared in a non-static method of a class Local classes declared in a non-static method of a class Non-static member classesprotected IClass
ClassFileIClass.getOuterIClass2()
protected abstract IClass
IClass.getOuterIClass2()
protected IClass
IClass.PrimitiveIClass.getOuterIClass2()
protected IClass
ReflectionIClass.getOuterIClass2()
final IClass[]
IClass.IInvocable.getParameterTypes()
Returns the types of the parameters of this constructor or method.abstract IClass[]
IClass.IInvocable.getParameterTypes2()
Opposed to theConstructor
, there is no magic "this$0
" parameter.IClass[]
ReflectionIClass.ReflectionIConstructor.getParameterTypes2()
IClass[]
ReflectionIClass.ReflectionIMethod.getParameterTypes2()
private IClass
UnitCompiler.getRawReferenceType
(Location location, String simpleTypeName, Java.Scope scope) private IClass
UnitCompiler.getRawType
(Java.Type t) abstract IClass
IClass.IMethod.getReturnType()
ReflectionIClass.ReflectionIMethod.getReturnType()
final IClass
IClass.getSuperclass()
Returns the superclass of the class.protected IClass
ClassFileIClass.getSuperclass2()
protected abstract IClass
IClass.getSuperclass2()
protected IClass
IClass.PrimitiveIClass.getSuperclass2()
protected IClass
ReflectionIClass.getSuperclass2()
final IClass[]
IClass.IInvocable.getThrownExceptions()
Returns the types thrown by this constructor or method.abstract IClass[]
IClass.IInvocable.getThrownExceptions2()
IClass[]
ReflectionIClass.ReflectionIConstructor.getThrownExceptions2()
IClass[]
ReflectionIClass.ReflectionIMethod.getThrownExceptions2()
abstract IClass
IClass.IField.getType()
ReflectionIClass.ReflectionIField.getType()
UnitCompiler.SimpleIField.getType()
private IClass
UnitCompiler.getType2
(Java.ArrayCreationReference acr) private IClass
UnitCompiler.getType2
(Java.ArrayLength al) private IClass
UnitCompiler.getType2
(Java.ArrayType at) private IClass
UnitCompiler.getType2
(Java.BooleanLiteral bl) private IClass
UnitCompiler.getType2
(Java.CharacterLiteral cl) private IClass
UnitCompiler.getType2
(Java.ClassInstanceCreationReference cicr) private IClass
UnitCompiler.getType2
(Java.ClassLiteral cl) private IClass
UnitCompiler.getType2
(Java.ConstructorInvocation ci) private IClass
UnitCompiler.getType2
(Java.FloatingPointLiteral fpl) private IClass
UnitCompiler.getType2
(Java.Instanceof io) private IClass
UnitCompiler.getType2
(Java.IntegerLiteral il) private IClass
UnitCompiler.getType2
(Java.LambdaExpression le) private IClass
UnitCompiler.getType2
(Java.MethodInvocation mi) private IClass
UnitCompiler.getType2
(Java.MethodReference mr) private IClass
UnitCompiler.getType2
(Java.NewAnonymousClassInstance naci) private IClass
UnitCompiler.getType2
(Java.NewArray na) private IClass
UnitCompiler.getType2
(Java.NullLiteral nl) private IClass
UnitCompiler.getType2
(Java.Package p) private IClass
UnitCompiler.getType2
(Java.PrimitiveType bt) private IClass
UnitCompiler.getType2
(Java.RvalueMemberType rvmt) private IClass
UnitCompiler.getType2
(Java.SimpleConstant sl) private IClass
UnitCompiler.getType2
(Java.StringLiteral sl) private IClass
UnitCompiler.getType2
(Java.SuperclassMethodInvocation scmi) private IClass
UnitCompiler.getType2
(Java.ThisReference tr) private IClass
UnitCompiler.getType2
(Java.UnaryOperation uo) private IClass
UnitCompiler.importSingleType
(String simpleTypeName, Location location) If the given name was declared in a simple type import, load that class.UnitCompiler.importTypeOnDemand
(String simpleTypeName, Location location) 6.5.2.BL1.B1.B5, 6.5.2.BL1.B1.B6 Type-import-on-demand.
6.5.5.1.6 Type-import-on-demand declaration.private IClass
UnitCompiler.importTypeOnDemand2
(String simpleTypeName, Location location) private IClass
UnitCompiler.isBoxingConvertible
(IType sourceType) private IClass
UnitCompiler.isUnboxingConvertible
(IType sourceType) final IClass
IClassLoader.loadIClass
(String fieldDescriptor) Gets anIClass
by field descriptor.private IClass
UnitCompiler.newArray
(Java.Locatable locatable, int dimExprCount, int dims, IType componentType) Expects dimExprCount values of typeint
on the operand stack.private static IClass
static IClass
private static IClass
private static IClass[]
UnitCompiler.rawTypesOf
(IType[] iTypes) private IClass
IClassLoader.requireType
(String descriptor) private IClass
UnitCompiler.resolve
(Java.TypeDeclaration td) private IClass
ClassFileIClass.resolveClass
(short index) private IClass
ClassFileIClass.resolveClass
(String descriptor) private IClass[]
ClassFileIClass.resolveClasses
(short[] ifs) private IClass
UnitCompiler.unaryNumericPromotion
(Java.Locatable locatable, IType type) Implements "unary numeric promotion" (JLS7 5.6.1).private IClass
UnitCompiler.unaryNumericPromotionType
(Java.Locatable locatable, IType type) Methods in org.codehaus.janino with parameters of type IClassModifier and TypeMethodDescriptionprivate short
UnitCompiler.addConstantClassInfo
(IClass iClass) private short
UnitCompiler.addConstantFieldrefInfo
(IClass iClass, String fieldName, IClass fieldType) private short
UnitCompiler.addConstantInterfaceMethodrefInfo
(IClass iClass, String methodName, String methodFd) private short
UnitCompiler.addConstantMethodrefInfo
(IClass iClass, String methodName, String methodFd) private void
UnitCompiler.anewarray
(Java.Locatable locatable, IClass componentType) private void
UnitCompiler.checkAccessible
(IClass type, Java.Scope contextScope, Location location) Checks whether the givenIClass
is accessible in the given context, according to JLS7 6.6.1.2 and 6.6.1.4.private void
UnitCompiler.checkMemberAccessible
(IClass iClassDeclaringMember, IClass.IMember member, Java.Scope contextScope, Location location) Verifies that a member (class, interface, field or method) declared in a given class is accessible from a given block statement context, according to JLS7 6.6.1.4.private void
UnitCompiler.consT
(Java.Locatable locatable, IClass iClass) private void
UnitCompiler.consT
(Java.Locatable locatable, IClass t, int value) protected final void
IClassLoader.defineIClass
(IClass iClass) Defines anIClass
in the context of thisIClassLoader
.private IClass.IMethod
UnitCompiler.fakeIMethod
(IClass targetType, String name, Java.Rvalue[] arguments) final IClass.IConstructor
IClass.findIConstructor
(IClass[] parameterTypes) private IClass.IField
UnitCompiler.findIField
(IClass iClass, String name, Location location) Finds a named field in the givenIClass
.final IClass.IMethod
IClass.findIMethod
(String methodName, IClass[] parameterTypes) UnitCompiler.findMostSpecificIInvocable
(Java.Locatable locatable, IClass.IInvocable[] iInvocables, IClass[] argumentTypes, boolean boxingPermitted, Java.Scope contextScope) Determines the applicable invocables and choose the most specific invocable.private void
UnitCompiler.generateBridgeMethod
(ClassFile cf, IClass declaringIClass, IClass.IMethod base, IClass.IMethod override) Generates and compiles a bridge method with signature base that delegates to override.IClassLoader.getArrayIClass
(IClass componentType) Gets anIClass
that represents an array of this type.IClassLoader.getArrayIClass
(IClass componentType, int n) Gets anIClass
that represents an n-dimensional array of this type.private IClass
IClassLoader.getArrayIClass2
(IClass componentType) static String[]
IClass.getDescriptors
(IClass[] iClasses) Convenience method that determines the field descriptors of an array ofIClass
es.private void
UnitCompiler.getfield
(Java.Locatable locatable, IClass declaringIClass, String fieldName, IClass fieldType, boolean statiC) void
UnitCompiler.getIMethods
(IClass type, String methodName, List<IClass.IMethod> v) Adds all methods with the given methodName that are declared by the type, its superclasses and all their superinterfaces to the result list v.private static IClass.IMethod
private boolean
UnitCompiler.hasAnnotation
(Java.FunctionDeclarator fd, IClass annotationType) final boolean
IClass.hasIMethod
(String methodName, IClass[] parameterTypes) private static int
boolean
IClass.implementsInterface
(IClass that) Ifthis
represents a class: Returntrue
if this class directly or indirectly implementsthat
interface.private void
UnitCompiler.importStatic
(IClass declaringIClass, String simpleName, Collection<Object> result, Location location) Finds all members (member classes, member interfaces, static fields and/or static methods) of the declaringIClass with the given simpleName and adds them to the result.private String
UnitCompiler.internalCheckAccessible
(IClass iClassDeclaringMember, Access memberAccess, Java.Scope contextScope) private String
UnitCompiler.internalCheckAccessible
(IClass type, Java.Scope contextScope) private void
UnitCompiler.invoke
(Java.Locatable locatable, int opcode, IClass declaringIClass, String methodName, MethodDescriptor methodDescriptor, boolean useInterfaceMethodRef) Expects the target object and the arguments on the operand stack.private boolean
UnitCompiler.isAccessible
(IClass iClassDeclaringMember, Access memberAccess, Java.Scope contextScope) Determines whether a member (class, interface, field or method) declared in a given class is accessible from a given block statement context, according to JLS7 6.6.1.4.private boolean
UnitCompiler.isAccessible
(IClass type, Java.Scope contextScope) Determines whether the givenIClass
is accessible in the given context, according to JLS7 6.6.1.2 and 6.6.1.4.boolean
IClass.isAssignableFrom
(IClass that) Determines ifthis
is assignable from that.private boolean
UnitCompiler.isMethodInvocationConvertible
(IClass sourceType, IClass targetType, boolean boxingPermitted) Checks if "method invocation conversion" (5.3) is possible.boolean
IClass.isSubclassOf
(IClass that) Returnstrue
if this class is an immediate or non-immediate subclass ofthat
class.private boolean
UnitCompiler.isWideningPrimitiveConvertible
(IClass sourceType, IType targetType) private void
UnitCompiler.neg
(Java.Locatable locatable, IClass operandType) private ClassFile
UnitCompiler.newClassFile
(short accessFlags, IClass iClass, IClass superclass, IClass[] interfaces) private void
UnitCompiler.numericPromotion
(Java.Locatable locatable, IType sourceType, IClass targetType) private boolean
UnitCompiler.overridesMethod
(IClass.IMethod method, IClass type) private boolean
UnitCompiler.overridesMethodFromSupertype
(IClass.IMethod m, IClass type) private void
UnitCompiler.referenceThis
(Java.Locatable locatable, IClass currentIClass) private static IClass.IConstructor
IClassLoader.requireConstructor
(IClass declaringType, IClass... parameterTypes) private static IClass.IMethod
IClassLoader.requireMethod
(IClass declaringType, String name, IClass... parameterTypes) private void
UnitCompiler.reverseUnaryNumericPromotion
(Java.Locatable locatable, IClass sourceType, IType targetType) private void
UnitCompiler.unboxingConversion
(Java.Locatable locatable, IType sourceType, IClass targetType) private void
UnitCompiler.writeConstantClassInfo
(IClass iClass) private void
UnitCompiler.writeConstantFieldrefInfo
(IClass iClass, String fieldName, IClass fieldType) private void
UnitCompiler.writeConstantInterfaceMethodrefInfo
(IClass iClass, String methodName, MethodDescriptor methodMd) private void
UnitCompiler.writeConstantMethodrefInfo
(IClass iClass, String methodName, MethodDescriptor methodMd) Method parameters in org.codehaus.janino with type arguments of type IClassModifier and TypeMethodDescriptionprivate void
IClass.findMemberType
(String name, Collection<IClass> result) Constructors in org.codehaus.janino with parameters of type IClassModifierConstructorDescription(package private)
NewInitializedArray
(Location location, IClass arrayIClass, Java.ArrayInitializer arrayInitializer) SimpleIField
(IClass declaringIClass, String name, IClass type)