Package | Description |
---|---|
org.codehaus.janino |
The classes in this package pose the core of the Janino JavaTM compiler.
|
org.codehaus.janino.util |
Application-independent helper classes.
|
Modifier and Type | Field and Description |
---|---|
private ClassFile |
CodeContext.classFile |
private ClassFile |
ClassFileIClass.classFile |
Modifier and Type | Field and Description |
---|---|
private java.util.List<ClassFile> |
UnitCompiler.generatedClassFiles |
Modifier and Type | Method and Description |
---|---|
ClassFile[] |
UnitCompiler.compileUnit(boolean debugSource,
boolean debugLines,
boolean debugVars)
Generates an array of
ClassFile objects which represent the classes and interfaces declared in the
compilation unit. |
ClassFile |
CodeContext.getClassFile()
The
ClassFile this context is related to. |
Modifier and Type | Method and Description |
---|---|
private void |
UnitCompiler.addFields(Java.FieldDeclaration fd,
ClassFile cf)
Creates
ClassFile.FieldInfo s for all fields declared by the given Java.FieldDeclaration . |
private void |
UnitCompiler.compile(Java.FunctionDeclarator fd,
ClassFile classFile) |
private void |
UnitCompiler.compileBridgeMethod(ClassFile cf,
IClass.IMethod base,
IClass.IMethod override)
Compiles a bridge method which will add a method of the signature of base that delegates to override.
|
private void |
UnitCompiler.compileDeclaredMemberTypes(Java.TypeDeclaration decl,
ClassFile cf)
Compile all of the types for this declaration
|
private void |
UnitCompiler.compileDeclaredMethods(Java.AbstractTypeDeclaration typeDeclaration,
ClassFile cf)
Compile all of the methods for this declaration
|
private void |
UnitCompiler.compileDeclaredMethods(Java.TypeDeclaration typeDeclaration,
ClassFile cf,
int startPos)
Compile methods for this declaration starting at
startPos . |
private void |
UnitCompiler.maybeCreateInitMethod(Java.AbstractTypeDeclaration decl,
ClassFile cf,
java.util.List<Java.BlockStatement> statements)
Create class initialization method iff there is any initialization code.
|
void |
Compiler.storeClassFile(ClassFile classFile,
java.io.File sourceFile)
Store the byte code of this
ClassFile in the file system. |
Constructor and Description |
---|
ClassFileIClass(ClassFile classFile,
IClassLoader iClassLoader) |
CodeContext(ClassFile classFile,
java.lang.String functionName)
Creates an empty "Code" attribute.
|
Modifier and Type | Method and Description |
---|---|
ClassFile |
ClassFile.MethodInfo.getClassFile() |
Modifier and Type | Method and Description |
---|---|
ClassFile.ConstantValuePoolInfo |
ClassFile.ConstantValueAttribute.getConstantValue(ClassFile classFile) |
java.lang.String |
ClassFile.ConstantNameAndTypeInfo.getDescriptor(ClassFile classFile) |
java.lang.String |
ClassFile.FieldInfo.getDescriptor(ClassFile classFile) |
ClassFile.ConstantClassInfo[] |
ClassFile.ExceptionsAttribute.getExceptions(ClassFile classFile) |
java.lang.String |
ClassFile.ConstantClassInfo.getName(ClassFile classFile) |
java.lang.String |
ClassFile.FieldInfo.getName(ClassFile classFile) |
ClassFile.ConstantNameAndTypeInfo |
ClassFile.ConstantFieldrefInfo.getNameAndType(ClassFile classFile) |
ClassFile.ConstantNameAndTypeInfo |
ClassFile.ConstantMethodrefInfo.getNameAndType(ClassFile classFile) |
ClassFile.ConstantNameAndTypeInfo |
ClassFile.ConstantInterfaceMethodrefInfo.getNameAndType(ClassFile classFile) |
abstract java.lang.Object |
ClassFile.ConstantValuePoolInfo.getValue(ClassFile classFile) |
java.lang.Object |
ClassFile.ConstantStringInfo.getValue(ClassFile classFile) |
java.lang.Object |
ClassFile.ConstantIntegerInfo.getValue(ClassFile classFile) |
java.lang.Object |
ClassFile.ConstantFloatInfo.getValue(ClassFile classFile) |
java.lang.Object |
ClassFile.ConstantLongInfo.getValue(ClassFile classFile) |
java.lang.Object |
ClassFile.ConstantDoubleInfo.getValue(ClassFile classFile) |
static ClassFile.AttributeInfo |
ClassFile.CodeAttribute.loadBody(short attributeNameIndex,
ClassFile classFile,
java.io.DataInputStream dis) |