Package | Description |
---|---|
org.codehaus.janino |
The classes in this package pose the core of the Janino JavaTM compiler.
|
Modifier and Type | Class | Description |
---|---|---|
class |
ClassFileIClass |
Modifier and Type | Field | Description |
---|---|---|
IClass |
IClassLoader.ANNO_java_lang_Override |
Representation of the
Override annotation. |
IClass |
Java.NewInitializedArray.arrayIClass |
The resolved
Java.NewInitializedArray.arrayType . |
static IClass |
IClass.BOOLEAN |
The
IClass object for the primitive type BOOLEAN. |
static IClass |
IClass.BYTE |
The
IClass object for the primitive type BYTE. |
static IClass |
IClass.CHAR |
The
IClass object for the primitive type CHAR. |
static IClass |
IClass.DOUBLE |
The
IClass object for the primitive type DOUBLE. |
static IClass |
IClass.FLOAT |
The
IClass object for the primitive type FLOAT. |
protected IClass |
Java.NewClassInstance.iClass |
The resolved
Java.NewClassInstance.type . |
IClass |
Java.SimpleType.iClass |
|
static IClass |
IClass.INT |
The
IClass object for the primitive type INT. |
static IClass |
IClass.LONG |
The
IClass object for the primitive type LONG. |
static IClass |
IClass.SHORT |
The
IClass object for the primitive type SHORT. |
IClass |
Java.LocalVariable.type |
The type of this local variable.
|
IClass |
IClassLoader.TYPE_java_io_Serializable |
Representation of the
Serializable type. |
IClass |
IClassLoader.TYPE_java_lang_AssertionError |
Representation of the
AssertionError type. |
IClass |
IClassLoader.TYPE_java_lang_Boolean |
Representation of the
Boolean type. |
IClass |
IClassLoader.TYPE_java_lang_Byte |
Representation of the
Byte type. |
IClass |
IClassLoader.TYPE_java_lang_Character |
Representation of the
Character type. |
IClass |
IClassLoader.TYPE_java_lang_Class |
Representation of the
Class type. |
IClass |
IClassLoader.TYPE_java_lang_Cloneable |
Representation of the
Cloneable type. |
IClass |
IClassLoader.TYPE_java_lang_Double |
Representation of the
Double type. |
IClass |
IClassLoader.TYPE_java_lang_Error |
Representation of the
Error type. |
IClass |
IClassLoader.TYPE_java_lang_Exception |
Representation of the
Exception type. |
IClass |
IClassLoader.TYPE_java_lang_Float |
Representation of the
Float type. |
IClass |
IClassLoader.TYPE_java_lang_Integer |
Representation of the
Integer type. |
IClass |
IClassLoader.TYPE_java_lang_Iterable |
Representation of the
Iterable type. |
IClass |
IClassLoader.TYPE_java_lang_Long |
Representation of the
Long type. |
IClass |
IClassLoader.TYPE_java_lang_Object |
Representation of the
Object type. |
IClass |
IClassLoader.TYPE_java_lang_RuntimeException |
Representation of the
RuntimeException type. |
IClass |
IClassLoader.TYPE_java_lang_Short |
Representation of the
Short type. |
IClass |
IClassLoader.TYPE_java_lang_String |
Representation of the
String type. |
IClass |
IClassLoader.TYPE_java_lang_StringBuilder |
Representation of the
StringBuilder type. |
IClass |
IClassLoader.TYPE_java_lang_Throwable |
Representation of the
Throwable type. |
IClass |
IClassLoader.TYPE_java_util_Iterator |
Representation of the
Iterator type. |
static IClass |
IClass.VOID |
The
IClass object for the type VOID. |
Modifier and Type | Method | Description |
---|---|---|
IClass |
UnitCompiler.findClass(String className) |
Find one class or interface declared in this compilation unit by name.
|
protected IClass |
ClassLoaderIClassLoader.findIClass(String descriptor) |
|
protected abstract IClass |
IClassLoader.findIClass(String descriptor) |
|
IClass |
JavaSourceIClassLoader.findIClass(String fieldDescriptor) |
|
protected IClass |
ResourceFinderIClassLoader.findIClass(String descriptor) |
|
IClass |
IClass.getArrayIClass(int n,
IClass objectType) |
Get an
IClass that represents an n-dimensional array of this type. |
IClass |
IClass.getArrayIClass(IClass objectType) |
Get an
IClass that represents an array of this type. |
IClass |
IClass.getComponentType() |
|
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() |
|
IClass |
IClass.IField.getDeclaringIClass() |
|
IClass |
IClass.IInvocable.getDeclaringIClass() |
|
IClass |
IClass.IMember.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 abstract IClass |
IClass.getOuterIClass2() |
|
IClass[] |
IClass.IInvocable.getParameterTypes() |
Returns the types of the parameters of this constructor or method.
|
abstract IClass[] |
IClass.IConstructor.getParameterTypes2() |
Opposed to
Constructor.getParameterTypes() , the
return value of this method does not include the optionally leading "synthetic
parameters". |
abstract IClass[] |
IClass.IInvocable.getParameterTypes2() |
|
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() |
|
IClass[] |
IClass.IInvocable.getThrownExceptions() |
Returns the types thrown by this constructor or method.
|
abstract IClass[] |
IClass.IInvocable.getThrownExceptions2() |
|
abstract IClass |
IClass.IField.getType() |
|
IClass |
Java.LocalVariableSlot.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 | 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.IConstructor |
IClass.findIConstructor(IClass[] parameterTypes) |
|
IClass.IMethod |
IClass.findIMethod(String methodName,
IClass[] parameterTypes) |
|
IClass.IInvocable |
UnitCompiler.findMostSpecificIInvocable(Java.Locatable locatable,
IClass.IInvocable[] iInvocables,
IClass[] argumentTypes,
boolean boxingPermitted,
Java.Scope contextScope) |
Determine the applicable invocables and choose the most specific invocable.
|
IClass |
IClass.getArrayIClass(int n,
IClass objectType) |
Get an
IClass that represents an n-dimensional array of this type. |
IClass |
IClass.getArrayIClass(IClass objectType) |
Get an
IClass that represents an 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<IClass.IMethod> 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. |
Constructor | Description |
---|---|
LocalVariable(boolean finaL,
IClass type) |
|
LocalVariableSlot(String name,
short slotNumber,
IClass type) |
|
NewClassInstance(Location location,
Java.Rvalue optionalQualification,
IClass iClass,
Java.Rvalue[] arguments) |
|
SimpleIField(IClass declaringIClass,
String name,
IClass type) |
|
SimpleType(Location location,
IClass iClass) |
Copyright © 2001–2019. All rights reserved.