Top Description Interfaces Classes Enums
[default module]

Package org.codehaus.janino

Annotations
@NotNullByDefault
Imports
org.codehaus.commons.nullanalysis.NotNullByDefault

The core of the Janino Java compiler.

The package comprises a scanner (org.codehaus.janino.Scanner, a parser (org.codehaus.janino.Parser) and a class file library. The parser builds a syntax tree from the "Java.*" classes that represents the parsed code. The org.codehaus.janino.UnitCompiler#compileUnit(boolean, boolean, boolean, org.codehaus.janino.UnitCompiler.ClassFileConsumer) method compiles this syntax tree into a org.codehaus.janino.util.ClassFile object, which can write JVM bytecode to an java.io.OutputStream.

This package implements the org.codehaus.commons.compiler API.

Interface Summary

Modifier and TypeInterface and Description
public interface
public interface
public interface
ITypeVariable

Type bounds can either be a class or interface type, or a type variable.

public interface
public interface
public interface
TokenStream

An interface that allows for peeking and consuming a stream of Tokens.

Class Summary

Modifier and TypeClass and Description
public class
AntCompilerAdapter

A simple org.apache.tools.ant.taskdefs.compilers.CompilerAdapter for the "ant" tool that silently ignores most of the configuration parameters and attempts to compile all given source files into class files.

public class
CachingJavaSourceClassLoader

A org.codehaus.janino.JavaSourceClassLoader that uses a resource storage provided by the application to cache compiled classes and thus saving unnecessary recompilations.

public class
public class
ClassFileIClass

A wrapper object that turns a ClassFile object into an IClass.

public class
ClassLoaderIClassLoader

An IClassLoader that loads IClasses through a reflection ClassLoader.

public class
CodeContext

The context of the compilation of a function (constructor or method).

public class
Compiler

JANINO implementation of ICompiler.

public class
CompilerFactory

The JANINO implementation of ICompilerFactory.

public class
Descriptor

Helper class that defines useful methods for handling "field descriptors" (JVMS 4.3.2) and "method descriptors" (JVMS 4.3.3).

public class
ExpressionEvaluator

This IExpressionEvaluator is implemented by creating and compiling a temporary compilation unit defining one class with one static method with one RETURN statement.

public class
FilterWarningHandler

Invokes a delegate iff the handle of the warning matches one or more of a set of StringPatterns.

public abstract class
IClass

A simplified equivalent to "java.lang.reflect".

public abstract class
IClassLoader

Loads an IClass by type name.

public class
Java

This wrapper class defines classes that represent the elements of the Java programming language.

public class
JavaSourceClassLoader

A ClassLoader that, unlike usual ClassLoaders, does not load byte code, but reads Java source code and then scans, parses, compiles and loads it into the virtual machine.

public class
JavaSourceIClassLoader

This org.codehaus.janino.IClassLoader finds, scans and parses compilation units.

public class
MethodDescriptor

Representation of a "method descriptor" (JVMS 4.3.3).

public class
Mod

This class defines constants and convenience methods for the handling of modifiers as defined by the JVM.

pack-priv class
Opcode

Definitions of JVM bytecode opcodes.

public class
Parser

A parser for the Java programming language.

pack-priv class
public class
public class
Scanner

Splits up a character stream into tokens and returns them as String objects.

public class
ScriptEvaluator

An implementation of IScriptEvaluator that utilizes the JANINO Java compiler.

public class
SimpleCompiler

To set up a SimpleCompiler object, proceed as described for ISimpleCompiler.

pack-priv class
public class
Token

Immutable representation of a Java token.

public class
TokenStreamImpl

Standard implementation for the TokenStream.

public class
UnicodeUnescapeException

Represents a problem that occurred while unescaping a unicode escape sequence through a UnicodeUnescapeReader.

public class
UnicodeUnescapeReader

A FilterReader that unescapes the "Unicode Escapes" as described in JLS7 3.10.6.

public class
UnitCompiler

This class actually implements the Java compiler.

public class
Unparser

Unparses (un-compiles) an AST to a Writer.

public class
Visitor

The basis for the "visitor" pattern as described in "Gamma, Helm, Johnson, Vlissides: Design Patterns".

Enum Summary

Modifier and TypeEnum and Description
public enum
public enum
JaninoOption

The compilation of Compiler, JavaSourceIClassLoader, SimpleCompiler and their subclasses can be configured with these options.

public enum
TokenType

Enumeration of the types of Tokens that the Scanner produces.