Package | Description |
---|---|
org.codehaus.janino |
The classes in this package pose the core of the Janino JavaTM
compiler.
|
Modifier and Type | Class and Description |
---|---|
class |
ClassFileIClass
|
Modifier and Type | Field and Description |
---|---|
IClass |
IClassLoader.BOOLEAN |
static IClass |
IClass.BOOLEAN |
IClass |
IClassLoader.BYTE |
static IClass |
IClass.BYTE |
static IClass |
IClass.CHAR |
IClass |
IClassLoader.CHARACTER |
IClass |
IClassLoader.CLASS |
IClass |
IClassLoader.CLONEABLE |
IClass |
IClassLoader.DOUBLE |
static IClass |
IClass.DOUBLE |
IClass |
IClassLoader.ERROR |
IClass |
IClassLoader.FLOAT |
static IClass |
IClass.FLOAT |
IClass |
Java.SimpleType.iClass |
protected IClass |
Java.NewClassInstance.iClass |
static IClass |
IClass.INT |
IClass |
IClassLoader.INTEGER |
IClass |
IClassLoader.LONG |
static IClass |
IClass.LONG |
IClass |
IClassLoader.OBJECT |
IClass |
IClassLoader.RUNTIME_EXCEPTION |
IClass |
IClassLoader.SERIALIZABLE |
IClass |
IClassLoader.SHORT |
static IClass |
IClass.SHORT |
IClass |
IClassLoader.STRING |
IClass |
IClassLoader.THROWABLE |
IClass |
Java.LocalVariable.type |
static IClass |
IClass.VOID |
Modifier and Type | Method and Description |
---|---|
IClass |
UnitCompiler.findClass(String className)
Find one class or interface declared in this compilation unit by name.
|
protected IClass |
ResourceFinderIClassLoader.findIClass(String descriptor) |
IClass |
JavaSourceIClassLoader.findIClass(String type) |
protected abstract IClass |
IClassLoader.findIClass(String descriptor)
|
protected IClass |
ClassLoaderIClassLoader.findIClass(String descriptor)
Find a new
IClass by descriptor. |
IClass |
IClass.getArrayIClass(IClass objectType)
Get an
IClass that represents an array of this type. |
IClass |
IClass.getArrayIClass(int n,
IClass objectType)
Get an
IClass that represents an n-dimensional array of this type. |
IClass |
IClass.getComponentType()
Returns the component type of the array.
Returns "null" for classes, interfaces, primitive types and "void". |
protected IClass |
ClassFileIClass.getComponentType2() |
protected abstract IClass |
IClass.getComponentType2() |
IClass[] |
IClass.getDeclaredIClasses()
Returns the classes and interfaces declared as members of the class
(but not inherited classes and interfaces).
Returns an empty array for an array, primitive type or "void". |
protected IClass[] |
ClassFileIClass.getDeclaredIClasses2() |
protected abstract IClass[] |
IClass.getDeclaredIClasses2() |
IClass |
IClass.getDeclaringIClass()
If this class is a member class, return the declaring class, otherwise return
null . |
IClass |
IClass.IMember.getDeclaringIClass()
Returns the
IClass that declares this IClass.IMember . |
IClass |
IClass.IInvocable.getDeclaringIClass() |
IClass |
IClass.IField.getDeclaringIClass() |
protected IClass |
ClassFileIClass.getDeclaringIClass2() |
protected abstract IClass |
IClass.getDeclaringIClass2() |
IClass[] |
IClass.getInterfaces()
Returns the interfaces implemented by the class.
Returns the superinterfaces of the interface. Returns "Cloneable" and "Serializable" for arrays. Returns an empty array for primitive types and "void". |
protected IClass[] |
ClassFileIClass.getInterfaces2() |
protected abstract IClass[] |
IClass.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 classes
|
protected IClass |
ClassFileIClass.getOuterIClass2() |
protected IClass |
Java.LocalClassDeclaration.getOuterIClass2() |
protected IClass |
Java.PackageMemberClassDeclaration.getOuterIClass2() |
protected abstract IClass |
IClass.getOuterIClass2() |
abstract IClass[] |
IClass.IInvocable.getParameterTypes() |
abstract IClass[] |
IClass.IConstructor.getParameterTypes()
Opposed to
Constructor.getParameterTypes() , the
return value of this method does not include the optionally leading "synthetic
parameters". |
abstract IClass |
IClass.IMethod.getReturnType() |
IClass |
IClass.getSuperclass()
Returns the superclass of the class.
Returns "null" for class "Object", interfaces, arrays, primitive types and "void". |
protected IClass |
ClassFileIClass.getSuperclass2() |
protected abstract IClass |
IClass.getSuperclass2() |
abstract IClass[] |
IClass.IInvocable.getThrownExceptions() |
IClass |
Java.LocalVariableSlot.getType() |
abstract IClass |
IClass.IField.getType() |
IClass |
UnitCompiler.SimpleIField.getType() |
IClass |
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. |
IClass |
IClassLoader.loadIClass(String fieldDescriptor)
Get an
IClass by field descriptor. |
Modifier and Type | Method and Description |
---|---|
Java.LocalVariableSlot |
CodeContext.allocateLocalVariable(short size,
String name,
IClass type)
Allocate space for a local variable of the given size (1 or 2)
on the local variable array.
|
protected void |
IClassLoader.defineIClass(IClass iClass)
Define an
IClass in the context of this IClassLoader . |
IClass.IMethod |
IClass.findIMethod(String methodName,
IClass[] parameterTypes) |
IClass.IInvocable |
UnitCompiler.findMostSpecificIInvocable(Java.Locatable l,
IClass.IInvocable[] iInvocables,
IClass[] argumentTypes,
boolean boxingPermitted,
Java.Scope contextScope)
Determine the applicable invocables and choose the most specific invocable.
|
IClass |
IClass.getArrayIClass(IClass objectType)
Get an
IClass that represents an array of this type. |
IClass |
IClass.getArrayIClass(int n,
IClass objectType)
Get an
IClass that represents an n-dimensional array of this type. |
static String[] |
IClass.getDescriptors(IClass[] iClasses)
Convenience method that determines the field descriptors of an array of
IClass es. |
void |
UnitCompiler.getIMethods(IClass type,
String methodName,
List v)
Add all methods with the given
methodName that are declared
by the type , its superclasses and all their superinterfaces
to the result list v . |
boolean |
IClass.hasIMethod(String methodName,
IClass[] parameterTypes) |
boolean |
IClass.implementsInterface(IClass that)
If
this represents a class: Return true if this class
directly or indirectly implements that interface. |
boolean |
IClass.isAssignableFrom(IClass that)
Determine if "this" is assignable from "that".
|
boolean |
IClass.isSubclassOf(IClass that)
Returns
true if this class is an immediate or non-immediate
subclass of that class. |
void |
UnitCompiler.leave2(Java.BlockStatement bs,
IClass optionalStackValueType) |
void |
UnitCompiler.leave2(Java.SynchronizedStatement ss,
IClass optionalStackValueType) |
void |
UnitCompiler.leave2(Java.TryStatement ts,
IClass optionalStackValueType) |
Constructor and Description |
---|
Java.LocalVariable(boolean finaL,
IClass type) |
Java.LocalVariableSlot(String name,
short slotNumber,
IClass type) |
Java.NewClassInstance(Location location,
Java.Rvalue optionalQualification,
IClass iClass,
Java.Rvalue[] arguments) |
Java.SimpleType(Location location,
IClass iClass) |
UnitCompiler.SimpleIField(IClass declaringIClass,
String name,
IClass type) |
Copyright © 2001-2012. All Rights Reserved.