Uses of Class
org.codehaus.commons.nullanalysis.Nullable
-
Packages that use Nullable Package Description org.codehaus.commons.compiler This package declares interfaces for the implementation of anIExpressionEvaluator
, anIScriptEvaluator
, anIClassBodyEvaluator
and anISimpleCompiler
.org.codehaus.commons.compiler.jdk An implementation of theorg.codehaus.commons.compiler
API that uses the "JAVAC" Java compiler that is part of the "Java Development Kit" (JDK).org.codehaus.commons.compiler.jdk.util org.codehaus.commons.compiler.lang org.codehaus.commons.compiler.util Utility functionality for this project.org.codehaus.commons.compiler.util.iterator org.codehaus.commons.compiler.util.reflect Utility functionality related tojava.util.reflect
.org.codehaus.commons.compiler.util.resource Classes related to loading "resources" (ResourceFinder
) and creating resources (ResourceCreator
).org.codehaus.janino The core of the Janino Java compiler.org.codehaus.janino.util Application-independent helper classes.org.codehaus.janino.util.signature Application-independent helper classes. -
-
Uses of Nullable in org.codehaus.commons.compiler
Fields in org.codehaus.commons.compiler with annotations of type Nullable Modifier and Type Field Description protected java.io.File[]
AbstractCompiler. bootClassPath
This is always non-null
for JVMs that support BOOTCLASSPATH (1.0-1.8), and this is alwaysnull
for JVMs that don't (9+).protected ErrorHandler
AbstractCompiler. compileErrorHandler
Stores the value configured withAbstractCompiler.setCompileErrorHandler(ErrorHandler)
.private static ICompilerFactory
CompilerFactoryFactory. defaultCompilerFactory
private java.lang.String
Location. fileName
private Location
LocatedException. location
static java.io.File
ICompiler. NO_DESTINATION_DIRECTORY
Special value forICompiler.setDestinationDirectory(File, boolean)
's first parameter: Indicates that .class files are to be created in the directory of the .java file from which they are generated.protected AbstractJavaSourceClassLoader.ProtectionDomainFactory
AbstractJavaSourceClassLoader. protectionDomainFactory
protected WarningHandler
AbstractCompiler. warningHandler
Stores the value configured withAbstractCompiler.setWarningHandler(WarningHandler)
.Methods in org.codehaus.commons.compiler with annotations of type Nullable Modifier and Type Method Description java.lang.Object
IExpressionEvaluator. evaluate()
Shorthand forevaluate
(new Object[0])
.java.lang.Object
IExpressionEvaluator. evaluate(int idx, java.lang.Object[] arguments)
Same asIExpressionEvaluator.evaluate(Object[])
, but for multiple expressions.java.lang.Object
IExpressionEvaluator. evaluate(java.lang.Object[] arguments)
Evaluates the expression with concrete parameter values.java.lang.Object
IScriptEvaluator. evaluate()
Shorthand forevaluate
(new Object[0])
.java.lang.Object
IScriptEvaluator. evaluate(int idx, java.lang.Object[] arguments)
Same asIScriptEvaluator.evaluate(Object[])
, but for multiple scripts.java.lang.Object
IScriptEvaluator. evaluate(java.lang.Object[] arguments)
Calls the script with concrete parameter values.java.lang.String
Location. getFileName()
Location
LocatedException. getLocation()
Method parameters in org.codehaus.commons.compiler with annotations of type Nullable Modifier and Type Method Description void
Cookable. cook(java.io.InputStream is, java.lang.String encoding)
void
Cookable. cook(java.lang.String fileName, java.io.InputStream is)
void
Cookable. cook(java.lang.String fileName, java.io.InputStream is, java.lang.String encoding)
void
Cookable. cook(java.lang.String fileName, java.io.InputStream is, java.lang.String encoding)
abstract void
Cookable. cook(java.lang.String fileName, java.io.Reader reader)
void
Cookable. cook(java.lang.String fileName, java.lang.String s)
void
ICookable. cook(java.io.InputStream is, java.lang.String encoding)
Reads, scans, parses and compiles Java tokens from the givenInputStream
with the givenencoding
.void
ICookable. cook(java.lang.String fileName, java.io.InputStream is)
Reads, scans, parses and compiles Java tokens from the givenInputStream
, encoded in the "platform default encoding".void
ICookable. cook(java.lang.String fileName, java.io.InputStream is, java.lang.String encoding)
Reads, scans, parses and compiles Java tokens from the givenInputStream
with the givenencoding
.void
ICookable. cook(java.lang.String fileName, java.io.InputStream is, java.lang.String encoding)
Reads, scans, parses and compiles Java tokens from the givenInputStream
with the givenencoding
.void
ICookable. cook(java.lang.String fileName, java.io.Reader r)
Reads, scans, parses and compiles Java tokens from the givenReader
.void
ICookable. cook(java.lang.String fileName, java.lang.String s)
Reads, scans, parses and compiles Java tokens from the givenString
.void
Cookable. cookFile(java.io.File file, java.lang.String encoding)
void
Cookable. cookFile(java.lang.String fileName, java.lang.String encoding)
void
ICookable. cookFile(java.io.File file, java.lang.String encoding)
Reads, scans, parses and compiles Java tokens from the givenFile
with the givenencoding
.void
ICookable. cookFile(java.lang.String fileName, java.lang.String encoding)
Reads, scans, parses and compiles Java tokens from the named file with the given encoding.java.lang.Object
IExpressionEvaluator. evaluate(int idx, java.lang.Object[] arguments)
Same asIExpressionEvaluator.evaluate(Object[])
, but for multiple expressions.java.lang.Object
IExpressionEvaluator. evaluate(java.lang.Object[] arguments)
Evaluates the expression with concrete parameter values.java.lang.Object
IScriptEvaluator. evaluate(int idx, java.lang.Object[] arguments)
Same asIScriptEvaluator.evaluate(Object[])
, but for multiple scripts.java.lang.Object
IScriptEvaluator. evaluate(java.lang.Object[] arguments)
Calls the script with concrete parameter values.void
ErrorHandler. handleError(java.lang.String message, Location location)
May or may not choose to throw aCompileException
.void
WarningHandler. handleWarning(java.lang.String handle, java.lang.String message, Location location)
May or may not choose to throw aCompileException
.void
WarningHandler. handleWarning(java.lang.String handle, java.lang.String message, Location location)
May or may not choose to throw aCompileException
.void
AbstractCompiler. setCharacterEncoding(java.lang.String characterEncoding)
void
ICompiler. setCharacterEncoding(java.lang.String characterEncoding)
Deprecated.UseICompiler.setSourceCharset(Charset)
insteadvoid
AbstractCompiler. setCompileErrorHandler(ErrorHandler compileErrorHandler)
void
IClassBodyEvaluator. setCompileErrorHandler(ErrorHandler compileErrorHandler)
Installs anErrorHandler
which is invoked during compilation on each error.void
ICompiler. setCompileErrorHandler(ErrorHandler errorHandler)
Installs anErrorHandler
which is invoked during compilation on each error.void
IExpressionEvaluator. setCompileErrorHandler(ErrorHandler compileErrorHandler)
Installs anErrorHandler
which is invoked during compilation on each error.void
IScriptEvaluator. setCompileErrorHandler(ErrorHandler compileErrorHandler)
Installs anErrorHandler
which is invoked during compilation on each error.void
ISimpleCompiler. setCompileErrorHandler(ErrorHandler compileErrorHandler)
Installs anErrorHandler
which is invoked during compilation on each error.void
AbstractCompiler. setDestinationDirectory(java.io.File destinationDirectory, boolean rebuild)
void
ICompiler. setDestinationDirectory(java.io.File destinationDirectory, boolean rebuild)
Equivalent of -d and-rebuild
.void
IClassBodyEvaluator. setExtendedClass(java.lang.Class<?> extendedClass)
Sets a particular superclass that the generated class will extend.void
IClassBodyEvaluator. setExtendedType(java.lang.Class<?> extendedClass)
Deprecated.UseIClassBodyEvaluator.setExtendedClass(Class)
insteadvoid
IScriptEvaluator. setMethodName(java.lang.String methodName)
Defines the name of the generated method.void
IClassBodyEvaluator. setParentClassLoader(java.lang.ClassLoader parentClassLoader)
The "parent class loader" is used to load referenced classes.void
IExpressionEvaluator. setParentClassLoader(java.lang.ClassLoader parentClassLoader)
The "parent class loader" is used to load referenced classes.void
IScriptEvaluator. setParentClassLoader(java.lang.ClassLoader parentClassLoader)
The "parent class loader" is used to load referenced classes.void
ISimpleCompiler. setParentClassLoader(java.lang.ClassLoader parentClassLoader)
The "parent class loader" is used to load referenced classes.void
AbstractJavaSourceClassLoader. setProtectionDomainFactory(AbstractJavaSourceClassLoader.ProtectionDomainFactory protectionDomainFactory)
void
AbstractJavaSourceClassLoader. setSourceFileCharacterEncoding(java.lang.String charsetName)
void
AbstractCompiler. setWarningHandler(WarningHandler warningHandler)
void
IClassBodyEvaluator. setWarningHandler(WarningHandler warningHandler)
By default, warnings are discarded, but an application my install a customWarningHandler
.void
IExpressionEvaluator. setWarningHandler(WarningHandler warningHandler)
By default, warnings are discarded, but an application my install a customWarningHandler
.void
IScriptEvaluator. setWarningHandler(WarningHandler warningHandler)
By default, warnings are discarded, but an application my install a customWarningHandler
.void
ISimpleCompiler. setWarningHandler(WarningHandler warningHandler)
By default, warnings are discarded, but an application my install a customWarningHandler
which is invoked for each warning.Constructor parameters in org.codehaus.commons.compiler with annotations of type Nullable Constructor Description CompileException(java.lang.String message, Location location)
An infix"NYI"
in the message string indicates that the compiler has a known limitation here.CompileException(java.lang.String message, Location location, java.lang.Throwable cause)
An infix"NYI"
in the message string indicates that the compiler has a known limitation here.InternalCompilerException(java.lang.String message)
InternalCompilerException(java.lang.String message, java.lang.Throwable t)
InternalCompilerException(Location location, java.lang.String message)
InternalCompilerException(Location location, java.lang.String message)
InternalCompilerException(Location location, java.lang.String message, java.lang.Throwable t)
InternalCompilerException(Location location, java.lang.String message, java.lang.Throwable t)
LocatedException(java.lang.String message, Location location)
LocatedException(java.lang.String message, Location location, java.lang.Throwable cause)
LocatedException(java.lang.String message, Location location, java.lang.Throwable cause)
Location(java.lang.String fileName, int lineNumber, int columnNumber)
-
Uses of Nullable in org.codehaus.commons.compiler.jdk
Fields in org.codehaus.commons.compiler.jdk with annotations of type Nullable Modifier and Type Field Description private java.util.Map<java.lang.String,byte[]>
SimpleCompiler. bytecodes
Isnull
iff thisSimpleCompiler
is not yet cooked.private java.lang.Class<?>
ClassBodyEvaluator. extendedType
private javax.tools.JavaFileManager
JavaSourceClassLoader. fileManager
private java.lang.ClassLoader
SimpleCompiler. getClassLoaderCache
private java.lang.String
ScriptEvaluator.Script. methodName
The name of the generated method.private java.lang.Class<?>
ClassBodyEvaluator. result
private java.lang.reflect.Method[]
ScriptEvaluator. result
null=uncookedprivate java.lang.Class<?>
ScriptEvaluator.Script. returnType
The generated method's return type.private ScriptEvaluator.Script[]
ScriptEvaluator. scripts
The scripts to compile.Methods in org.codehaus.commons.compiler.jdk with annotations of type Nullable Modifier and Type Method Description java.lang.Object
ExpressionEvaluator. evaluate()
java.lang.Object
ExpressionEvaluator. evaluate(int idx, java.lang.Object[] arguments)
java.lang.Object
ExpressionEvaluator. evaluate(java.lang.Object[] arguments)
java.lang.Object
ScriptEvaluator. evaluate()
java.lang.Object
ScriptEvaluator. evaluate(int idx, java.lang.Object[] arguments)
java.lang.Object
ScriptEvaluator. evaluate(java.lang.Object[] arguments)
Method parameters in org.codehaus.commons.compiler.jdk with annotations of type Nullable Modifier and Type Method Description protected void
SimpleCompiler. addOffset(java.lang.String fileName)
Derived classes call this method to "reset" the current line and column number at the currently read input character, and also changes the "file name" (seeSimpleCompiler.cook(String, Reader)
).(package private) static void
Compiler. compile(javax.tools.JavaCompiler compiler, java.util.List<java.lang.String> options, java.util.Collection<javax.tools.JavaFileObject> sourceFileObjects, javax.tools.JavaFileManager fileManager, ErrorHandler compileErrorHandler, WarningHandler warningHandler, java.util.SortedSet<Location> offsets)
Compiles on theJavaFileManager
/JavaFileObject
level.(package private) static void
Compiler. compile(javax.tools.JavaCompiler compiler, java.util.List<java.lang.String> options, java.util.Collection<javax.tools.JavaFileObject> sourceFileObjects, javax.tools.JavaFileManager fileManager, ErrorHandler compileErrorHandler, WarningHandler warningHandler, java.util.SortedSet<Location> offsets)
Compiles on theJavaFileManager
/JavaFileObject
level.(package private) static void
Compiler. compile(javax.tools.JavaCompiler compiler, java.util.List<java.lang.String> options, java.util.Collection<javax.tools.JavaFileObject> sourceFileObjects, javax.tools.JavaFileManager fileManager, ErrorHandler compileErrorHandler, WarningHandler warningHandler, java.util.SortedSet<Location> offsets)
Compiles on theJavaFileManager
/JavaFileObject
level.(package private) static void
Compiler. compile(javax.tools.JavaCompiler compiler, java.util.List<java.lang.String> options, ResourceFinder sourceFinder, java.nio.charset.Charset sourceFileCharset, ResourceFinder classFileFinder, ResourceCreator classFileCreator, Resource[] sourceFiles, ErrorHandler compileErrorHandler, WarningHandler warningHandler, java.util.SortedSet<Location> offsets)
(package private) static void
Compiler. compile(javax.tools.JavaCompiler compiler, java.util.List<java.lang.String> options, ResourceFinder sourceFinder, java.nio.charset.Charset sourceFileCharset, ResourceFinder classFileFinder, ResourceCreator classFileCreator, Resource[] sourceFiles, ErrorHandler compileErrorHandler, WarningHandler warningHandler, java.util.SortedSet<Location> offsets)
(package private) static void
Compiler. compile(javax.tools.JavaCompiler compiler, java.util.List<java.lang.String> options, ResourceFinder sourceFinder, java.nio.charset.Charset sourceFileCharset, ResourceFinder classFileFinder, ResourceCreator classFileCreator, Resource[] sourceFiles, ErrorHandler compileErrorHandler, WarningHandler warningHandler, java.util.SortedSet<Location> offsets)
void
Compiler. compile(Resource[] sourceResources, java.util.SortedSet<Location> offsets)
void
ClassBodyEvaluator. cook(java.lang.String fileName, java.io.Reader r)
protected void
ClassBodyEvaluator. cook(java.lang.String fileName, java.lang.String[] imports, java.io.Reader r)
void
ExpressionEvaluator. cook(java.lang.String fileName, java.io.Reader reader)
void
ScriptEvaluator. cook(java.lang.String fileName, java.io.Reader reader)
void
SimpleCompiler. cook(java.lang.String fileName, java.io.Reader r)
java.lang.Object
ExpressionEvaluator. evaluate(int idx, java.lang.Object[] arguments)
java.lang.Object
ExpressionEvaluator. evaluate(java.lang.Object[] arguments)
java.lang.Object
ScriptEvaluator. evaluate(int idx, java.lang.Object[] arguments)
java.lang.Object
ScriptEvaluator. evaluate(java.lang.Object[] arguments)
protected java.io.Reader
ClassBodyEvaluator. newFileName(java.lang.String fileName, java.io.Reader reader)
Sets the given file name, and the current line number to 1, and the current column number to 1, when the firstchar
is read from the reader.void
ClassBodyEvaluator. setCompileErrorHandler(ErrorHandler compileErrorHandler)
void
ExpressionEvaluator. setCompileErrorHandler(ErrorHandler compileErrorHandler)
void
ScriptEvaluator. setCompileErrorHandler(ErrorHandler compileErrorHandler)
void
SimpleCompiler. setCompileErrorHandler(ErrorHandler compileErrorHandler)
void
ClassBodyEvaluator. setExtendedClass(java.lang.Class<?> extendedType)
void
ExpressionEvaluator. setExtendedClass(java.lang.Class<?> extendedType)
void
ScriptEvaluator. setExtendedClass(java.lang.Class<?> extendedClass)
void
ClassBodyEvaluator. setExtendedType(java.lang.Class<?> extendedClass)
Deprecated.UseClassBodyEvaluator.setExtendedClass(Class)
insteadvoid
ScriptEvaluator. setMethodName(java.lang.String methodName)
void
ClassBodyEvaluator. setParentClassLoader(java.lang.ClassLoader parentClassLoader)
void
ExpressionEvaluator. setParentClassLoader(java.lang.ClassLoader parentClassLoader)
void
ScriptEvaluator. setParentClassLoader(java.lang.ClassLoader parentClassLoader)
void
SimpleCompiler. setParentClassLoader(java.lang.ClassLoader parentClassLoader)
void
SimpleCompiler. setParentClassLoader(java.lang.ClassLoader parentClassLoader, java.lang.Class<?>[] auxiliaryClasses)
Deprecated.Auxiliary classes never really worked...void
ClassBodyEvaluator. setWarningHandler(WarningHandler warningHandler)
void
ExpressionEvaluator. setWarningHandler(WarningHandler warningHandler)
void
ScriptEvaluator. setWarningHandler(WarningHandler warningHandler)
void
SimpleCompiler. setWarningHandler(WarningHandler warningHandler)
Constructor parameters in org.codehaus.commons.compiler.jdk with annotations of type Nullable Constructor Description ExpressionEvaluator(java.lang.String expression, java.lang.Class<?> expressionType, java.lang.String[] parameterNames, java.lang.Class<?>[] parameterTypes, java.lang.Class<?>[] thrownExceptions, java.lang.Class<?> extendedType, java.lang.Class<?>[] implementedTypes, java.lang.ClassLoader parentClassLoader)
Equivalent toExpressionEvaluator(java.lang.String expression, java.lang.Class<?> expressionType, java.lang.String[] parameterNames, java.lang.Class<?>[] parameterTypes, java.lang.Class<?>[] thrownExceptions, java.lang.Class<?> extendedType, java.lang.Class<?>[] implementedTypes, java.lang.ClassLoader parentClassLoader)
Equivalent toExpressionEvaluator(java.lang.String expression, java.lang.Class<?> expressionType, java.lang.String[] parameterNames, java.lang.Class<?>[] parameterTypes, java.lang.Class<?>[] thrownExceptions, java.lang.ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(java.lang.String fileName, java.io.InputStream is, java.lang.Class<?> returnType, java.lang.String[] parameterNames, java.lang.Class<?>[] parameterTypes, java.lang.Class<?>[] thrownExceptions, java.lang.ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(java.lang.String fileName, java.io.InputStream is, java.lang.Class<?> returnType, java.lang.String[] parameterNames, java.lang.Class<?>[] parameterTypes, java.lang.Class<?>[] thrownExceptions, java.lang.ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(java.lang.String fileName, java.io.Reader reader, java.lang.Class<?> returnType, java.lang.String[] parameterNames, java.lang.Class<?>[] parameterTypes, java.lang.Class<?>[] thrownExceptions, java.lang.ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(java.lang.String fileName, java.io.Reader reader, java.lang.Class<?> returnType, java.lang.String[] parameterNames, java.lang.Class<?>[] parameterTypes, java.lang.Class<?>[] thrownExceptions, java.lang.ClassLoader parentClassLoader)
Equivalent to -
Uses of Nullable in org.codehaus.commons.compiler.jdk.util
Method parameters in org.codehaus.commons.compiler.jdk.util with annotations of type Nullable Modifier and Type Method Description boolean
JavaFileObjects.ResourceJavaFileObject. isNameCompatible(java.lang.String simpleName, javax.tools.JavaFileObject.Kind kind)
boolean
JavaFileObjects.ResourceJavaFileObject. isNameCompatible(java.lang.String simpleName, javax.tools.JavaFileObject.Kind kind)
-
Uses of Nullable in org.codehaus.commons.compiler.lang
Method parameters in org.codehaus.commons.compiler.lang with annotations of type Nullable Modifier and Type Method Description static java.lang.ClassLoader
ClassLoaders. getsResourceAsStream(ResourceFinder finder, java.lang.ClassLoader parent)
Creates and returns aClassLoader
that implementsClassLoader.getResourceAsStream(String)
via aResourceFinder
.static java.util.Map<java.lang.String,java.net.URL>
ClassLoaders. getSubresources(java.lang.ClassLoader classLoader, java.lang.String name, boolean includeDirectories, boolean recurse)
Returns a name-to-URL mapping of all resources "under" a given directory name. -
Uses of Nullable in org.codehaus.commons.compiler.util
Fields in org.codehaus.commons.compiler.util with annotations of type Nullable Modifier and Type Field Description private static java.lang.Object
Disassembler. disassemblerInstance
private java.lang.String
StringPattern. pattern
Methods in org.codehaus.commons.compiler.util with annotations of type Nullable Modifier and Type Method Description static java.lang.String
SystemProperties. getClassProperty(java.lang.Class<?> targetClass, java.lang.String classPropertyName)
static java.lang.String
SystemProperties. getClassProperty(java.lang.Class<?> targetClass, java.lang.String classPropertyName, java.lang.String defaultValue)
Gets the value of a "class property".static java.io.File[]
StringUtil. parseOptionalPath(java.lang.String s)
T
Producer. produce()
Produces the next object.Method parameters in org.codehaus.commons.compiler.util with annotations of type Nullable Modifier and Type Method Description boolean
Predicate. evaluate(T subject)
protected java.lang.Class<?>
ResourceFinderClassLoader. findClass(java.lang.String className)
static java.lang.String
SystemProperties. getClassProperty(java.lang.Class<?> targetClass, java.lang.String classPropertyName, java.lang.String defaultValue)
Gets the value of a "class property".static java.io.File[]
StringUtil. parseOptionalPath(java.lang.String s)
static int
Numbers. parseUnsignedInt(java.lang.String s, int radix)
Counterpart ofInteger.parseInt(String, int)
for parsing unsigned integers.static long
Numbers. parseUnsignedLong(java.lang.String s, int radix)
Counterpart ofLong.parseLong(String, int)
for parsing unsigned integers.void
Benchmark. report(java.lang.String title, java.lang.Object o)
Reports thetitle
, a colon, a space, and the pretty-printedObject
.void
Benchmark. report(java.lang.String title, java.lang.Object o)
Reports thetitle
, a colon, a space, and the pretty-printedObject
.private static boolean
StringPattern. wildmatch(java.lang.String pattern, java.lang.String text)
Constructor parameters in org.codehaus.commons.compiler.util with annotations of type Nullable Constructor Description StringPattern(java.lang.String pattern)
-
Uses of Nullable in org.codehaus.commons.compiler.util.iterator
Fields in org.codehaus.commons.compiler.util.iterator with annotations of type Nullable Modifier and Type Field Description private static java.lang.Object
ProducerIterator. AT_END
private java.lang.Object
ProducerIterator. nextElement
private java.lang.Object
TraversingIterator. nextElement
Method parameters in org.codehaus.commons.compiler.util.iterator with annotations of type Nullable Modifier and Type Method Description void
FilterListIterator. add(T o)
CallsFilterListIterator.delegate
.ListIterator.add(java.lang.Object)
void
FilterListIterator. set(T o)
CallsFilterListIterator.delegate
.ListIterator.set(java.lang.Object)
-
Uses of Nullable in org.codehaus.commons.compiler.util.reflect
Method parameters in org.codehaus.commons.compiler.util.reflect with annotations of type Nullable Modifier and Type Method Description protected java.lang.Class<?>
ByteArrayClassLoader. findClass(java.lang.String name)
ImplementsClassLoader.findClass(String)
.static <R,EX extends java.lang.Throwable>
RMethods. invoke(java.lang.reflect.Method method, java.lang.Object obj, java.lang.Object... args)
A wrapper formethod.invoke(obj, args)
that catches any exception, wraps it in anAssertionError
, and throws that. -
Uses of Nullable in org.codehaus.commons.compiler.util.resource
Methods in org.codehaus.commons.compiler.util.resource with annotations of type Nullable Modifier and Type Method Description Resource
MapResourceFinder. addResource(java.lang.String fileName, byte[] data)
Adds anotherResource
, so that it can later be found withMapResourceFinder.findResource(String)
,ResourceFinder.findResourceAsStream(String)
andMapResourceFinder.resources()
.Resource
MapResourceFinder. addResource(java.lang.String fileName, java.lang.String data)
Resource
FileResourceFinder. findResource(java.lang.String resourceName)
Resource
MapResourceFinder. findResource(java.lang.String resourceName)
Resource
MultiResourceFinder. findResource(java.lang.String resourceName)
abstract Resource
ResourceFinder. findResource(java.lang.String resourceName)
Finds a resource by name and return it as aResource
object.Resource
ZipFileResourceFinder. findResource(java.lang.String resourceName)
protected java.io.File
DirectoryResourceFinder. findResourceAsFile(java.lang.String resourceName)
protected abstract java.io.File
FileResourceFinder. findResourceAsFile(java.lang.String resourceName)
Converts a given resource resource name into aFile
.java.io.InputStream
ResourceFinder. findResourceAsStream(java.lang.String resourceName)
Finds a resource by name and open it for reading.java.lang.Iterable<Resource>
DirectoryResourceFinder. list(java.lang.String resourceNamePrefix, boolean recurse)
abstract java.lang.Iterable<Resource>
ListableResourceFinder. list(java.lang.String resourceNamePrefix, boolean recurse)
Returns all resources who's names start with a given string.java.lang.Iterable<Resource>
MapResourceFinder. list(java.lang.String resourceNamePrefix, boolean recurse)
java.lang.Iterable<Resource>
MultiResourceFinder. list(java.lang.String resourceNamePrefix, boolean recurse)
private java.util.Set<java.io.File>
DirectoryResourceFinder. listFiles(java.lang.String subdirectoryName)
Method parameters in org.codehaus.commons.compiler.util.resource with annotations of type Nullable Modifier and Type Method Description private java.util.Set<java.io.File>
DirectoryResourceFinder. listFiles(java.lang.String subdirectoryName)
-
Uses of Nullable in org.codehaus.janino
Fields in org.codehaus.janino with annotations of type Nullable Modifier and Type Field Description Java.Rvalue[]
Java.EnumConstant. arguments
The optional arguments that appear after the enum constant name iff the enum declares constructors with one or more parameters.IClass
Java.NewInitializedArray. arrayIClass
The resolvedJava.NewInitializedArray.arrayType
.Java.ArrayType
Java.NewInitializedArray. arrayType
The array type to be instantiated.Java.ReferenceType[]
Java.TypeParameter. bound
The optional bound of the type parameter.private ResourceFinder
Compiler.CompilerIClassLoader. classFileFinder
private java.util.Collection<ClassFile>
SimpleCompiler. classFiles
Null
before cooking, non-null
after cooking.private ClassLoaderIClassLoader
SimpleCompiler. classLoaderIClassLoader
private SignatureParser.ClassSignature
ClassFileIClass. classSignature
private CodeContext
UnitCompiler. codeContext
private ErrorHandler
JavaSourceIClassLoader. compileErrorHandler
private ErrorHandler
SimpleCompiler. compileErrorHandler
private ErrorHandler
UnitCompiler. compileErrorHandler
private IClass
IClass. componentTypeCache
Java.Rvalue
Java.ForStatement. condition
The optional "condition" part of the "basic FOR statement".(package private) java.lang.Object
Java.Rvalue. constantValue
The constant value of this rvalue, orJava.Rvalue.CONSTANT_VALUE_UNKNOWN
iff the constant value of this rvalue has not yet been determined.Java.ConstructorInvocation
Java.ConstructorDeclarator. constructorInvocation
TheJava.AlternateConstructorInvocation
orJava.SuperConstructorInvocation
, if any.private CodeContext.LocalScope
CodeContext. currentLocalScope
Each List of Java.LocalVariableSlot is the local variables allocated for a block.private IClass[]
IClass. declaredIClassesCache
private IClass.IConstructor[]
IClass. declaredIConstructorsCache
private java.util.Map<java.lang.String,IClass.IField>
IClass. declaredIFieldsCache
private java.util.Map<java.lang.String,java.lang.Object>
IClass. declaredIMethodCache
private IClass.IMethod[]
IClass. declaredIMethodsCache
(package private) Java.AbstractClassDeclaration
Java.QualifiedThisReference. declaringClass
The innermost enclosing class declaration.private IClass
IClass. declaringIClassCache
private Java.TypeDeclaration
Java.AbstractTypeBodyDeclaration. declaringType
(package private) Java.TypeBodyDeclaration
Java.QualifiedThisReference. declaringTypeBodyDeclaration
The innermost "type body declaration" enclosing this "qualified this reference", i.e.Java.ElementValue
Java.MethodDeclarator. defaultValue
The optional "default value" of the declared method (only methods of annotation types can have a default value).private java.lang.String
IClass. descriptorCache
private MethodDescriptor
IClass.IInvocable. descriptorCache
java.lang.String
Java.EnumConstant. docComment
The optional "doc comment" that appeared in the compilation unit immediately before this enum constant declaration.private java.lang.String
Java.FieldDeclaration. docComment
private java.lang.String
Java.FunctionDeclarator. docComment
private java.lang.String
Java.InterfaceDeclaration. docComment
private java.lang.String
Java.NamedClassDeclaration. docComment
private java.lang.String
Parser. docComment
The optional JAVADOC comment preceding the#nextToken
.private java.lang.String
TokenStreamImpl. docComment
The optional JAVADOC comment preceding theTokenStreamImpl.nextToken
.Java.BlockStatement
Java.IfStatement. elseStatement
The optional ELSE statement, which is executed iff the condition evaluates to FALSE.private Java.Scope
Java.AbstractTypeDeclaration. enclosingScope
private Java.Scope
Java.ConstructorInvocation. enclosingScope
private Java.Scope
Java.Rvalue. enclosingScope
private Java.Scope
Java.Statement. enclosingScope
private Java.Scope
Java.Type. enclosingScope
private Java.TryStatement
Java.CatchClause. enclosingTryStatement
Link to the enclosing TRY statement.private CodeContext.Offset
Java.LocalVariableSlot. end
Java.Rvalue
Java.AssertStatement. expression2
The optional right-hand-side expression of this ASSERT statement.private java.lang.Class<?>
ClassBodyEvaluator. extendedType
Java.Type
Java.NamedClassDeclaration. extendedType
The type of the extended class.java.lang.String
Java.AbstractCompilationUnit. fileName
A string that explains the "file" (or similar resource) where this compilation unit was loaded from.private java.lang.String
Scanner. fileName
private java.lang.String
Token. fileName
Java.Block
Java.TryStatement. finallY
The optional "finally" block of the TRY statement.private java.util.Map<java.lang.String,byte[]>
SimpleCompiler. getBytecodesCache
private java.lang.ClassLoader
SimpleCompiler. getClassLoaderCache
private java.lang.reflect.Method[]
ScriptEvaluator. getMethodsCache
private IClass.IAnnotation[]
IClass. iAnnotationsCache
(package private) IClass
Java.ThisReference. iClass
A cache for the type of the instance that "this" refers to.private IClassLoader
Compiler. iClassLoader
(package private) IClass.IConstructor
Java.ConstructorDeclarator. iConstructor
The resolvedIClass.IConstructor
.(package private) IClass.IMethod
Java.MethodDeclarator. iMethod
The resolvedIClass.IMethod
.(package private) IClass.IMethod
Java.MethodInvocation. iMethod
The resolvedIClass.IMethod
.private IClass.IMethod[]
IClass. iMethodCache
Java.BlockStatement
Java.ForStatement. init
The optional "init" part of the "basic FOR statement".Java.ArrayInitializerOrRvalue
Java.VariableDeclarator. initializer
The initializer for the variable, if any.(package private) IType[]
Java.InterfaceDeclaration. interfaces
Set during "compile()".private IClass[]
IClass. interfacesCache
IType
Java.NewClassInstance. iType
The resolvedJava.NewClassInstance.type
.private ITypeVariable[]
IClass. iTypeVariablesCache
java.lang.String
Java.BreakStatement. label
The optional label that this BREAK statement refers to.java.lang.String
Java.ContinueStatement. label
The optional label that this CONTINUE statement refers to.Java.LocalVariable
Java.CatchParameter. localVariable
The local variable associated with this parameter.Java.LocalVariable
Java.FunctionDeclarator.FormalParameter. localVariable
The local variable associated with this parameter.Java.LocalVariable
Java.VariableDeclarator. localVariable
Used only if the variable declarator declares a local variable.java.util.Map<java.lang.String,Java.LocalVariable>
Java.ConstructorInvocation. localVariables
The local variables that are accessible during the compilation of the constructor invocation.java.util.Map<java.lang.String,Java.LocalVariable>
Java.FunctionDeclarator. localVariables
Mapping of variable names toJava.LocalVariable
s.java.util.Map<java.lang.String,Java.LocalVariable>
Java.Statement. localVariables
The map of currently visible local variables.private Location
Token. location
IClass.IMethod
IClassLoader. METH_java_lang_Throwable__addSuppressed
private java.lang.String
Java.AnonymousClassDeclaration. myName
private java.lang.String
Java.LocalVariableSlot. name
(package private) CodeContext.Offset
CodeContext.Offset. next
Links to preceding and succeeding offsets.private Token
TokenStreamImpl. nextButOneToken
private CodeContext.Inserter
CodeContext.Inserter. nextInserter
private Token
TokenStreamImpl. nextToken
private IClass
IClass. outerIClassCache
Java.PackageDeclaration
Java.CompilationUnit. packageDeclaration
The package declaration at the very top of this compilation unit (if any).private IClass[]
IClass.IInvocable. parameterTypesCache
(package private) CodeContext.LocalScope
CodeContext.LocalScope. parent
(package private) CodeContext.Offset
CodeContext.Offset. prev
Links to preceding and succeeding offsets.private Token
TokenStreamImpl. previousToken
Java.Rvalue
Java.NewAnonymousClassInstance. qualification
The qualification iff this a "qualified anonymous class instance creation expression".Java.Rvalue
Java.NewClassInstance. qualification
The qualification of this "qualified class instance creation expression".Java.Type
Java.SuperclassFieldAccessExpression. qualification
The optional qualification before ".super.fld
".Java.Rvalue
Java.SuperConstructorInvocation. qualification
The qualification for this "qualified superclass constructor invocation", ornull
iff this is an "unqualified superclass constructor invocation".(package private) Java.Atom
Java.AmbiguousName. reclassified
The result of "ambiguous name resolution" during compilation.Java.ReferenceType
Java.Wildcard. referenceType
The reference type of this wildcard's EXTENDS or SUPER bounds.(package private) IClass
Java.AbstractTypeDeclaration. resolvedType
Holds the resolved type during compilation.private java.lang.Class<?>
ClassBodyEvaluator. result
(package private) IType
Java.FunctionDeclarator. returnType
Set by "compile()".protected java.lang.Class<?>
ScriptEvaluator.Script. returnType
The generated method's return type.Java.Rvalue
Java.ReturnStatement. returnValue
The optional rvalue that is returned.private ScriptEvaluator.Script[]
ScriptEvaluator. scripts
The scripts to compile.private java.util.Map<java.lang.String,java.lang.String[]>
UnitCompiler. singleTypeImports
To be used only byUnitCompiler.getSingleTypeImport(String, Location)
;null
means "not yet initialized"Java.LocalVariableSlot
Java.LocalVariable. slot
The slot reserved for this local variable.private StackMap
CodeContext.Offset. stackMap
private CodeContext.Offset
Java.LocalVariableSlot. start
java.util.List<? extends Java.BlockStatement>
Java.FunctionDeclarator. statements
The statements that comprise the function;null
for abstract method declarations.private UnitCompiler.ClassFileConsumer
UnitCompiler. storesClassFiles
Non-null
whileUnitCompiler.compileUnit(boolean, boolean, boolean, ClassFileConsumer)
is executing.private IClass
IClass. superclassCache
Java.Atom
Java.MethodInvocation. target
The optional type or rvalue that qualifies this method invocation.(package private) IType
Java.QualifiedThisReference. targetIType
The resolvedJava.QualifiedThisReference.qualification
.private IClass[]
IClass.IInvocable. thrownExceptionsCache
java.lang.String[][]
Java.ExportsModuleDirective. toModuleNames
The names of the modules for which the public and protected types in this package, and their public and protected members, are accessible.java.lang.String[][]
Java.OpensModuleDirective. toModuleNames
The names of the modules for which the public and protected types in this package, and their public and protected members, are accessible.private Java.Type
Java.AmbiguousName. type
private IType
Java.LocalVariableSlot. type
Java.Type
Java.NewClassInstance. type
The type to instantiate.Java.TypeArgument[]
Java.ClassInstanceCreationReference. typeArguments
The optional type arguments for theJava.ClassInstanceCreationReference.type
.Java.TypeArgument[]
Java.ReferenceType. typeArguments
The optional type arguments of the reference type.private Java.TypeParameter[]
Java.AbstractTypeDeclaration. typeParameters
Java.TypeParameter[]
Java.MethodDeclarator. typeParameters
The type parameters declared for the method.Java.Rvalue[]
Java.ForStatement. update
The optional "update" part of the "basic FOR statement".(package private) Java.Rvalue
Java.FieldAccessExpression. value
TheJava.ArrayLength
orJava.FieldAccess
resulting from this "field access expression".(package private) java.lang.Object
Java.SimpleConstant. value
The value represented by this constant; eithernull
(representing thenull
literal), aByte
,Short
,Integer
,Long
,Float
,Double
,Character
,Boolean
orString
.(package private) Java.Rvalue
Java.SuperclassFieldAccessExpression. value
TheJava.FieldAccess
that implements thisJava.FieldAccessExpression
.private WarningHandler
ClassBodyEvaluator. warningHandler
private WarningHandler
ExpressionEvaluator. warningHandler
private WarningHandler
JavaSourceIClassLoader. warningHandler
private WarningHandler
Parser. warningHandler
private WarningHandler
ScriptEvaluator. warningHandler
private WarningHandler
SimpleCompiler. warningHandler
private WarningHandler
TokenStreamImpl. warningHandler
private WarningHandler
UnitCompiler. warningHandler
(package private) CodeContext.Offset
Java.BreakableStatement. whereToBreak
This one's filled in by the first BREAK statement, and isCodeContext.Offset.set()
by this breakable statement.protected CodeContext.Offset
Java.ContinuableStatement. whereToContinue
This one's filled in by the first CONTINUE statement, and isCodeContext.Offset.set()
by this continuable statement.Methods in org.codehaus.janino with annotations of type Nullable Modifier and Type Method Description <R,EX extends java.lang.Throwable>
RJava.AbstractAnnotation. accept(Visitor.ElementValueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.AbstractAnnotation. accept(Visitor.ModifierVisitor<R,EX> visitor)
abstract <R,EX extends java.lang.Throwable>
RJava.AbstractCompilationUnit. accept(Visitor.AbstractCompilationUnitVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.AbstractCompilationUnitVisitor
for the concreteJava.AbstractCompilationUnit
type.abstract <R,EX extends java.lang.Throwable>
RJava.AbstractCompilationUnit.ImportDeclaration. accept(Visitor.ImportVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.ImportVisitor
for the concreteJava.AbstractCompilationUnit.ImportDeclaration
type.<R,EX extends java.lang.Throwable>
RJava.AbstractCompilationUnit.SingleStaticImportDeclaration. accept(Visitor.ImportVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.AbstractCompilationUnit.SingleTypeImportDeclaration. accept(Visitor.ImportVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.AbstractCompilationUnit.StaticImportOnDemandDeclaration. accept(Visitor.ImportVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.AbstractCompilationUnit.TypeImportOnDemandDeclaration. accept(Visitor.ImportVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.AccessModifier. accept(Visitor.ModifierVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.AlternateConstructorInvocation. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.AlternateConstructorInvocation. accept(Visitor.ConstructorInvocationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.AmbiguousName. accept(Visitor.LvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.Annotation. accept(Visitor.AnnotationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.AnonymousClassDeclaration. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ArrayAccessExpression. accept(Visitor.LvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ArrayCreationReference. accept(Visitor.RvalueVisitor<R,EX> rvv)
<R,EX extends java.lang.Throwable>
RJava.ArrayInitializer. accept(Visitor.ArrayInitializerOrRvalueVisitor<R,EX> aiorvv)
<R,EX extends java.lang.Throwable>
RJava.ArrayInitializerOrRvalue. accept(Visitor.ArrayInitializerOrRvalueVisitor<R,EX> aiorvv)
<R,EX extends java.lang.Throwable>
RJava.ArrayLength. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ArrayType. accept(Visitor.AtomVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ArrayType. accept(Visitor.TypeArgumentVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ArrayType. accept(Visitor.TypeVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.AssertStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.Assignment. accept(Visitor.RvalueVisitor<R,EX> visitor)
abstract <R,EX extends java.lang.Throwable>
RJava.Atom. accept(Visitor.AtomVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.BinaryOperation. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.Block. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.BlockLambdaBody. accept(Visitor.LambdaBodyVisitor<R,EX> lbv)
<R,EX extends java.lang.Throwable>
RJava.BlockStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.BlockStatementVisitor
for the concreteJava.BlockStatement
type.<R,EX extends java.lang.Throwable>
RJava.BooleanLiteral. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.BreakStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.Cast. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.CharacterLiteral. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ClassInstanceCreationReference. accept(Visitor.RvalueVisitor<R,EX> rvv)
<R,EX extends java.lang.Throwable>
RJava.ClassLiteral. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.CompilationUnit. accept(Visitor.AbstractCompilationUnitVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ConditionalExpression. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ConstructorDeclarator. accept(Visitor.FunctionDeclaratorVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ConstructorInvocation. accept(Visitor.AtomVisitor<R,EX> visitor)
abstract <R,EX extends java.lang.Throwable>
RJava.ConstructorInvocation. accept(Visitor.ConstructorInvocationVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.ConstructorInvocationVisitor
for the concreteJava.ConstructorInvocation
.<R,EX extends java.lang.Throwable>
RJava.ContinueStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.Crement. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.DoStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ElementValue. accept(Visitor.ElementValueVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.ElementValueVisitor
for the concreteJava.ElementValue
type.<R,EX extends java.lang.Throwable>
RJava.ElementValueArrayInitializer. accept(Visitor.ElementValueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.EmptyStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.EnumConstant. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ExportsModuleDirective. accept(Visitor.ModuleDirectiveVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ExpressionLambdaBody. accept(Visitor.LambdaBodyVisitor<R,EX> lbv)
<R,EX extends java.lang.Throwable>
RJava.ExpressionStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.FieldAccess. accept(Visitor.LvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.FieldAccessExpression. accept(Visitor.LvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.FieldDeclaration. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.FieldDeclaration. accept(Visitor.FieldDeclarationOrInitializerVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.FieldDeclaration. accept(Visitor.TypeBodyDeclarationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.FieldDeclarationOrInitializer. accept(Visitor.FieldDeclarationOrInitializerVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.FloatingPointLiteral. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ForEachStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.FormalLambdaParameters. accept(Visitor.LambdaParametersVisitor<R,EX> lpv)
<R,EX extends java.lang.Throwable>
RJava.ForStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
abstract <R,EX extends java.lang.Throwable>
RJava.FunctionDeclarator. accept(Visitor.FunctionDeclaratorVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.FunctionDeclaratorVisitor
for the concreteJava.FunctionDeclarator
type.<R,EX extends java.lang.Throwable>
RJava.FunctionDeclarator. accept(Visitor.TypeBodyDeclarationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.IdentifierLambdaParameters. accept(Visitor.LambdaParametersVisitor<R,EX> lpv)
<R,EX extends java.lang.Throwable>
RJava.IfStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.InferredLambdaParameters. accept(Visitor.LambdaParametersVisitor<R,EX> lpv)
<R,EX extends java.lang.Throwable>
RJava.Initializer. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.Initializer. accept(Visitor.FieldDeclarationOrInitializerVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.Initializer. accept(Visitor.TypeBodyDeclarationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.Instanceof. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.IntegerLiteral. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.LabeledStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.LambdaBody. accept(Visitor.LambdaBodyVisitor<R,EX> lbv)
<R,EX extends java.lang.Throwable>
RJava.LambdaExpression. accept(Visitor.RvalueVisitor<R,EX> rvv)
<R,EX extends java.lang.Throwable>
RJava.LambdaParameters. accept(Visitor.LambdaParametersVisitor<R,EX> lpv)
Invokes the "visit...()
" method ofVisitor.LambdaParametersVisitor
for the concreteJava.LambdaParameters
.<R,EX extends java.lang.Throwable>
RJava.LocalClassDeclaration. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.LocalClassDeclarationStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.LocalVariableAccess. accept(Visitor.LvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.LocalVariableDeclarationStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
abstract <R,EX extends java.lang.Throwable>
RJava.Lvalue. accept(Visitor.LvalueVisitor<R,EX> lvv)
<R,EX extends java.lang.Throwable>
RJava.Lvalue. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.MarkerAnnotation. accept(Visitor.AnnotationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.MemberAnnotationTypeDeclaration. accept(Visitor.TypeBodyDeclarationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.MemberAnnotationTypeDeclaration. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.MemberClassDeclaration. accept(Visitor.TypeBodyDeclarationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.MemberClassDeclaration. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.MemberEnumDeclaration. accept(Visitor.TypeBodyDeclarationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.MemberEnumDeclaration. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.MemberInterfaceDeclaration. accept(Visitor.TypeBodyDeclarationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.MemberInterfaceDeclaration. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.MethodDeclarator. accept(Visitor.FunctionDeclaratorVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.MethodInvocation. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.MethodReference. accept(Visitor.RvalueVisitor<R,EX> rvv)
<R,EX extends java.lang.Throwable>
RJava.Modifier. accept(Visitor.ModifierVisitor<R,EX> modifierVisitor)
<R,EX extends java.lang.Throwable>
RJava.ModularCompilationUnit. accept(Visitor.AbstractCompilationUnitVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ModuleDirective. accept(Visitor.ModuleDirectiveVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.ModuleDirectiveVisitor
for the concreteJava.ModuleDirective
type.<R,EX extends java.lang.Throwable>
RJava.NewAnonymousClassInstance. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.NewArray. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.NewClassInstance. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.NewInitializedArray. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.NormalAnnotation. accept(Visitor.AnnotationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.NullLiteral. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.OpensModuleDirective. accept(Visitor.ModuleDirectiveVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.Package. accept(Visitor.AtomVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.PackageMemberAnnotationTypeDeclaration. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.PackageMemberClassDeclaration. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.PackageMemberEnumDeclaration. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.PackageMemberInterfaceDeclaration. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ParameterAccess. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ParenthesizedExpression. accept(Visitor.LvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.PrimitiveType. accept(Visitor.AtomVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.PrimitiveType. accept(Visitor.TypeVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ProvidesModuleDirective. accept(Visitor.ModuleDirectiveVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.QualifiedThisReference. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ReferenceType. accept(Visitor.AtomVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ReferenceType. accept(Visitor.TypeArgumentVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ReferenceType. accept(Visitor.TypeVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.RequiresModuleDirective. accept(Visitor.ModuleDirectiveVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ReturnStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.Rvalue. accept(Visitor.ArrayInitializerOrRvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.Rvalue. accept(Visitor.AtomVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.Rvalue. accept(Visitor.ElementValueVisitor<R,EX> visitor)
abstract <R,EX extends java.lang.Throwable>
RJava.Rvalue. accept(Visitor.RvalueVisitor<R,EX> rvv)
<R,EX extends java.lang.Throwable>
RJava.RvalueMemberType. accept(Visitor.AtomVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.RvalueMemberType. accept(Visitor.TypeVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.SimpleConstant. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.SimpleType. accept(Visitor.AtomVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.SimpleType. accept(Visitor.TypeVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.SingleElementAnnotation. accept(Visitor.AnnotationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.StringLiteral. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.SuperclassFieldAccessExpression. accept(Visitor.LvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.SuperclassMethodInvocation. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.SuperConstructorInvocation. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.SuperConstructorInvocation. accept(Visitor.ConstructorInvocationVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.SwitchStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.SynchronizedStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ThisReference. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.ThrowStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.TryStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.TryStatement.LocalVariableDeclaratorResource. accept(Visitor.TryStatementResourceVisitor<R,EX> visitor)
abstract <R,EX extends java.lang.Throwable>
RJava.TryStatement.Resource. accept(Visitor.TryStatementResourceVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.TryStatementResourceVisitor
for the concreteJava.TryStatement.Resource
type.<R,EX extends java.lang.Throwable>
RJava.TryStatement.VariableAccessResource. accept(Visitor.TryStatementResourceVisitor<R,EX> visitor)
abstract <R,EX extends java.lang.Throwable>
RJava.Type. accept(Visitor.TypeVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.TypeArgument. accept(Visitor.TypeArgumentVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.TypeArgumentVisitor
for the concreteJava.TypeArgument
type.<R,EX extends java.lang.Throwable>
RJava.TypeBodyDeclaration. accept(Visitor.TypeBodyDeclarationVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.TypeBodyDeclarationVisitor
for the concreteJava.TypeBodyDeclaration
type.<R,EX extends java.lang.Throwable>
RJava.TypeDeclaration. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.TypeDeclarationVisitor
for the concreteJava.TypeDeclaration
type.<R,EX extends java.lang.Throwable>
RJava.UnaryOperation. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.UsesModuleDirective. accept(Visitor.ModuleDirectiveVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.WhileStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
RJava.Wildcard. accept(Visitor.TypeArgumentVisitor<R,EX> visitor)
private java.lang.Object
UnitCompiler. constantAssignmentConversion(Java.Locatable locatable, java.lang.Object value, IType targetType)
Implements "assignment conversion" (JLS7 5.2) on a constant value.java.lang.String
Parser. doc()
Gets the text of the doc comment (a.k.a.java.lang.String
TokenStreamImpl. doc()
Gets the text of the doc comment (a.k.a.java.lang.Object
ExpressionEvaluator. evaluate()
java.lang.Object
ExpressionEvaluator. evaluate(int idx, java.lang.Object[] arguments)
java.lang.Object
ExpressionEvaluator. evaluate(java.lang.Object[] arguments)
java.lang.Object
ScriptEvaluator. evaluate()
java.lang.Object
ScriptEvaluator. evaluate(int idx, java.lang.Object[] arguments)
java.lang.Object
ScriptEvaluator. evaluate(java.lang.Object[] arguments)
IClass
UnitCompiler. findClass(java.lang.String className)
Finds one class or interface declaration in this compilation unit and resolves it into anIClass
.protected Java.AbstractCompilationUnit
JavaSourceIClassLoader. findCompilationUnit(java.lang.String className)
Finds the Java source file for the named class through the configured 'source resource finder' and parses it.protected IClass
ClassLoaderIClassLoader. findIClass(java.lang.String descriptor)
protected IClass
Compiler.CompilerIClassLoader. findIClass(java.lang.String type)
protected abstract IClass
IClassLoader. findIClass(java.lang.String descriptor)
Finds a newIClass
by descriptor and callsIClassLoader.defineIClass(IClass)
.IClass
JavaSourceIClassLoader. findIClass(java.lang.String fieldDescriptor)
protected IClass
ResourceFinderIClassLoader. findIClass(java.lang.String descriptor)
IClass.IConstructor
IClass. findIConstructor(IClass[] parameterTypes)
private IClass.IField
UnitCompiler. findIField(IClass iClass, java.lang.String name, Location location)
Finds a named field in the givenIClass
.IClass.IMethod
IClass. findIMethod(java.lang.String methodName, IClass[] parameterTypes)
private IClass.IMethod
UnitCompiler. findIMethod(IType targetType, Java.Invocation invocation)
Finds aIClass.IMethod
in the given targetType, its superclasses or superinterfaces which is applicable with the given invocation.private static Java.LocalClassDeclaration
UnitCompiler. findLocalClassDeclaration(Java.Scope s, java.lang.String name)
Finds a local class declared in any block enclosing the given block statement.Java.LocalVariable
Java.BlockStatement. findLocalVariable(java.lang.String name)
Java.LocalVariable
Java.ConstructorInvocation. findLocalVariable(java.lang.String name)
Java.LocalVariable
Java.Initializer. findLocalVariable(java.lang.String name)
Java.LocalVariable
Java.Statement. findLocalVariable(java.lang.String name)
private IClass
UnitCompiler. findMemberType(IType iType, java.lang.String name, Java.TypeArgument[] typeArguments, Location location)
Finds a named type in the givenIClass
orIParameterizedType
.IClass.IInvocable
UnitCompiler. findMostSpecificIInvocable(Java.Locatable locatable, IClass.IInvocable[] iInvocables, IClass[] argumentTypes, boolean boxingPermitted, Java.Scope contextScope)
Determines the applicable invocables and choose the most specific invocable.private IClass
UnitCompiler. findTypeByFullyQualifiedName(Location location, java.lang.String[] identifiers)
Attempts to load anIClass
by fully-qualified name throughUnitCompiler.iClassLoader
.private IClass
UnitCompiler. findTypeByName(Location location, java.lang.String className)
Finds the namedIClass
in this compilation unit, or through theUnitCompiler.iClassLoader
.protected java.util.Map<java.lang.String,byte[]>
CachingJavaSourceClassLoader. generateBytecodes(java.lang.String className)
OverridesJavaSourceClassLoader.generateBytecodes(String)
to implement class file caching.protected java.util.Map<java.lang.String,byte[]>
JavaSourceClassLoader. generateBytecodes(java.lang.String name)
Finds, scans, parses the right compilation unit.IClass
IClass. getComponentType()
private static IType
UnitCompiler. getComponentType(IType expressionType)
protected IClass
ClassFileIClass. getComponentType2()
protected abstract IClass
IClass. getComponentType2()
protected IClass
IClass.PrimitiveIClass. getComponentType2()
protected IClass
ReflectionIClass. getComponentType2()
abstract java.lang.Object
IClass.IField. getConstantValue()
Returns the value of the field if it is a compile-time constant value, i.e.java.lang.Object
UnitCompiler. getConstantValue(Java.ArrayInitializerOrRvalue rv)
Attempts to evaluate as a constant expression.java.lang.Object
UnitCompiler. getConstantValue(Java.Rvalue rv)
Attempts to evaluate as a constant expression.private java.lang.Object
UnitCompiler. getConstantValue2(Java.AmbiguousName an)
private java.lang.Object
UnitCompiler. getConstantValue2(Java.BinaryOperation bo)
private java.lang.Object
UnitCompiler. getConstantValue2(Java.ConditionalExpression ce)
private java.lang.Object
UnitCompiler. getConstantValue2(Java.FieldAccess fa)
private java.lang.Object
UnitCompiler. getConstantValue2(Java.LocalVariableAccess lva)
private java.lang.Object
UnitCompiler. getConstantValue2(Java.NullLiteral nl)
private java.lang.Object
UnitCompiler. getConstantValue2(Java.ParenthesizedExpression pe)
private java.lang.Object
UnitCompiler. getConstantValue2(Java.Rvalue rv)
private java.lang.Object
UnitCompiler. getConstantValue2(Java.SimpleConstant sl)
private java.lang.Object
UnitCompiler. getConstantValue2(Java.UnaryOperation uo)
IClass.IField
IClass. getDeclaredIField(java.lang.String name)
Returns the namedIClass.IField
declared in thisIClass
(does not work for inherited fields).IClass
IClass. getDeclaringIClass()
protected IClass
ClassFileIClass. getDeclaringIClass2()
protected abstract IClass
IClass. getDeclaringIClass2()
protected IClass
IClass.PrimitiveIClass. getDeclaringIClass2()
protected IClass
ReflectionIClass. getDeclaringIClass2()
java.lang.String
Java.DocCommentable. getDocComment()
java.lang.String
Java.EnumConstant. getDocComment()
java.lang.String
Java.FieldDeclaration. getDocComment()
java.lang.String
Java.FunctionDeclarator. getDocComment()
java.lang.String
Java.InterfaceDeclaration. getDocComment()
java.lang.String
Java.NamedClassDeclaration. getDocComment()
Java.Scope
Java.Rvalue. getEnclosingScopeOrNull()
CodeContext.Offset
Java.LocalVariableSlot. getEnd()
java.lang.String
Scanner. getFileName()
IType
IWildcardType. getLowerBound()
Java.MemberTypeDeclaration
Java.AbstractTypeDeclaration. getMemberTypeDeclaration(java.lang.String name)
Java.MemberTypeDeclaration
Java.TypeDeclaration. getMemberTypeDeclaration(java.lang.String name)
Returns the member type with the given name.private static IClass.IMethod
IClassLoader. getMethod(IClass declaringType, java.lang.String name, IClass... parameterTypes)
Java.MethodDeclarator
Java.AbstractTypeDeclaration. getMethodDeclaration(java.lang.String name)
Java.MethodDeclarator
Java.TypeDeclaration. getMethodDeclaration(java.lang.String name)
Returns the first method declared with the given name.java.lang.String
Java.LocalVariableSlot. getName()
(package private) Java.ArrayInitializerOrRvalue
UnitCompiler. getNonConstantFinalInitializer(Java.FieldDeclaration fd, Java.VariableDeclarator vd)
Determines the non-constant-final initializer of the givenJava.VariableDeclarator
.Java.TypeParameter[]
Java.AbstractTypeDeclaration. getOptionalTypeParameters()
(package private) Java.TypeParameter[]
Java.MethodDeclarator. getOptionalTypeParameters()
Java.TypeParameter[]
Java.NamedTypeDeclaration. getOptionalTypeParameters()
(package private) static Java.TypeDeclaration
UnitCompiler. getOuterClass(Java.TypeDeclaration typeDeclaration)
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 classesprotected IClass
ClassFileIClass. getOuterIClass2()
protected abstract IClass
IClass. getOuterIClass2()
protected IClass
IClass.PrimitiveIClass. getOuterIClass2()
protected IClass
ReflectionIClass. getOuterIClass2()
Java.PackageMemberTypeDeclaration
Java.CompilationUnit. getPackageMemberTypeDeclaration(java.lang.String name)
Returns the package member class or interface declared with the given name.static java.lang.String
Descriptor. getPackageName(java.lang.String d)
Returns the package name of a class or interface reference descriptor, ornull
iff the class or interface is declared in the default package.private IType
UnitCompiler. getReferenceType(Location location, Java.Scope scope, java.lang.String[] identifiers, int n, Java.TypeArgument[] typeArguments)
protected java.lang.Class<?>
ScriptEvaluator. getReturnType(int index)
java.lang.String[]
UnitCompiler. getSingleTypeImport(java.lang.String name, Location location)
Checks if the given simple name was imported through a single type import.CodeContext.Offset
Java.LocalVariableSlot. getStart()
IClass
IClass. getSuperclass()
Returns the superclass of the class.private static IType
UnitCompiler. getSuperclass(IType type)
protected IClass
ClassFileIClass. getSuperclass2()
protected abstract IClass
IClass. getSuperclass2()
protected IClass
IClass.PrimitiveIClass. getSuperclass2()
protected IClass
ReflectionIClass. getSuperclass2()
private IClass
UnitCompiler. importSingleType(java.lang.String simpleTypeName, Location location)
If the given name was declared in a simple type import, load that class.IClass
UnitCompiler. importTypeOnDemand(java.lang.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.private IClass
UnitCompiler. importTypeOnDemand2(java.lang.String simpleTypeName, Location location)
private java.lang.String
UnitCompiler. internalCheckAccessible(IClass iClassDeclaringMember, Access memberAccess, Java.Scope contextScope)
private java.lang.String
UnitCompiler. internalCheckAccessible(IClass type, Java.Scope contextScope)
private IClass
UnitCompiler. isBoxingConvertible(IType sourceType)
private static java.lang.Byte
UnitCompiler. isByteConstant(java.lang.Object o)
(package private) Java.LocalVariable
UnitCompiler. isIntLv(Java.Crement c)
Checks whether the operand is anint
local variable.private IClass
UnitCompiler. isUnboxingConvertible(IType sourceType)
IClass
IClassLoader. loadIClass(java.lang.String fieldDescriptor)
Gets anIClass
by field descriptor.private static StackMap
CodeContext. mergeStackMaps(StackMap sm1, StackMap sm2)
protected ClassFile.LocalVariableTableAttribute
CodeContext. newLocalVariableTableAttribute()
private ClassFile.StackMapTableAttribute
CodeContext. newStackMapTableAttribute(int initialLocalsCount)
protected Java.Type
ClassBodyEvaluator. optionalClassToType(Location location, java.lang.Class<?> clazz)
protected Java.Type
ExpressionEvaluator. optionalClassToType(Location location, java.lang.Class<?> clazz)
Wraps a reflectionClass
in aJava.Type
object.protected Java.Type
ScriptEvaluator. optionalClassToType(Location loc, java.lang.Class<?> clazz)
protected Java.Type
SimpleCompiler. optionalClassToType(Location location, java.lang.Class<?> clazz)
Wraps a reflectionClass
in aJava.Type
object.Java.Modifier
Parser. parseOptionalModifier()
Modifier := Annotation | 'public' | 'protected' | 'private' | 'static' | 'abstract' | 'final' | 'native' | 'synchronized' | 'transient' | 'volatile' | 'strictfp' | 'default'private Java.TypeArgument[]
Parser. parseTypeArgumentsOpt()
TypeArguments := '<' [ TypeArgument { ',' TypeArgument } ] '>'private Java.TypeParameter[]
Parser. parseTypeParametersOpt()
TypeParameters := '<' TypeParameter { ',' TypeParameter } '>'java.lang.String
Parser. peekRead(TokenType suspected)
java.lang.String
TokenStream. peekRead(TokenType suspected)
Checks whether the type of the next token is the suspected; if so, consumes the token.java.lang.String
TokenStreamImpl. peekRead(TokenType suspected)
private CodeContext
UnitCompiler. replaceCodeContext(CodeContext newCodeContext)
Java.Lvalue
Java.AmbiguousName. toLvalue()
Java.Lvalue
Java.Atom. toLvalue()
Java.Lvalue
Java.Lvalue. toLvalue()
Java.Rvalue
Java.AmbiguousName. toRvalue()
Java.Rvalue
Java.Atom. toRvalue()
Java.Rvalue
Java.Rvalue. toRvalue()
Java.Type
Java.Atom. toType()
R
Visitor.ModifierVisitor. visitAccessModifier(Java.AccessModifier am)
R
Visitor.BlockStatementVisitor. visitAlternateConstructorInvocation(Java.AlternateConstructorInvocation aci)
R
Visitor.ConstructorInvocationVisitor. visitAlternateConstructorInvocation(Java.AlternateConstructorInvocation aci)
R
Visitor.LvalueVisitor. visitAmbiguousName(Java.AmbiguousName an)
R
Visitor.ElementValueVisitor. visitAnnotation(Java.Annotation a)
R
Visitor.TypeDeclarationVisitor. visitAnonymousClassDeclaration(Java.AnonymousClassDeclaration acd)
R
Visitor.LvalueVisitor. visitArrayAccessExpression(Java.ArrayAccessExpression aae)
R
Visitor.RvalueVisitor. visitArrayCreationReference(Java.ArrayCreationReference acr)
R
Visitor.ArrayInitializerOrRvalueVisitor. visitArrayInitializer(Java.ArrayInitializer ai)
R
Visitor.RvalueVisitor. visitArrayLength(Java.ArrayLength al)
R
Visitor.TypeArgumentVisitor. visitArrayType(Java.ArrayType arrayType)
R
Visitor.TypeVisitor. visitArrayType(Java.ArrayType at)
Invoked byJava.ArrayType.accept(Visitor.TypeVisitor)
R
Visitor.BlockStatementVisitor. visitAssertStatement(Java.AssertStatement as)
R
Visitor.RvalueVisitor. visitAssignment(Java.Assignment a)
R
Visitor.RvalueVisitor. visitBinaryOperation(Java.BinaryOperation bo)
R
Visitor.BlockStatementVisitor. visitBlock(Java.Block b)
R
Visitor.LambdaBodyVisitor. visitBlockLambdaBody(Java.BlockLambdaBody blockLambdaBody)
R
Visitor.RvalueVisitor. visitBooleanLiteral(Java.BooleanLiteral bl)
R
Visitor.BlockStatementVisitor. visitBreakStatement(Java.BreakStatement bs)
R
Visitor.RvalueVisitor. visitCast(Java.Cast c)
Invoked byJava.Cast.accept(Visitor.RvalueVisitor)
R
Visitor.RvalueVisitor. visitCharacterLiteral(Java.CharacterLiteral cl)
R
Visitor.RvalueVisitor. visitClassLiteral(Java.ClassLiteral cl)
R
Visitor.AbstractCompilationUnitVisitor. visitCompilationUnit(Java.CompilationUnit cu)
R
Visitor.RvalueVisitor. visitConditionalExpression(Java.ConditionalExpression ce)
R
Visitor.FunctionDeclaratorVisitor. visitConstructorDeclarator(Java.ConstructorDeclarator cd)
R
Visitor.AtomVisitor. visitConstructorInvocation(Java.ConstructorInvocation ci)
R
Visitor.BlockStatementVisitor. visitContinueStatement(Java.ContinueStatement cs)
R
Visitor.RvalueVisitor. visitCrement(Java.Crement c)
Invoked byJava.Crement.accept(Visitor.RvalueVisitor)
R
Visitor.BlockStatementVisitor. visitDoStatement(Java.DoStatement ds)
R
Visitor.ElementValueVisitor. visitElementValueArrayInitializer(Java.ElementValueArrayInitializer evai)
R
Visitor.BlockStatementVisitor. visitEmptyStatement(Java.EmptyStatement es)
R
Visitor.TypeDeclarationVisitor. visitEnumConstant(Java.EnumConstant ec)
R
Visitor.ModuleDirectiveVisitor. visitExportsModuleDirective(Java.ExportsModuleDirective emd)
R
Visitor.LambdaBodyVisitor. visitExpressionLambdaBody(Java.ExpressionLambdaBody expressionLambdaBody)
R
Visitor.BlockStatementVisitor. visitExpressionStatement(Java.ExpressionStatement es)
R
Visitor.LvalueVisitor. visitFieldAccess(Java.FieldAccess fa)
R
Visitor.LvalueVisitor. visitFieldAccessExpression(Java.FieldAccessExpression fae)
R
Visitor.FieldDeclarationOrInitializerVisitor. visitFieldDeclaration(Java.FieldDeclaration fd)
R
Visitor.TypeBodyDeclarationVisitor. visitFieldDeclaration(Java.FieldDeclaration fd)
R
Visitor.RvalueVisitor. visitFloatingPointLiteral(Java.FloatingPointLiteral fpl)
R
Visitor.BlockStatementVisitor. visitForEachStatement(Java.ForEachStatement forEachStatement)
R
Visitor.LambdaParametersVisitor. visitFormalLambdaParameters(Java.FormalLambdaParameters flp)
R
Visitor.BlockStatementVisitor. visitForStatement(Java.ForStatement fs)
R
Visitor.TypeBodyDeclarationVisitor. visitFunctionDeclarator(Java.FunctionDeclarator fd)
R
Visitor.LambdaParametersVisitor. visitIdentifierLambdaParameters(Java.IdentifierLambdaParameters ilp)
R
Visitor.BlockStatementVisitor. visitIfStatement(Java.IfStatement is)
R
Visitor.LambdaParametersVisitor. visitInferredLambdaParameters(Java.InferredLambdaParameters ilp)
R
Visitor.FieldDeclarationOrInitializerVisitor. visitInitializer(Java.Initializer i)
R
Visitor.TypeBodyDeclarationVisitor. visitInitializer(Java.Initializer i)
R
Visitor.RvalueVisitor. visitInstanceCreationReference(Java.ClassInstanceCreationReference cicr)
R
Visitor.RvalueVisitor. visitInstanceof(Java.Instanceof io)
R
Visitor.RvalueVisitor. visitIntegerLiteral(Java.IntegerLiteral il)
R
Visitor.BlockStatementVisitor. visitLabeledStatement(Java.LabeledStatement ls)
R
Visitor.RvalueVisitor. visitLambdaExpression(Java.LambdaExpression le)
R
Visitor.TypeDeclarationVisitor. visitLocalClassDeclaration(Java.LocalClassDeclaration lcd)
R
Visitor.BlockStatementVisitor. visitLocalClassDeclarationStatement(Java.LocalClassDeclarationStatement lcds)
R
Visitor.LvalueVisitor. visitLocalVariableAccess(Java.LocalVariableAccess lva)
R
Visitor.BlockStatementVisitor. visitLocalVariableDeclarationStatement(Java.LocalVariableDeclarationStatement lvds)
R
Visitor.TryStatementResourceVisitor. visitLocalVariableDeclaratorResource(Java.TryStatement.LocalVariableDeclaratorResource lvdr)
R
Visitor.RvalueVisitor. visitLvalue(Java.Lvalue lv)
Invoked byJava.Lvalue.accept(Visitor.RvalueVisitor)
R
Visitor.AnnotationVisitor. visitMarkerAnnotation(Java.MarkerAnnotation ma)
R
Visitor.TypeBodyDeclarationVisitor. visitMemberAnnotationTypeDeclaration(Java.MemberAnnotationTypeDeclaration matd)
R
Visitor.TypeDeclarationVisitor. visitMemberAnnotationTypeDeclaration(Java.MemberAnnotationTypeDeclaration matd)
R
Visitor.TypeBodyDeclarationVisitor. visitMemberClassDeclaration(Java.MemberClassDeclaration mcd)
R
Visitor.TypeDeclarationVisitor. visitMemberClassDeclaration(Java.MemberClassDeclaration mcd)
R
Visitor.TypeBodyDeclarationVisitor. visitMemberEnumDeclaration(Java.MemberEnumDeclaration med)
R
Visitor.TypeDeclarationVisitor. visitMemberEnumDeclaration(Java.MemberEnumDeclaration med)
R
Visitor.TypeBodyDeclarationVisitor. visitMemberInterfaceDeclaration(Java.MemberInterfaceDeclaration mid)
R
Visitor.TypeDeclarationVisitor. visitMemberInterfaceDeclaration(Java.MemberInterfaceDeclaration mid)
R
Visitor.FunctionDeclaratorVisitor. visitMethodDeclarator(Java.MethodDeclarator md)
R
Visitor.RvalueVisitor. visitMethodInvocation(Java.MethodInvocation mi)
R
Visitor.RvalueVisitor. visitMethodReference(Java.MethodReference mr)
R
Visitor.AbstractCompilationUnitVisitor. visitModularCompilationUnit(Java.ModularCompilationUnit mcu)
R
Visitor.RvalueVisitor. visitNewAnonymousClassInstance(Java.NewAnonymousClassInstance naci)
R
Visitor.RvalueVisitor. visitNewArray(Java.NewArray na)
Invoked byJava.NewArray.accept(Visitor.RvalueVisitor)
R
Visitor.RvalueVisitor. visitNewClassInstance(Java.NewClassInstance nci)
R
Visitor.RvalueVisitor. visitNewInitializedArray(Java.NewInitializedArray nia)
R
Visitor.AnnotationVisitor. visitNormalAnnotation(Java.NormalAnnotation na)
R
Visitor.RvalueVisitor. visitNullLiteral(Java.NullLiteral nl)
R
Visitor.ModuleDirectiveVisitor. visitOpensModuleDirective(Java.OpensModuleDirective omd)
R
Visitor.AtomVisitor. visitPackage(Java.Package p)
Invoked byJava.Package.accept(Visitor.AtomVisitor)
.R
Visitor.TypeDeclarationVisitor. visitPackageMemberAnnotationTypeDeclaration(Java.PackageMemberAnnotationTypeDeclaration pmatd)
R
Visitor.TypeDeclarationVisitor. visitPackageMemberClassDeclaration(Java.PackageMemberClassDeclaration pmcd)
R
Visitor.TypeDeclarationVisitor. visitPackageMemberEnumDeclaration(Java.PackageMemberEnumDeclaration pmed)
R
Visitor.TypeDeclarationVisitor. visitPackageMemberInterfaceDeclaration(Java.PackageMemberInterfaceDeclaration pmid)
R
Visitor.RvalueVisitor. visitParameterAccess(Java.ParameterAccess pa)
R
Visitor.LvalueVisitor. visitParenthesizedExpression(Java.ParenthesizedExpression pe)
R
Visitor.TypeVisitor. visitPrimitiveType(Java.PrimitiveType bt)
R
Visitor.ModuleDirectiveVisitor. visitProvidesModuleDirective(Java.ProvidesModuleDirective pmd)
R
Visitor.RvalueVisitor. visitQualifiedThisReference(Java.QualifiedThisReference qtr)
R
Visitor.TypeArgumentVisitor. visitReferenceType(Java.ReferenceType rt)
R
Visitor.TypeVisitor. visitReferenceType(Java.ReferenceType rt)
R
Visitor.ModuleDirectiveVisitor. visitRequiresModuleDirective(Java.RequiresModuleDirective rmd)
R
Visitor.BlockStatementVisitor. visitReturnStatement(Java.ReturnStatement rs)
R
Visitor.ArrayInitializerOrRvalueVisitor. visitRvalue(Java.Rvalue rvalue)
R
Visitor.AtomVisitor. visitRvalue(Java.Rvalue rv)
Invoked byJava.Rvalue.accept(Visitor.AtomVisitor)
.R
Visitor.ElementValueVisitor. visitRvalue(Java.Rvalue rv)
R
Visitor.TypeVisitor. visitRvalueMemberType(Java.RvalueMemberType rmt)
R
Visitor.RvalueVisitor. visitSimpleConstant(Java.SimpleConstant sl)
R
Visitor.TypeVisitor. visitSimpleType(Java.SimpleType st)
Invoked byJava.SimpleType.accept(Visitor.TypeVisitor)
R
Visitor.AnnotationVisitor. visitSingleElementAnnotation(Java.SingleElementAnnotation sea)
R
Visitor.ImportVisitor. visitSingleStaticImportDeclaration(Java.AbstractCompilationUnit.SingleStaticImportDeclaration ssid)
R
Visitor.ImportVisitor. visitSingleTypeImportDeclaration(Java.AbstractCompilationUnit.SingleTypeImportDeclaration stid)
R
Visitor.ImportVisitor. visitStaticImportOnDemandDeclaration(Java.AbstractCompilationUnit.StaticImportOnDemandDeclaration siodd)
R
Visitor.RvalueVisitor. visitStringLiteral(Java.StringLiteral sl)
R
Visitor.LvalueVisitor. visitSuperclassFieldAccessExpression(Java.SuperclassFieldAccessExpression scfae)
R
Visitor.RvalueVisitor. visitSuperclassMethodInvocation(Java.SuperclassMethodInvocation smi)
R
Visitor.BlockStatementVisitor. visitSuperConstructorInvocation(Java.SuperConstructorInvocation sci)
R
Visitor.ConstructorInvocationVisitor. visitSuperConstructorInvocation(Java.SuperConstructorInvocation sci)
R
Visitor.BlockStatementVisitor. visitSwitchStatement(Java.SwitchStatement ss)
R
Visitor.BlockStatementVisitor. visitSynchronizedStatement(Java.SynchronizedStatement ss)
R
Visitor.RvalueVisitor. visitThisReference(Java.ThisReference tr)
R
Visitor.BlockStatementVisitor. visitThrowStatement(Java.ThrowStatement ts)
R
Visitor.BlockStatementVisitor. visitTryStatement(Java.TryStatement ts)
R
Visitor.AtomVisitor. visitType(Java.Type t)
Invoked byJava.Atom.accept(Visitor.AtomVisitor)
.R
Visitor.ImportVisitor. visitTypeImportOnDemandDeclaration(Java.AbstractCompilationUnit.TypeImportOnDemandDeclaration tiodd)
R
Visitor.RvalueVisitor. visitUnaryOperation(Java.UnaryOperation uo)
R
Visitor.ModuleDirectiveVisitor. visitUsesModuleDirective(Java.UsesModuleDirective umd)
R
Visitor.TryStatementResourceVisitor. visitVariableAccessResource(Java.TryStatement.VariableAccessResource var)
R
Visitor.BlockStatementVisitor. visitWhileStatement(Java.WhileStatement ws)
R
Visitor.TypeArgumentVisitor. visitWildcard(Java.Wildcard w)
Method parameters in org.codehaus.janino with annotations of type Nullable Modifier and Type Method Description void
CodeContext. addExceptionTableEntry(CodeContext.Offset startPc, CodeContext.Offset endPc, CodeContext.Offset handlerPc, java.lang.String catchTypeFd)
Adds another entry to the "exception_table" of this code attribute (see JVMS 4.7.3).Java.LocalVariableSlot
CodeContext. allocateLocalVariable(short size, java.lang.String name, IType type)
Allocates space for a local variable of the given size (1 or 2) on the local variable array.Java.LocalVariableSlot
CodeContext. allocateLocalVariable(short size, java.lang.String name, IType type)
Allocates space for a local variable of the given size (1 or 2) on the local variable array.private Java.LocalVariableSlot
UnitCompiler. allocateLocalVariableSlot(IType localVariableType, java.lang.String localVariableName)
private Java.LocalVariableSlot
UnitCompiler. allocateLocalVariableSlotAndMarkAsInitialized(IType localVariableType, java.lang.String localVariableName)
private static <T> T
UnitCompiler. assertNonNull(T subject)
private void
UnitCompiler. assignmentConversion(Java.Locatable locatable, IType sourceType, IType targetType, java.lang.Object constantValue)
Implements "assignment conversion" (JLS7 5.2) (more precisely: "assignment contexts".)private void
UnitCompiler. castConversion(Java.Locatable locatable, IType sourceType, IType targetType, java.lang.Object constantValue)
protected Java.Type[]
ExpressionEvaluator. classesToTypes(Location location, java.lang.Class<?>... classes)
Converts an array ofClass
es into an array ofJava.Type
s.protected Java.Type[]
SimpleCompiler. classesToTypes(Location location, java.lang.Class<?>[] classes)
Converts an array ofClass
es into an array ofJava.Type
s.private IType
UnitCompiler. compileArithmeticOperation(Java.Locatable locatable, IType firstOperandType, java.util.Iterator<Java.Rvalue> operands, java.lang.String operator)
Executes an arithmetic operation on a sequence of operands.private void
UnitCompiler. compileError(java.lang.String message, Location location)
Issues a compile error with the given message.private IClass.IField
UnitCompiler. compileField(Java.TypeDeclaration declaringType, Java.Annotation[] annotations, Access access, boolean statiC, boolean finaL, Java.Type type, int brackets, java.lang.String name, Java.ArrayInitializerOrRvalue initializer)
Compiles one variable declarator into anIClass.IField
.private boolean
UnitCompiler. compileTryCatchFinally(Java.TryStatement ts, UnitCompiler.Compilable2 compileBody, Java.BlockStatement finallY)
Generates code for a TRY statement without resources, but with an (optional) FINALLY clause.private boolean
UnitCompiler. compileTryCatchFinallyWithResources(Java.TryStatement ts, java.util.List<Java.TryStatement.Resource> resources, UnitCompiler.Compilable2 compileBody, Java.Block finallY)
Generates code for a TRY statement with (possibly zero) resources and an (optional) FINALLY clause.private boolean
UnitCompiler. compileUnconditionalLoop(Java.ContinuableStatement cs, Java.BlockStatement body, Java.Rvalue[] update)
private IClass
UnitCompiler. consT(Java.Locatable locatable, java.lang.Object value)
Pushes one value on the operand stack and pushes the respectiveClassFile.StackMapTableAttribute.VerificationTypeInfo
operand to the stack map.private java.lang.Object
UnitCompiler. constantAssignmentConversion(Java.Locatable locatable, java.lang.Object value, IType targetType)
Implements "assignment conversion" (JLS7 5.2) on a constant value.void
ClassBodyEvaluator. cook(java.lang.String fileName, java.io.Reader r)
void
ExpressionEvaluator. cook(java.lang.String fileName, java.io.Reader reader)
void
ScriptEvaluator. cook(java.lang.String fileName, java.io.Reader reader)
(package private) void
ScriptEvaluator. cook(java.lang.String fileName, Java.AbstractCompilationUnit.ImportDeclaration[] importDeclarations, Java.BlockStatement[][] statementss, Java.MethodDeclarator[][] localMethodss)
void
SimpleCompiler. cook(java.lang.String fileName, java.io.Reader r)
Scans, parses and compiles a given compilation unit from the givenReader
.static java.lang.Object
ClassBodyEvaluator. createFastClassBodyEvaluator(Scanner scanner, java.lang.Class<?> baseType, java.lang.ClassLoader parentClassLoader)
Deprecated.UseClassBodyEvaluator.createInstance(Reader)
insteadstatic java.lang.Object
ClassBodyEvaluator. createFastClassBodyEvaluator(Scanner scanner, java.lang.Class<?> baseType, java.lang.ClassLoader parentClassLoader)
Deprecated.UseClassBodyEvaluator.createInstance(Reader)
insteadstatic java.lang.Object
ClassBodyEvaluator. createFastClassBodyEvaluator(Scanner scanner, java.lang.String className, java.lang.Class<?> extendedClass, java.lang.Class<?>[] implementedInterfaces, java.lang.ClassLoader parentClassLoader)
Deprecated.UseClassBodyEvaluator.createInstance(Reader)
insteadstatic java.lang.Object
ClassBodyEvaluator. createFastClassBodyEvaluator(Scanner scanner, java.lang.String className, java.lang.Class<?> extendedClass, java.lang.Class<?>[] implementedInterfaces, java.lang.ClassLoader parentClassLoader)
Deprecated.UseClassBodyEvaluator.createInstance(Reader)
insteadstatic java.lang.Object
ExpressionEvaluator. createFastExpressionEvaluator(java.lang.String expression, java.lang.Class<?> interfaceToImplement, java.lang.String[] parameterNames, java.lang.ClassLoader parentClassLoader)
Deprecated.static java.lang.Object
ExpressionEvaluator. createFastExpressionEvaluator(Scanner scanner, java.lang.String[] defaultImports, java.lang.String className, java.lang.Class<?> extendedType, java.lang.Class<?> interfaceToImplement, java.lang.String[] parameterNames, java.lang.ClassLoader parentClassLoader)
Deprecated.static java.lang.Object
ExpressionEvaluator. createFastExpressionEvaluator(Scanner scanner, java.lang.String[] defaultImports, java.lang.String className, java.lang.Class<?> extendedType, java.lang.Class<?> interfaceToImplement, java.lang.String[] parameterNames, java.lang.ClassLoader parentClassLoader)
Deprecated.static java.lang.Object
ExpressionEvaluator. createFastExpressionEvaluator(Scanner scanner, java.lang.String className, java.lang.Class<?> extendedType, java.lang.Class<?> interfaceToImplement, java.lang.String[] parameterNames, java.lang.ClassLoader parentClassLoader)
Deprecated.static java.lang.Object
ExpressionEvaluator. createFastExpressionEvaluator(Scanner scanner, java.lang.String className, java.lang.Class<?> extendedType, java.lang.Class<?> interfaceToImplement, java.lang.String[] parameterNames, java.lang.ClassLoader parentClassLoader)
Deprecated.static java.lang.Object
ScriptEvaluator. createFastScriptEvaluator(Scanner scanner, java.lang.Class<?> interfaceToImplement, java.lang.String[] parameterNames, java.lang.ClassLoader parentClassLoader)
Deprecated.static java.lang.Object
ScriptEvaluator. createFastScriptEvaluator(Scanner scanner, java.lang.String[] defaultImports, java.lang.String className, java.lang.Class<?> extendedClass, java.lang.Class<?> interfaceToImplement, java.lang.String[] parameterNames, java.lang.ClassLoader parentClassLoader)
Deprecated.static java.lang.Object
ScriptEvaluator. createFastScriptEvaluator(Scanner scanner, java.lang.String[] defaultImports, java.lang.String className, java.lang.Class<?> extendedClass, java.lang.Class<?> interfaceToImplement, java.lang.String[] parameterNames, java.lang.ClassLoader parentClassLoader)
Deprecated.static java.lang.Object
ScriptEvaluator. createFastScriptEvaluator(Scanner scanner, java.lang.String className, java.lang.Class<?> extendedType, java.lang.Class<?> interfaceToImplement, java.lang.String[] parameterNames, java.lang.ClassLoader parentClassLoader)
Deprecated.static java.lang.Object
ScriptEvaluator. createFastScriptEvaluator(Scanner scanner, java.lang.String className, java.lang.Class<?> extendedType, java.lang.Class<?> interfaceToImplement, java.lang.String[] parameterNames, java.lang.ClassLoader parentClassLoader)
Deprecated.static IClassLoader
IClassLoader. createJavacLikePathIClassLoader(java.io.File[] bootClassPath, java.io.File[] extDirs, java.io.File[] classPath)
Creates anIClassLoader
that looks for classes in the given "boot class path", then in the given "extension directories", and then in the given "class path".static IClassLoader
IClassLoader. createJavacLikePathIClassLoader(java.io.File[] bootClassPath, java.io.File[] extDirs, java.io.File[] classPath)
Creates anIClassLoader
that looks for classes in the given "boot class path", then in the given "extension directories", and then in the given "class path".boolean
MethodDescriptor. equals(java.lang.Object obj)
boolean
SimpleCompiler. equals(java.lang.Object o)
TwoSimpleCompiler
s are regarded equal iff Both are objects of the same class (e.g.boolean
StackMap. equals(java.lang.Object obj)
java.lang.Object
ExpressionEvaluator. evaluate(int idx, java.lang.Object[] arguments)
java.lang.Object
ExpressionEvaluator. evaluate(java.lang.Object[] arguments)
java.lang.Object
ScriptEvaluator. evaluate(int idx, java.lang.Object[] arguments)
java.lang.Object
ScriptEvaluator. evaluate(java.lang.Object[] arguments)
protected java.lang.Class<?>
JavaSourceClassLoader. findClass(java.lang.String name)
Implementation ofClassLoader.findClass(String)
.(package private) IClass[]
IClass. findMemberType(java.lang.String name)
If name isnull
, finds allIClass
es visible in the scope of the current class.private void
IClass. findMemberType(java.lang.String name, java.util.Collection<IClass> result)
private IClass
UnitCompiler. findMemberType(IType iType, java.lang.String name, Java.TypeArgument[] typeArguments, Location location)
Finds a named type in the givenIClass
orIParameterizedType
.static java.io.File
Compiler. getClassFile(java.lang.String className, java.io.File sourceFile, java.io.File destinationDirectory)
Constructs the name of a file that could store the byte code of the class with the given name.private IType
UnitCompiler. getReferenceType(Location location, java.lang.String simpleTypeName, Java.TypeArgument[] typeArguments, Java.Scope scope)
JLS7 6.5.5.1 Simple type name (single identifier)private IType
UnitCompiler. getReferenceType(Location location, Java.Scope scope, java.lang.String[] identifiers, int n, Java.TypeArgument[] typeArguments)
void
FilterWarningHandler. handleWarning(java.lang.String handle, java.lang.String message, Location location)
void
FilterWarningHandler. handleWarning(java.lang.String handle, java.lang.String message, Location location)
private void
UnitCompiler. invokeConstructor(Java.Locatable locatable, Java.Scope scope, Java.Rvalue enclosingInstance, IType targetType, Java.Rvalue[] arguments)
Expects the object to initialize on the stack.private static java.lang.Byte
UnitCompiler. isByteConstant(java.lang.Object o)
private static java.lang.String
Parser. join(java.lang.String[] sa, java.lang.String separator)
private static java.lang.String
TokenStreamImpl. join(java.lang.Object[] oa, java.lang.String glue)
(package private) Java.AbstractCompilationUnit.ImportDeclaration[]
ClassBodyEvaluator. makeImportDeclarations(Parser parser)
private static StackMap
CodeContext. mergeStackMaps(StackMap sm1, StackMap sm2)
private static StackMap
CodeContext. mergeStackMaps(StackMap sm1, StackMap sm2)
private ClassFile
UnitCompiler. newClassFile(short accessFlags, IClass iClass, IClass superclass, IClass[] interfaces)
private static <T> T[]
Compiler. nullToEmptyArray(T[] a, java.lang.Class<T> elementType)
protected Java.Type
ClassBodyEvaluator. optionalClassToType(Location location, java.lang.Class<?> clazz)
protected Java.Type
ExpressionEvaluator. optionalClassToType(Location location, java.lang.Class<?> clazz)
Wraps a reflectionClass
in aJava.Type
object.protected Java.Type
ScriptEvaluator. optionalClassToType(Location loc, java.lang.Class<?> clazz)
protected Java.Type
SimpleCompiler. optionalClassToType(Location location, java.lang.Class<?> clazz)
Wraps a reflectionClass
in aJava.Type
object.Java.AnnotationTypeDeclaration
Parser. parseAnnotationTypeDeclarationRest(java.lang.String docComment, Java.Modifier[] modifiers, Parser.InterfaceDeclarationContext context)
AnnotationTypeDeclarationRest := Identifier AnnotationTypeBodyJava.NamedClassDeclaration
Parser. parseClassDeclarationRest(java.lang.String docComment, Java.Modifier[] modifiers, Parser.ClassDeclarationContext context)
ClassDeclarationRest := Identifier [ typeParameters ] [ 'extends' ReferenceType ] [ 'implements' ReferenceTypeList ] ClassBodyJava.ConstructorDeclarator
Parser. parseConstructorDeclarator(java.lang.String docComment, Java.Modifier[] modifiers)
ConstructorDeclarator := Identifier FormalParameters [ 'throws' ReferenceTypeList ] '{' [ 'this' Arguments ';' | 'super' Arguments ';' | Primary '.' 'super' Arguments ';' ] BlockStatements '}'Java.EnumDeclaration
Parser. parseEnumDeclarationRest(java.lang.String docComment, Java.Modifier[] modifiers, Parser.ClassDeclarationContext context)
EnumDeclarationRest := Identifier [ 'implements' ReferenceTypeList ] EnumBody(package private) Java.AbstractCompilationUnit.ImportDeclaration[]
ScriptEvaluator. parseImports(Parser parser)
Java.InterfaceDeclaration
Parser. parseInterfaceDeclarationRest(java.lang.String docComment, Java.Modifier[] modifiers, Parser.InterfaceDeclarationContext context)
InterfaceDeclarationRest := Identifier [ typeParameters ] [ 'extends' ReferenceTypeList ] InterfaceBodyJava.MethodDeclarator
Parser. parseMethodDeclarationRest(java.lang.String docComment, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters, Java.Type type, java.lang.String name, boolean allowDefaultClause, Parser.MethodDeclarationContext context)
MethodDeclarationRest := FormalParameters { '[' ']' } [ 'throws' ReferenceTypeList ] [ 'default' expression ] ( ';' | MethodBody )Java.MethodDeclarator
Parser. parseMethodDeclarationRest(java.lang.String docComment, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters, Java.Type type, java.lang.String name, boolean allowDefaultClause, Parser.MethodDeclarationContext context)
MethodDeclarationRest := FormalParameters { '[' ']' } [ 'throws' ReferenceTypeList ] [ 'default' expression ] ( ';' | MethodBody )Java.PackageDeclaration
Parser. parsePackageDeclarationRest(java.lang.String docComment, Java.Modifier[] modifiers)
PackageDeclaration := { PackageModifier } 'package' identifier { '.' identifier} ';'private Java.PackageMemberTypeDeclaration
Parser. parsePackageMemberTypeDeclarationRest(java.lang.String docComment, Java.Modifier[] modifiers)
PackageMemberTypeDeclarationRest := 'class' ClassDeclarationRest | 'enum' EnumDeclarationRest | 'interface' InterfaceDeclarationRest '@' 'interface' AnnotationTypeDeclarationRestprivate static java.io.File[]
AntCompilerAdapter. pathToFiles(org.apache.tools.ant.types.Path path)
Converts aPath
into an array ofFile
s.private static java.io.File[]
AntCompilerAdapter. pathToFiles(org.apache.tools.ant.types.Path path, java.io.File[] defaultValue)
Converts aPath
into an array ofFile
s.int
UnicodeUnescapeReader. read(char[] cbuf, int off, int len)
OverridesFilterReader.read(char[], int, int)
.private CodeContext
UnitCompiler. replaceCodeContext(CodeContext newCodeContext)
void
JavaSourceIClassLoader. setCharacterEncoding(java.lang.String sourceCharsetName)
Deprecated.UseJavaSourceIClassLoader.setSourceCharset(Charset)
insteadvoid
ClassBodyEvaluator. setCompileErrorHandler(ErrorHandler compileErrorHandler)
void
ExpressionEvaluator. setCompileErrorHandler(ErrorHandler compileErrorHandler)
void
JavaSourceClassLoader. setCompileErrorHandler(ErrorHandler compileErrorHandler)
void
JavaSourceIClassLoader. setCompileErrorHandler(ErrorHandler compileErrorHandler)
void
ScriptEvaluator. setCompileErrorHandler(ErrorHandler compileErrorHandler)
void
SimpleCompiler. setCompileErrorHandler(ErrorHandler compileErrorHandler)
void
UnitCompiler. setCompileErrorHandler(ErrorHandler compileErrorHandler)
By default,CompileException
s are thrown on compile errors, but an application my install its own (thread-local)ErrorHandler
.void
ClassBodyEvaluator. setExtendedClass(java.lang.Class<?> extendedType)
void
ExpressionEvaluator. setExtendedClass(java.lang.Class<?> extendedType)
void
ScriptEvaluator. setExtendedClass(java.lang.Class<?> extendedType)
void
ClassBodyEvaluator. setExtendedType(java.lang.Class<?> extendedClass)
void
ScriptEvaluator. setMethodName(java.lang.String methodName)
void
Java.CompilationUnit. setPackageDeclaration(Java.PackageDeclaration packageDeclaration)
Sets the package declaration of this compilation unit.void
ClassBodyEvaluator. setParentClassLoader(java.lang.ClassLoader parentClassLoader)
void
ExpressionEvaluator. setParentClassLoader(java.lang.ClassLoader parentClassLoader)
void
ScriptEvaluator. setParentClassLoader(java.lang.ClassLoader parentClassLoader)
void
SimpleCompiler. setParentClassLoader(java.lang.ClassLoader parentClassLoader)
void
ScriptEvaluator. setReturnType(java.lang.Class<?> returnType)
void
ClassBodyEvaluator. setWarningHandler(WarningHandler warningHandler)
void
ExpressionEvaluator. setWarningHandler(WarningHandler warningHandler)
void
JavaSourceClassLoader. setWarningHandler(WarningHandler warningHandler)
void
JavaSourceIClassLoader. setWarningHandler(WarningHandler warningHandler)
void
Parser. setWarningHandler(WarningHandler warningHandler)
By default, warnings are discarded, but an application my install aWarningHandler
.void
ScriptEvaluator. setWarningHandler(WarningHandler warningHandler)
void
SimpleCompiler. setWarningHandler(WarningHandler warningHandler)
void
TokenStream. setWarningHandler(WarningHandler warningHandler)
By default, warnings are discarded, but an application my install aWarningHandler
.void
TokenStreamImpl. setWarningHandler(WarningHandler warningHandler)
void
UnitCompiler. setWarningHandler(WarningHandler warningHandler)
By default, warnings are discarded, but an application my install a customWarningHandler
.private boolean
UnitCompiler. tryAssignmentConversion(Java.Locatable locatable, IType sourceType, IType targetType, java.lang.Object constantValue)
private boolean
UnitCompiler. tryCastConversion(Java.Locatable locatable, IType sourceType, IType targetType, java.lang.Object constantValue)
private boolean
UnitCompiler. tryConstantAssignmentConversion(Java.Locatable locatable, java.lang.Object constantValue, IType targetType)
Checks if "constant assignment conversion" (JLS7 5.2, paragraph 1) is possible.private static java.lang.String
UnitCompiler. unescape(java.lang.String s, Location location)
Decodes any escape sequences like\n
, or\377
, but not\uxxxx
.private void
Unparser. unparseTypeParameters(Java.TypeParameter[] typeParameters)
private ClassFile.StackMapTableAttribute.VerificationTypeInfo
UnitCompiler. verificationTypeInfo(IType type)
private void
Parser. warning(java.lang.String handle, java.lang.String message, Location location)
Issues a warning with the given message and location and returns.private void
TokenStreamImpl. warning(java.lang.String handle, java.lang.String message, Location location)
Issues a warning with the given message and location and returns.private void
UnitCompiler. warning(java.lang.String handle, java.lang.String message, Location location)
Issues a warning with the given message an location an returns.Constructor parameters in org.codehaus.janino with annotations of type Nullable Constructor Description AbstractClassDeclaration(Location location, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters)
AbstractCompilationUnit(java.lang.String fileName, Java.AbstractCompilationUnit.ImportDeclaration[] importDeclarations)
AbstractTypeDeclaration(Location location, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters)
AssertStatement(Location location, Java.Rvalue expression1, Java.Rvalue expression2)
BreakStatement(Location location, java.lang.String label)
CachingJavaSourceClassLoader(java.lang.ClassLoader parentClassLoader, java.io.File[] sourcePath, java.lang.String characterEncoding, java.io.File cacheDirectory)
CachingJavaSourceClassLoader(java.lang.ClassLoader parentClassLoader, java.io.File[] sourcePath, java.lang.String characterEncoding, java.io.File cacheDirectory)
CachingJavaSourceClassLoader(java.lang.ClassLoader parentClassLoader, ResourceFinder sourceFinder, java.lang.String characterEncoding, ResourceFinder classFileCacheResourceFinder, ResourceCreator classFileCacheResourceCreator)
Notice that this class is thread-safe if and only if the classFileCacheResourceCreator stores its data atomically, i.e.ClassBodyEvaluator(java.lang.String fileName, java.io.InputStream is)
Equivalent toClassBodyEvaluator(java.lang.String fileName, java.io.Reader reader)
Equivalent toClassBodyEvaluator(Scanner scanner, java.lang.Class<?> extendedType, java.lang.Class<?>[] implementedTypes, java.lang.ClassLoader parentClassLoader)
Equivalent toClassBodyEvaluator(Scanner scanner, java.lang.Class<?> extendedType, java.lang.Class<?>[] implementedTypes, java.lang.ClassLoader parentClassLoader)
Equivalent toClassBodyEvaluator(Scanner scanner, java.lang.ClassLoader parentClassLoader)
Equivalent toClassBodyEvaluator(Scanner scanner, java.lang.String className, java.lang.Class<?> extendedType, java.lang.Class<?>[] implementedTypes, java.lang.ClassLoader parentClassLoader)
Equivalent toClassBodyEvaluator(Scanner scanner, java.lang.String className, java.lang.Class<?> extendedType, java.lang.Class<?>[] implementedTypes, java.lang.ClassLoader parentClassLoader)
Equivalent toClassInstanceCreationReference(Location location, Java.Type type, Java.TypeArgument[] typeArguments)
CompilationUnit(java.lang.String fileName)
CompilationUnit(java.lang.String fileName, Java.AbstractCompilationUnit.ImportDeclaration[] importDeclarations)
Compiler(java.io.File[] sourcePath, java.io.File[] classPath, java.io.File[] extDirs, java.io.File[] bootClassPath, java.io.File destinationDirectory, java.lang.String characterEncoding, boolean verbose, boolean debugSource, boolean debugLines, boolean debugVars, StringPattern[] warningHandlePatterns, boolean rebuild)
Deprecated.UseCompiler()
and the various configuration setters insteadCompiler(java.io.File[] sourcePath, java.io.File[] classPath, java.io.File[] extDirs, java.io.File[] bootClassPath, java.io.File destinationDirectory, java.lang.String characterEncoding, boolean verbose, boolean debugSource, boolean debugLines, boolean debugVars, StringPattern[] warningHandlePatterns, boolean rebuild)
Deprecated.UseCompiler()
and the various configuration setters insteadCompiler(java.io.File[] sourcePath, java.io.File[] classPath, java.io.File[] extDirs, java.io.File[] bootClassPath, java.io.File destinationDirectory, java.lang.String characterEncoding, boolean verbose, boolean debugSource, boolean debugLines, boolean debugVars, StringPattern[] warningHandlePatterns, boolean rebuild)
Deprecated.UseCompiler()
and the various configuration setters insteadCompiler(java.io.File[] sourcePath, java.io.File[] classPath, java.io.File[] extDirs, java.io.File[] bootClassPath, java.io.File destinationDirectory, java.lang.String characterEncoding, boolean verbose, boolean debugSource, boolean debugLines, boolean debugVars, StringPattern[] warningHandlePatterns, boolean rebuild)
Deprecated.UseCompiler()
and the various configuration setters insteadCompilerIClassLoader(ResourceFinder sourceFinder, ResourceFinder classFileFinder, IClassLoader parentIClassLoader)
ConstructorDeclarator(Location location, java.lang.String docComment, Java.Modifier[] modifiers, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, Java.ConstructorInvocation constructorInvocation, java.util.List<? extends Java.BlockStatement> statements)
ConstructorDeclarator(Location location, java.lang.String docComment, Java.Modifier[] modifiers, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, Java.ConstructorInvocation constructorInvocation, java.util.List<? extends Java.BlockStatement> statements)
ContinueStatement(Location location, java.lang.String label)
EnumConstant(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.Rvalue[] arguments)
EnumConstant(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.Rvalue[] arguments)
ExportsModuleDirective(Location location, java.lang.String[] packageName, java.lang.String[][] toModuleNames)
ExpressionEvaluator(java.lang.String expression, java.lang.Class<?> expressionType, java.lang.String[] parameterNames, java.lang.Class<?>[] parameterTypes, java.lang.Class<?>[] thrownExceptions, java.lang.Class<?> extendedClass, java.lang.Class<?>[] implementedTypes, java.lang.ClassLoader parentClassLoader)
Equivalent toExpressionEvaluator(java.lang.String expression, java.lang.Class<?> expressionType, java.lang.String[] parameterNames, java.lang.Class<?>[] parameterTypes, java.lang.Class<?>[] thrownExceptions, java.lang.ClassLoader parentClassLoader)
Equivalent toExpressionEvaluator(Scanner scanner, java.lang.String className, java.lang.Class<?> extendedType, java.lang.Class<?>[] implementedTypes, boolean staticMethod, java.lang.Class<?> expressionType, java.lang.String methodName, java.lang.String[] parameterNames, java.lang.Class<?>[] parameterTypes, java.lang.Class<?>[] thrownExceptions, java.lang.ClassLoader parentClassLoader)
Creates an expression evaluator with the full configurability.ExpressionEvaluator(Scanner scanner, java.lang.String className, java.lang.Class<?> extendedType, java.lang.Class<?>[] implementedTypes, boolean staticMethod, java.lang.Class<?> expressionType, java.lang.String methodName, java.lang.String[] parameterNames, java.lang.Class<?>[] parameterTypes, java.lang.Class<?>[] thrownExceptions, java.lang.ClassLoader parentClassLoader)
Creates an expression evaluator with the full configurability.FieldDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, Java.Type type, Java.VariableDeclarator[] variableDeclarators)
ForStatement(Location location, Java.BlockStatement init, Java.Rvalue condition, Java.Rvalue[] update, Java.BlockStatement body)
ForStatement(Location location, Java.BlockStatement init, Java.Rvalue condition, Java.Rvalue[] update, Java.BlockStatement body)
ForStatement(Location location, Java.BlockStatement init, Java.Rvalue condition, Java.Rvalue[] update, Java.BlockStatement body)
FunctionDeclarator(Location location, java.lang.String docComment, Java.Modifier[] modifiers, Java.Type type, java.lang.String name, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, java.util.List<? extends Java.BlockStatement> statements)
FunctionDeclarator(Location location, java.lang.String docComment, Java.Modifier[] modifiers, Java.Type type, java.lang.String name, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, java.util.List<? extends Java.BlockStatement> statements)
IClassLoader(IClassLoader parentIClassLoader)
IfStatement(Location location, Java.Rvalue condition, Java.BlockStatement thenStatement, Java.BlockStatement elseStatement)
InterfaceDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)
InterfaceDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)
JavaSourceClassLoader(java.lang.ClassLoader parentClassLoader, java.io.File[] sourcePath, java.lang.String characterEncoding)
Sets up aJavaSourceClassLoader
that finds Java source code in a file that resides in either of the directories specified by the given source path.JavaSourceClassLoader(java.lang.ClassLoader parentClassLoader, java.io.File[] sourcePath, java.lang.String characterEncoding)
Sets up aJavaSourceClassLoader
that finds Java source code in a file that resides in either of the directories specified by the given source path.JavaSourceClassLoader(java.lang.ClassLoader parentClassLoader, ResourceFinder sourceFinder, java.lang.String characterEncoding)
Constructs aJavaSourceClassLoader
that finds Java source code through a givenResourceFinder
.JavaSourceIClassLoader(ResourceFinder sourceFinder, java.lang.String sourceCharsetName, IClassLoader parentIClassLoader)
JavaSourceIClassLoader(ResourceFinder sourceFinder, java.lang.String sourceCharsetName, IClassLoader parentIClassLoader)
LocalClassDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
LocalClassDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
LocalClassDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
LocalScope(CodeContext.LocalScope parent, short startingLocalSlot, StackMap startingStackMap)
LocalVariableSlot(java.lang.String name, short slotNumber, IType type)
LocalVariableSlot(java.lang.String name, short slotNumber, IType type)
MemberAnnotationTypeDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name)
MemberClassDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
MemberClassDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
MemberClassDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
MemberEnumDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.Type[] implementedTypes)
MemberInterfaceDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)
MemberInterfaceDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)
MethodDeclarator(Location location, java.lang.String docComment, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters, Java.Type type, java.lang.String name, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, Java.ElementValue defaultValue, java.util.List<? extends Java.BlockStatement> statements)
MethodDeclarator(Location location, java.lang.String docComment, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters, Java.Type type, java.lang.String name, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, Java.ElementValue defaultValue, java.util.List<? extends Java.BlockStatement> statements)
MethodDeclarator(Location location, java.lang.String docComment, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters, Java.Type type, java.lang.String name, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, Java.ElementValue defaultValue, java.util.List<? extends Java.BlockStatement> statements)
MethodDeclarator(Location location, java.lang.String docComment, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters, Java.Type type, java.lang.String name, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, Java.ElementValue defaultValue, java.util.List<? extends Java.BlockStatement> statements)
MethodInvocation(Location location, Java.Atom target, java.lang.String methodName, Java.Rvalue[] arguments)
ModularCompilationUnit(java.lang.String fileName, Java.AbstractCompilationUnit.ImportDeclaration[] importDeclarations, Java.ModuleDeclaration moduleDeclaration)
NamedClassDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
NamedClassDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
NamedClassDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
NewAnonymousClassInstance(Location location, Java.Rvalue qualification, Java.AnonymousClassDeclaration anonymousClassDeclaration, Java.Rvalue[] arguments)
NewClassInstance(Location location, Java.Rvalue qualification, IType iType, Java.Rvalue[] arguments)
NewClassInstance(Location location, Java.Rvalue qualification, Java.Type type, Java.Rvalue[] arguments)
NewInitializedArray(Location location, Java.ArrayType arrayType, Java.ArrayInitializer arrayInitializer)
OpensModuleDirective(Location location, java.lang.String[] packageName, java.lang.String[][] toModuleNames)
PackageMemberAnnotationTypeDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name)
PackageMemberClassDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
PackageMemberClassDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
PackageMemberClassDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
PackageMemberEnumDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.Type[] implementedTypes)
PackageMemberInterfaceDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)
PackageMemberInterfaceDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)
ReferenceType(Location location, Java.Annotation[] annotations, java.lang.String[] identifiers, Java.TypeArgument[] typeArguments)
ResourceFinderIClassLoader(ResourceFinder resourceFinder, IClassLoader parentIClassLoader)
ReturnStatement(Location location, Java.Rvalue returnValue)
Scanner(java.io.File file, java.lang.String encoding)
Deprecated.This method is deprecated because it leaves the input file openScanner(java.lang.String fileName, java.io.InputStream is)
Sets up a scanner that reads tokens from the givenInputStream
in the platform default encoding.Scanner(java.lang.String fileName, java.io.InputStream is, java.lang.String encoding)
Sets up a scanner that reads tokens from the givenInputStream
with the given encoding (null
means platform default encoding).Scanner(java.lang.String fileName, java.io.InputStream is, java.lang.String encoding)
Sets up a scanner that reads tokens from the givenInputStream
with the given encoding (null
means platform default encoding).Scanner(java.lang.String fileName, java.io.Reader in)
Sets up a scanner that reads tokens from the givenReader
.Scanner(java.lang.String fileName, java.io.Reader in, int initialLineNumber, int initialColumnNumber)
Creates aScanner
that counts lines and columns from non-default initial values.ScriptEvaluator(java.lang.String fileName, java.io.InputStream is, java.lang.Class<?> returnType, java.lang.String[] parameterNames, java.lang.Class<?>[] parameterTypes, java.lang.Class<?>[] thrownExceptions, java.lang.ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(java.lang.String fileName, java.io.InputStream is, java.lang.Class<?> returnType, java.lang.String[] parameterNames, java.lang.Class<?>[] parameterTypes, java.lang.Class<?>[] thrownExceptions, java.lang.ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(java.lang.String fileName, java.io.Reader reader, java.lang.Class<?> returnType, java.lang.String[] parameterNames, java.lang.Class<?>[] parameterTypes, java.lang.Class<?>[] thrownExceptions, java.lang.ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(java.lang.String fileName, java.io.Reader reader, java.lang.Class<?> returnType, java.lang.String[] parameterNames, java.lang.Class<?>[] parameterTypes, java.lang.Class<?>[] thrownExceptions, java.lang.ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(Scanner scanner, java.lang.Class<?> extendedType, java.lang.Class<?>[] implementedTypes, java.lang.Class<?> returnType, java.lang.String[] parameterNames, java.lang.Class<?>[] parameterTypes, java.lang.Class<?>[] thrownExceptions, java.lang.ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(Scanner scanner, java.lang.Class<?> extendedType, java.lang.Class<?>[] implementedTypes, java.lang.Class<?> returnType, java.lang.String[] parameterNames, java.lang.Class<?>[] parameterTypes, java.lang.Class<?>[] thrownExceptions, java.lang.ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(Scanner scanner, java.lang.Class<?> returnType, java.lang.String[] parameterNames, java.lang.Class<?>[] parameterTypes, java.lang.Class<?>[] thrownExceptions, java.lang.ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(Scanner scanner, java.lang.String className, java.lang.Class<?> extendedType, java.lang.Class<?>[] implementedTypes, boolean staticMethod, java.lang.Class<?> returnType, java.lang.String methodName, java.lang.String[] parameterNames, java.lang.Class<?>[] parameterTypes, java.lang.Class<?>[] thrownExceptions, java.lang.ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(Scanner scanner, java.lang.String className, java.lang.Class<?> extendedType, java.lang.Class<?>[] implementedTypes, boolean staticMethod, java.lang.Class<?> returnType, java.lang.String methodName, java.lang.String[] parameterNames, java.lang.Class<?>[] parameterTypes, java.lang.Class<?>[] thrownExceptions, java.lang.ClassLoader parentClassLoader)
Equivalent toSimpleCompiler(java.lang.String fileName, java.io.InputStream is)
Equivalent toSimpleCompiler(java.lang.String fileName, java.io.Reader in)
Equivalent toSimpleCompiler(Scanner scanner, java.lang.ClassLoader parentClassLoader)
Equivalent toSuperclassFieldAccessExpression(Location location, Java.Type qualification, java.lang.String fieldName)
SuperConstructorInvocation(Location location, Java.Rvalue qualification, Java.Rvalue[] arguments)
Token(java.lang.String fileName, int lineNumber, int columnNumber, TokenType type, java.lang.String value)
TryStatement(Location location, java.util.List<Java.TryStatement.Resource> resources, Java.BlockStatement body, java.util.List<Java.CatchClause> catchClauses, Java.Block finallY)
TypeParameter(java.lang.String name, Java.ReferenceType[] bound)
VariableDeclarator(Location location, java.lang.String name, int brackets, Java.ArrayInitializerOrRvalue initializer)
Wildcard(int bounds, Java.ReferenceType referenceType)
-
Uses of Nullable in org.codehaus.janino.util
Fields in org.codehaus.janino.util with annotations of type Nullable Modifier and Type Field Description private java.util.List<java.lang.StringBuilder>
AutoIndentWriter. tabulatorBuffer
Iff non-null, then we are in "tab mode".Method parameters in org.codehaus.janino.util with annotations of type Nullable Modifier and Type Method Description ClassFile.FieldInfo
ClassFile. addFieldInfo(short accessFlags, java.lang.String fieldName, java.lang.String fieldTypeFd, java.lang.Object constantValue)
Creates aClassFile.FieldInfo
and adds it to this class.private static <T> T
DeepCopier. assertNotNull(T subject)
Java.ArrayInitializer
DeepCopier. copyOptionalArrayInitializer(Java.ArrayInitializer subject)
Java.ArrayInitializerOrRvalue
DeepCopier. copyOptionalArrayInitializerOrRvalue(Java.ArrayInitializerOrRvalue subject)
Java.ArrayType
DeepCopier. copyOptionalArrayType(Java.ArrayType subject)
Java.Atom
DeepCopier. copyOptionalAtom(Java.Atom subject)
Java.Block
DeepCopier. copyOptionalBlock(Java.Block subject)
Java.BlockStatement
DeepCopier. copyOptionalBlockStatement(Java.BlockStatement subject)
Java.ConstructorInvocation
DeepCopier. copyOptionalConstructorInvocation(Java.ConstructorInvocation subject)
Java.ElementValue
DeepCopier. copyOptionalElementValue(Java.ElementValue subject)
Java.PackageDeclaration
DeepCopier. copyOptionalPackageDeclaration(Java.PackageDeclaration subject)
Java.ReferenceType
DeepCopier. copyOptionalReferenceType(Java.ReferenceType subject)
Java.ReferenceType[]
DeepCopier. copyOptionalReferenceTypes(Java.ReferenceType[] subject)
Java.Rvalue
DeepCopier. copyOptionalRvalue(Java.Rvalue subject)
Java.Rvalue[]
DeepCopier. copyOptionalRvalues(Java.Rvalue[] subject)
java.util.List<Java.BlockStatement>
DeepCopier. copyOptionalStatements(java.util.Collection<? extends Java.BlockStatement> subject)
Java.Type
DeepCopier. copyOptionalType(Java.Type subject)
Java.TypeArgument[]
DeepCopier. copyOptionalTypeArguments(Java.TypeArgument[] subject)
Java.TypeParameter[]
DeepCopier. copyOptionalTypeParameters(Java.TypeParameter[] subject)
boolean
ClassFile.ConstantClassInfo. equals(java.lang.Object o)
boolean
ClassFile.ConstantDoubleInfo. equals(java.lang.Object o)
boolean
ClassFile.ConstantFieldrefInfo. equals(java.lang.Object o)
boolean
ClassFile.ConstantFloatInfo. equals(java.lang.Object o)
boolean
ClassFile.ConstantIntegerInfo. equals(java.lang.Object o)
boolean
ClassFile.ConstantInterfaceMethodrefInfo. equals(java.lang.Object o)
boolean
ClassFile.ConstantInvokeDynamicInfo. equals(java.lang.Object o)
boolean
ClassFile.ConstantLongInfo. equals(java.lang.Object o)
boolean
ClassFile.ConstantMethodHandleInfo. equals(java.lang.Object o)
boolean
ClassFile.ConstantMethodrefInfo. equals(java.lang.Object o)
boolean
ClassFile.ConstantMethodTypeInfo. equals(java.lang.Object o)
boolean
ClassFile.ConstantNameAndTypeInfo. equals(java.lang.Object o)
boolean
ClassFile.ConstantStringInfo. equals(java.lang.Object o)
boolean
ClassFile.ConstantUtf8Info. equals(java.lang.Object o)
boolean
ClassFile.StackMapTableAttribute.ObjectVariableInfo. equals(java.lang.Object obj)
boolean
ClassFile.StackMapTableAttribute.UninitializedVariableInfo. equals(java.lang.Object obj)
void
AutoIndentWriter. write(char[] cbuf, int off, int len)
void
AutoIndentWriter. write(java.lang.String str, int off, int len)
Constructor parameters in org.codehaus.janino.util with annotations of type Nullable Constructor Description ClassFile(short accessFlags, java.lang.String thisClassFd, java.lang.String superclassFd, java.lang.String[] interfaceFds)
Constructs a class with no fields and methods. -
Uses of Nullable in org.codehaus.janino.util.signature
Fields in org.codehaus.janino.util.signature with annotations of type Nullable Modifier and Type Field Description SignatureParser.FieldTypeSignature
SignatureParser.FormalTypeParameter. classBound
The class that this formal type parameter (optionally) extends.SignatureParser.FieldTypeSignature
SignatureParser.TypeArgument. fieldTypeSignature
Must be forSignatureParser.TypeArgument.Mode.ANY
, non-null
otherwise.Constructor parameters in org.codehaus.janino.util.signature with annotations of type Nullable Constructor Description FormalTypeParameter(java.lang.String identifier, SignatureParser.FieldTypeSignature classBound, java.util.List<SignatureParser.FieldTypeSignature> interfaceBounds)
TypeArgument(SignatureParser.TypeArgument.Mode mode, SignatureParser.FieldTypeSignature fieldTypeSignature)
-