Uses of Class
org.codehaus.janino.IClass
-
Packages that use IClass Package Description org.codehaus.janino The core of the Janino Java compiler. -
-
Uses of IClass in org.codehaus.janino
Subclasses of IClass in org.codehaus.janino Modifier and Type Class Description class
ClassFileIClass
private static class
IClass.PrimitiveIClass
(package private) class
ReflectionIClass
Wraps aClass
in anIClass
.Fields in org.codehaus.janino declared as IClass Modifier and Type Field Description IClass
Java.NewInitializedArray. arrayIClass
The resolvedJava.NewInitializedArray.arrayType
.static IClass
IClass. BOOLEAN
TheIClass
object for the primitive type BOOLEAN.static IClass
IClass. BYTE
TheIClass
object for the primitive type BYTE.static IClass
IClass. CHAR
TheIClass
object for the primitive type CHAR.private IClass
IClass. componentTypeCache
private IClass[]
IClass. declaredIClassesCache
private IClass
IClass. declaringIClassCache
static IClass
IClass. DOUBLE
TheIClass
object for the primitive type DOUBLE.static 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 IClass
IClass. INT
TheIClass
object for the primitive type INT.private IClass[]
IClass. interfacesCache
static IClass
IClass. LONG
TheIClass
object for the primitive type LONG.static 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 IClass
IClass. SHORT
TheIClass
object for the primitive type SHORT.private IClass
IClass. superclassCache
private IClass[]
IClass.IInvocable. thrownExceptionsCache
private IClass
UnitCompiler.SimpleIField. type
IClass
IClassLoader. TYPE_java_io_Serializable
IClass
IClassLoader. TYPE_java_lang_annotation_Retention
IClass
IClassLoader. TYPE_java_lang_AssertionError
IClass
IClassLoader. TYPE_java_lang_Boolean
IClass
IClassLoader. TYPE_java_lang_Byte
IClass
IClassLoader. TYPE_java_lang_Character
IClass
IClassLoader. TYPE_java_lang_Class
IClass
IClassLoader. TYPE_java_lang_Cloneable
IClass
IClassLoader. TYPE_java_lang_Double
IClass
IClassLoader. TYPE_java_lang_Enum
IClass
IClassLoader. TYPE_java_lang_Error
IClass
IClassLoader. TYPE_java_lang_Exception
IClass
IClassLoader. TYPE_java_lang_Float
IClass
IClassLoader. TYPE_java_lang_Integer
IClass
IClassLoader. TYPE_java_lang_Iterable
IClass
IClassLoader. TYPE_java_lang_Long
IClass
IClassLoader. TYPE_java_lang_Object
IClass
IClassLoader. TYPE_java_lang_Override
IClass
IClassLoader. TYPE_java_lang_RuntimeException
IClass
IClassLoader. TYPE_java_lang_Short
IClass
IClassLoader. TYPE_java_lang_String
IClass
IClassLoader. TYPE_java_lang_StringBuilder
IClass
IClassLoader. TYPE_java_lang_System
IClass
IClassLoader. TYPE_java_lang_Throwable
IClass
IClassLoader. TYPE_java_lang_Void
IClass
IClassLoader. TYPE_java_util_Iterator
static IClass
IClass. VOID
TheIClass
object for the type VOID.private static IClass[]
IClass. ZERO_ICLASSES
Fields in org.codehaus.janino with type parameters of type IClass Modifier and Type Field Description private java.util.Map<IClass,IClass>
IClassLoader. arrayIClasses
private java.util.Map<IClass,IClass>
IClassLoader. arrayIClasses
private java.util.Map<java.lang.String,IClass>
IClassLoader. loadedIClasses
private java.util.Map<java.lang.String,IClass>
UnitCompiler. onDemandImportableTypes
private java.util.Map<java.lang.String,IClass>
ClassFileIClass. resolvedClasses
Methods in org.codehaus.janino that return IClass Modifier and Type Method Description private IClass
UnitCompiler. binaryNumericPromotionType(Java.Locatable locatable, IType type1, IType type2)
private IClass[]
ReflectionIClass. classesToIClasses(java.lang.Class<?>[] cs)
private IClass
ReflectionIClass. classToIClass(java.lang.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, java.util.Iterator<Java.Rvalue> operands)
private IClass
UnitCompiler. consT(Java.Locatable locatable, java.lang.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, java.lang.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
.IClass
UnitCompiler. findClass(java.lang.String className)
Finds one class or interface declaration in this compilation unit and resolves it into anIClass
.protected IClass
ClassLoaderIClassLoader. findIClass(java.lang.String descriptor)
protected IClass
Compiler.CompilerIClassLoader. findIClass(java.lang.String type)
protected abstract IClass
IClassLoader. findIClass(java.lang.String descriptor)
Finds a newIClass
by descriptor and callsIClassLoader.defineIClass(IClass)
.IClass
JavaSourceIClassLoader. findIClass(java.lang.String fieldDescriptor)
protected IClass
ResourceFinderIClassLoader. findIClass(java.lang.String descriptor)
(package private) IClass[]
IClass. findMemberType(java.lang.String name)
If name isnull
, finds allIClass
es visible in the scope of the current class.private IClass
UnitCompiler. findMemberType(IType iType, java.lang.String name, Java.TypeArgument[] typeArguments, Location location)
Finds a named type in the givenIClass
orIParameterizedType
.private IClass
UnitCompiler. findTypeByFullyQualifiedName(Location location, java.lang.String[] identifiers)
Attempts to load anIClass
by fully-qualified name throughUnitCompiler.iClassLoader
.private IClass
UnitCompiler. findTypeByName(Location location, java.lang.String className)
Finds the namedIClass
in this compilation unit, or through theUnitCompiler.iClassLoader
.IClass
IClassLoader. getArrayIClass(IClass componentType)
Gets anIClass
that represents an array of this type.IClass
IClassLoader. getArrayIClass(IClass componentType, int n)
Gets anIClass
that represents an n-dimensional array of this type.private IClass
IClassLoader. getArrayIClass2(IClass componentType)
IClass
IClass. getComponentType()
protected IClass
ClassFileIClass. getComponentType2()
protected abstract IClass
IClass. getComponentType2()
protected IClass
IClass.PrimitiveIClass. getComponentType2()
protected IClass
ReflectionIClass. getComponentType2()
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()
IClass
IClass. getDeclaringIClass()
IClass
IClass.IField. getDeclaringIClass()
IClass
IClass.IInvocable. getDeclaringIClass()
IClass
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)
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()
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()
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, java.lang.String simpleTypeName, Java.Scope scope)
private IClass
UnitCompiler. getRawType(Java.Type t)
abstract IClass
IClass.IMethod. getReturnType()
IClass
ReflectionIClass.ReflectionIMethod. getReturnType()
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()
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()
IClass
ReflectionIClass.ReflectionIField. getType()
IClass
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(java.lang.String simpleTypeName, Location location)
If the given name was declared in a simple type import, load that class.IClass
UnitCompiler. importTypeOnDemand(java.lang.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(java.lang.String simpleTypeName, Location location)
private IClass
UnitCompiler. isBoxingConvertible(IType sourceType)
private IClass
UnitCompiler. isUnboxingConvertible(IType sourceType)
IClass
IClassLoader. loadIClass(java.lang.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
CodeContext. rawTypeOf(IType iType)
static IClass
IClass. rawTypeOf(IType type)
private static IClass
UnitCompiler. rawTypeOf(IType iType)
private static IClass[]
UnitCompiler. rawTypesOf(IType[] iTypes)
private IClass
IClassLoader. requireType(java.lang.String descriptor)
private IClass
UnitCompiler. resolve(Java.TypeDeclaration td)
private IClass
ClassFileIClass. resolveClass(short index)
private IClass
ClassFileIClass. resolveClass(java.lang.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 IClass Modifier and Type Method Description private short
UnitCompiler. addConstantClassInfo(IClass iClass)
private short
UnitCompiler. addConstantFieldrefInfo(IClass iClass, java.lang.String fieldName, IClass fieldType)
private short
UnitCompiler. addConstantInterfaceMethodrefInfo(IClass iClass, java.lang.String methodName, java.lang.String methodFd)
private short
UnitCompiler. addConstantMethodrefInfo(IClass iClass, java.lang.String methodName, java.lang.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 void
IClassLoader. defineIClass(IClass iClass)
Defines anIClass
in the context of thisIClassLoader
.private IClass.IMethod
UnitCompiler. fakeIMethod(IClass targetType, java.lang.String name, Java.Rvalue[] arguments)
IClass.IConstructor
IClass. findIConstructor(IClass[] parameterTypes)
private IClass.IField
UnitCompiler. findIField(IClass iClass, java.lang.String name, Location location)
Finds a named field in the givenIClass
.IClass.IMethod
IClass. findIMethod(java.lang.String methodName, IClass[] parameterTypes)
IClass.IInvocable
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.IClass
IClassLoader. getArrayIClass(IClass componentType)
Gets anIClass
that represents an array of this type.IClass
IClassLoader. getArrayIClass(IClass componentType, int n)
Gets anIClass
that represents an n-dimensional array of this type.private IClass
IClassLoader. getArrayIClass2(IClass componentType)
static java.lang.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, java.lang.String fieldName, IClass fieldType, boolean statiC)
void
UnitCompiler. getIMethods(IClass type, java.lang.String methodName, java.util.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
IClassLoader. getMethod(IClass declaringType, java.lang.String name, IClass... parameterTypes)
private boolean
UnitCompiler. hasAnnotation(Java.FunctionDeclarator fd, IClass annotationType)
boolean
IClass. hasIMethod(java.lang.String methodName, IClass[] parameterTypes)
private static int
UnitCompiler. ilfdabcs(IClass t)
boolean
IClass. implementsInterface(IClass that)
Ifthis
represents a class: Returntrue
if this class directly or indirectly implementsthat
interface.private void
UnitCompiler. importStatic(IClass declaringIClass, java.lang.String simpleName, java.util.Collection<java.lang.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 java.lang.String
UnitCompiler. internalCheckAccessible(IClass iClassDeclaringMember, Access memberAccess, Java.Scope contextScope)
private java.lang.String
UnitCompiler. internalCheckAccessible(IClass type, Java.Scope contextScope)
private void
UnitCompiler. invoke(Java.Locatable locatable, int opcode, IClass declaringIClass, java.lang.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, java.lang.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, java.lang.String fieldName, IClass fieldType)
private void
UnitCompiler. writeConstantInterfaceMethodrefInfo(IClass iClass, java.lang.String methodName, MethodDescriptor methodMd)
private void
UnitCompiler. writeConstantMethodrefInfo(IClass iClass, java.lang.String methodName, MethodDescriptor methodMd)
Method parameters in org.codehaus.janino with type arguments of type IClass Modifier and Type Method Description private void
IClass. findMemberType(java.lang.String name, java.util.Collection<IClass> result)
Constructors in org.codehaus.janino with parameters of type IClass Constructor Description NewInitializedArray(Location location, IClass arrayIClass, Java.ArrayInitializer arrayInitializer)
SimpleIField(IClass declaringIClass, java.lang.String name, IClass type)
-