|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
ClassLoader
that, unlike usual ClassLoader
s, does not load byte code, but reads Java™ source
code and then scans, parses, compiles and loads it into the virtual machine.IClass.IMember.getAccess()
.FilterListIterator.delegate
.ListIterator.add(java.lang.Object)
Java.CompilationUnit
, add
A class declaration with the configured name, superclass and interfaces
A method declaration with the given return type, name, parameter names and values and thrown exceptions
CompilerAdapter
for the "ant" tool
that silently ignores most of the configuration parameters and attempts to compile all given
source files into class files.IllegalStateException
if this Cookable
is not yet cooked.
IllegalStateException
if this Cookable
is already cooked.
IllegalStateException
if this Cookable
is already cooked.
FilterWriter
that automatically indents lines by looking at
trailing opening braces ('{') and leading closing braces ('}').Benchmark.begin()
) and report the fact.
Benchmark.begin()
) and report the fact.
Benchmark
with a default Benchmark.Reporter
that reports to
System.out
.
Benchmark
with a custom Benchmark.Reporter
.
ClassLoader
that loads this classes on the boot class path, i.e.
ClassLoader
allows for the loading of a set of Java™ classes
provided in class file format.Map
of classes must not be modified afterwards.
ForwardingJavaFileManager
that stores ByteArrayJavaFileManager.ByteArrayJavaFileObject
s in byte arrays, i.e.JavaFileObject
.JavaSourceClassLoader
that uses a resource storage provided by the application to cache
compiled classes and thus saving unnecessary recompilations.CachingJavaSourceClassLoader.CachingJavaSourceClassLoader(ClassLoader, ResourceFinder, String, ResourceFinder, ResourceCreator)
.
classFileCacheResourceCreator
stores its data
atomically, i.e.
ClassBodyEvaluator
API.ClassBodyEvaluator
object, proceed as described for IClassBodyEvaluator
.optionalClassLoader
serves two purposes:
It is used to look for classes referenced by the class body.Class
es into an array ofJava.Type
s.
InputStream
and construct a
ClassFile
object from it.
ClassFile
object into a
IClass
.IClassLoader
that loads IClass
es through a reflection
ClassLoader
.Class
in a Java.Type
object.
Writer
that was passed
to UnparseVisitor.UnparseVisitor(Writer)
.
CodeContext.Offset
s
as "fix-ups": During the execution of
CodeContext.fixUp()
, all "fix-ups" are invoked and
can do last touches to the code attribute.Compiler.compile(File[])
.
Compiler.FIND_NEXT_TO_SOURCE_FILE
as the classFileResourceFinder
and
Compiler.CREATE_NEXT_TO_SOURCE_FILE
as the classFileResourceCreator
.
ICompilerFactory
s.ClassFile
objects which represent the classes and
interfaces declared in the compilation unit.
Reader
.
Reader
.
InputStream
, encoded
in the "platform default encoding".
InputStream
, encoded
in the "platform default encoding".
InputStream
with the
given encoding
.
InputStream
with the
given encoding
.
String
.
String
.
ICookable.cook(Reader)
, but for multiple scripts.
ICookable.cook(String, Reader)
, but cooks a set of scripts into one class.
ICookable.cook(String)
, but for multiple scripts.
ICookable.cook(String, String)
, but for multiple scripts.
ScriptEvaluator.cook(Scanner)
, but cooks a set of scripts into one class.
File
, encoded
in the "platform default encoding".
File
with the
given encoding
.
encoding
.
ClassBodyEvaluator.createInstance(Reader)
instead:
ClassBodyEvaluator.createInstance(Reader)
instead:
IExpressionEvaluator.createFastEvaluator(String, Class, String[])
.
IScriptEvaluator
, and is hence only available in this
implementation of org.codehaus.commons.compiler
.
Reader
, then creates
and returns an instance of that class.
IClassLoader
that looks for classes in the given "boot class
path", then in the given "extension directories", and then in the given
"class path".
Traverser
:
Reads, scans and parses the files named on the command line and counts
several kinds of declarations.ClassLoader.defineClass(java.lang.String, byte[], int, int)
.
IClass
in the context of this IClassLoader
.
Iterator
that finds the normal File
s who's names are
accepted
by the
fileNameFilter
and
that exist in the given rootDirectory
,
and those that exist in all subdirectories of the
rootDirectory
who's names are
FilenameFilter.accept(java.io.File, java.lang.String)
ed by the
directoryNameFilter
FileResourceFinder
that finds file resources in
a directory.System.out
.
Benchmark.end()
) and report the fact.
Benchmark.begin()
) and report the fact.
Iterator
that iterates over the elements of an
Enumeration
.Enumerator
s.this
iff
It is also an instance of ByteArrayClassLoader
Both have the same parent ClassLoader
Exactly the same classes (name, bytecode) were added to both
Roughly speaking, equal ByteArrayClassLoader
s will return functionally identical
Class
es on ClassLoader.loadClass(java.lang.String)
.
SimpleCompiler
s are regarded equal iff
Both are objects of the same class (e.g.
IScriptEvaluator.evaluate(Object[])
, but for multiple scripts.
DefaultCompilerAdapter.compileList
individually and
write class files in directory DefaultCompilerAdapter.destDir
.
ExpressionEvaluator
class.IExpressionEvaluator
is implemented by creating and compiling a temporary compilation unit defining one
class with one static method with one RETURN statement.IExpressionEvaluator
is implemented by creating and compiling a temporary
compilation unit defining one class with one static method with one RETURN statement.File
.ResourceFinder
for finding resources in File
s.Iterator
that retrieves its elements from a delegate
Iterator
.ListIterator
that retrieves its elements from a delegate
ListIterator
.handlePatterns
parameter are
StringPattern.PATTERNS_ALL
and StringPattern.PATTERNS_NONE
.
ClassLoader.findClass(String)
.
ClassLoader.findClass(String)
.
ClassLoader.findClass(String)
.
IClass
by descriptor.
IClass
by descriptor; return null
if a class
for that descriptor
could not be found.
Resource
object.
File
.
Enumerator
from a string.
JavaSourceClassLoader.generateBytecodes(String)
to implement class file caching.
org.codehaus.commons.compiler
on the class path, then loads and
instantiates their ICompilerFactory
s.
IClass
that represents an n-dimensional array of this type.
IClass
that represents an array of this type.
ClassLoader
object through which the previously compiled classes can be accessed.
Class
.
ICompilerFactory
by class name.
IClass.IField
declared in this IClass
(does not work for inherited fields).
IClass.IField
s declared in this IClass
(but not inherited fields).
IClass.getDeclaredIFields()
.
null
.
IClass
that declares this IClass.IMember
.
org.codehaus.commons.compiler
on the class path, then loads and
instantiates its ICompilerFactory
.
IClass.IConstructor.getParameterTypes()
, the method descriptor returned by this
method does include the optionally leading synthetic parameters.
IClass
es.
null
.
methodName
that are declared
by the type
, its superclasses and all their superinterfaces
to the result list v
.
Location
object specified at
construction time (may be null
).
Method
.
IScriptEvaluator.getMethod()
, but for multiple scripts.
null
if the class or interface is declared in the
default package.
Constructor.getParameterTypes()
, the
return value of this method does not include the optionally leading "synthetic
parameters".
true
if the object has a doc comment and
the @deprecated
tag appears in the doc
comment.
Object
's notion of Object.hashCode()
.
FilterListIterator.delegate
.ListIterator.hasNext()
FilterListIterator.delegate
.ListIterator.hasPrevious()
FilterListIterator.delegate
.ListIterator.hasPrevious()
FilterListIterator.delegate
.ListIterator.hasNext()
Class
object ready for use with
java.lang.reflect.IClass
by type name.this
represents a class: Return true
if this class
directly or indirectly implements that
interface.
true
if this class is an immediate or non-immediate
subclass of that
class.
Collection
that lazily reads its elements from an
Iterator
.RuntimeException
throw this subclass
to allow for client libraries to intercept them more easily.Java.Type
, Java.Rvalue
and
Java.Lvalue
.Java.Rvalue
s that compile better as conditional
branches.Parser.parseCompilationUnit()
.Java.Scope
of the given
Java.TypeDeclaration
.Java.ConstructorDeclarator
and
Java.MethodDeclarator
.elseStatement
is mandatory; for an if statement without
an "else" clause, a dummy Java.EmptyStatement
should be passed.
rvalue
is not a subordinate object!
ClassLoader
that, unlike usual ClassLoader
s,
does not load byte code, but reads Java™ source code and then scans, parses,
compiles and loads it into the virtual machine.JavaSourceClassLoader
that finds Java™ source code in a file
that resides in either of the directories specified by the given source path.
JavaSourceClassLoader
that finds Java™ source code through
a given ResourceFinder
.
IClassLoader
finds, scans and parses compilation units.unitCompilers
set is both read and written
by the JavaSourceIClassLoader
: As it searches for IClass
es, it looks
into unitCompilers
for class declarations, and as it opens,
scans and parses compilation units on-the-fly, it adds them to
unitCompilers
.
0L
if the time of the last modification cannot
be determined.
ResourceFinder
that examines a set
of ResourceFinder
s lazily as it
searches for resources.IClass
by field descriptor.
Exception
that is associated with an optional Location
in a source file.Location
of the next token.
Java.CompilationUnit
, set the default imports, and parse the import declarations.
Java.ClassDeclaration
, add
A public method declaration with the given return type, name, parameter
names and values and thrown exceptions
A block
block
by parsing statements until EOF and adding
them to the block.
Map
.Map
.
ResourceFinder
that provides access
to resource stored as byte arrays in a Map
.text
against the pattern represented by the current instance,
as follows:
A *
in the pattern matches any sequence of zero or more characters in the
text
A ?
in the pattern matches exactly one character in the text
Any other character in the pattern must appear exactly as it is in the text
Notice: The mode
flag of the current instance does not take any effect here.
text
against an array of StringPattern
s (which was
typically created by StringPattern.parseCombinedPattern(String)
.
Iterator
that iterates over a delegate, which produces
arrays, Collection
s, Enumeration
s or
Iterator
s.Iterator
that traverses a Collection
of
Iterator
s.Collection
, prepended with the given Object
.
Collection
, appended with the given Object
.
Iterator
, prepended with the given prefix
.
Iterator
, appended with the given suffix
.
FilterReader
, but when the first delegate is at end-of-input, it continues
with reading from the next delegate.ResourceFinder
that finds its resources through a collection of
other ResourceFinder
s.CodeContext.Inserter
, set it to the current offset, and
insert it before the current offset.
FilterListIterator.delegate
.ListIterator.next()
FilterListIterator.delegate
.ListIterator.previous()
FilterListIterator.delegate
.ListIterator.nextIndex()
UnsupportedOperationException
.
IExpressionEvaluator
, an IScriptEvaluator
, an
IClassBodyEvaluator
and an ISimpleCompiler
.Iterator
-related helper classes.ResourceFinder
) and
creating resources
(ResourceCreator
).StringPattern
s.
Reader
.
ResourceFinder
that finds its resources along a "path"
consisting of JAR file names, ZIP file names, and directory names.CodeContext.Inserter
with the remembered one (see
CodeContext.pushInserter(CodeContext.Inserter)
).
FilterListIterator.delegate
.ListIterator.previous()
FilterListIterator.delegate
.ListIterator.next()
FilterListIterator.delegate
.ListIterator.previousIndex()
UnsupportedOperationException
.
Object
each time the
Producer.produce()
method is invoked.Iterator
that iterates over all the objects produced by a delegate
Producer
.CodeContext.Inserter
, then replace it with the
new one.
FilterReader.read()
.
FilterReader.read(char[], int, int)
.
Reader
into a String
.
Enumeration
s don't support element removal, this method always throws
an UnsupportedOperationException
.
FilterListIterator.delegate
.ListIterator.remove()
title
, a colon, a space, and the pretty-printed
Object
.
Resource
is "something" that is typically found by a
ResourceFinder
, can be Resource.open()
ed for
reading, and optionally has a Resource.lastModified()
property.ClassLoader
that uses a ResourceFinder
to find ".class" files.IClassLoader
loads IClasses through a
a ResourceFinder
that designates
ClassFile
s.ListIterator
that reverses the direction of all operations
of a delegate ListIterator
.String
objects.InputStream
in the platform default encoding.
InputStream
with the given optionalEncoding
(null
means platform default encoding).
Reader
.
Scanner
that counts lines and columns from non-default initial
values.
value
parameter determines the type of the literal
token:
Type/value returned by Scanner.LiteralToken.getLiteralValue()
Literal
String
STRING literal
Character
CHAR literal
Integer
INT literal
Long
LONG literal
Float
FLOAT literal
Double
DOUBLE literal
Boolean
BOOLEAN literal
null
NULL literal
ScriptEvaluator
class.ScriptEvaluator
object, proceed as described for IScriptEvaluator
.FilterListIterator.delegate
.ListIterator.set(java.lang.Object)
UnitCompiler.ErrorHandler
.
CompileException
s are thrown on compile errors, but an application my install its own
(thread-local) UnitCompiler.ErrorHandler
.
JavaSourceClassLoader.setDebuggingInfo(boolean, boolean,
boolean)
.
Java.Rvalue
objects.
Java.Type
objects.
IScriptEvaluator.setMethodName(String)
, but for multiple scripts.
IScriptEvaluator.setParameters(String[], Class[])
, but for multiple scripts.
SimpleCompiler.setParentClassLoader(ClassLoader)
), plus the extra
auxiliaryClasses
.
IScriptEvaluator.setReturnType(Class)
, but for multiple scripts.
IScriptEvaluator.setStaticMethod(boolean)
, but for multiple scripts.
IScriptEvaluator.setThrownExceptions(Class[])
, but for multiple scripts.
SimpleCompiler.classLoader
and SimpleCompiler.iClassLoader
from the configured
SimpleCompiler.parentClassLoader
and SimpleCompiler.optionalAuxiliaryClasses
.
WarningHandler
.
WarningHandler
.
WarningHandler
.
ExpressionEvaluator
class.SimpleCompiler
object, proceed as described for ISimpleCompiler
.DataOutputStream
, in the format
defined by the JVM specification.
ClassFile
to an OutputStream
, in "class file" format.
ClassFile
in the file system.
FilterReader
that copies the bytes being passed through
to a given Writer
.CompileException
with the given message and this
object's location.
ClassFile
as a byte array.
Class.getName()
.
Location
into an english text, like
name
passed to Enumerator.Enumerator(String)
.
Iterator
that transforms its elements on-the-fly.Iterator
that returns all matching
File
s locatable in a set of root directories.
Iterator
that iterates over a delegate, and while
it encounters an array, a Collection
, an
Enumeration
or a Iterator
element, it iterates
into it recursively.UnicodeUnescapeReader
.FilterReader
that unescapes the "Unicode Escapes"
as described in
the
Java Language Specification, 2nd edition.UnitCompiler.setCompileErrorHandler(org.codehaus.janino.UnitCompiler.ErrorHandler)
.IClass.IField
that implements a
non-constant, non-static, package-accessible field.MultiDimensionalIterator
to
indicate that it has encountered an element that cannot be iterated.Java.CompilationUnit
to the given Writer
.
Writer
.Iterator
over a left-to-right sequence of Java.Rvalue
s.
UnitCompiler.setWarningHandler(WarningHandler)
.ResourceFinder
that finds resources in a ZIP file.
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |