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. -
-
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 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)
.static 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 Object
IExpressionEvaluator. evaluate(int idx, Object... arguments)
Null
arguments is equivalent withnew Object[0]
.Object
IExpressionEvaluator. evaluate(Object... arguments)
Evaluates the expression with concrete parameter values.Object
IScriptEvaluator. evaluate(int idx, Object[] arguments)
Same asIScriptEvaluator.evaluate(Object[])
, but for multiple scripts.Object
IScriptEvaluator. evaluate(Object[] arguments)
Calls the script with concrete parameter values.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(InputStream is, String encoding)
void
Cookable. cook(String fileName, InputStream is)
void
Cookable. cook(String fileName, InputStream is, String encoding)
void
Cookable. cook(String fileName, InputStream is, String encoding)
abstract void
Cookable. cook(String fileName, Reader reader)
void
Cookable. cook(String fileName, String s)
void
ICookable. cook(InputStream is, String encoding)
Reads, scans, parses and compiles Java tokens from the givenInputStream
with the givenencoding
.void
ICookable. cook(String fileName, InputStream is)
Reads, scans, parses and compiles Java tokens from the givenInputStream
, encoded in the "platform default encoding".void
ICookable. cook(String fileName, InputStream is, String encoding)
Reads, scans, parses and compiles Java tokens from the givenInputStream
with the givenencoding
.void
ICookable. cook(String fileName, InputStream is, String encoding)
Reads, scans, parses and compiles Java tokens from the givenInputStream
with the givenencoding
.void
ICookable. cook(String fileName, Reader r)
Reads, scans, parses and compiles Java tokens from the givenReader
.void
ICookable. cook(String fileName, String s)
Reads, scans, parses and compiles Java tokens from the givenString
.void
Cookable. cookFile(File file, String encoding)
void
Cookable. cookFile(String fileName, String encoding)
void
ICookable. cookFile(File file, String encoding)
Reads, scans, parses and compiles Java tokens from the givenFile
with the givenencoding
.void
ICookable. cookFile(String fileName, String encoding)
Reads, scans, parses and compiles Java tokens from the named file with the given encoding.Object
IExpressionEvaluator. evaluate(int idx, Object... arguments)
Null
arguments is equivalent withnew Object[0]
.Object
IExpressionEvaluator. evaluate(Object... arguments)
Evaluates the expression with concrete parameter values.Object
IScriptEvaluator. evaluate(int idx, Object[] arguments)
Same asIScriptEvaluator.evaluate(Object[])
, but for multiple scripts.Object
IScriptEvaluator. evaluate(Object[] arguments)
Calls the script with concrete parameter values.void
ErrorHandler. handleError(String message, Location location)
May or may not choose to throw aCompileException
.void
WarningHandler. handleWarning(String handle, String message, Location location)
May or may not choose to throw aCompileException
.void
WarningHandler. handleWarning(String handle, String message, Location location)
May or may not choose to throw aCompileException
.void
AbstractCompiler. setCharacterEncoding(String characterEncoding)
void
ICompiler. setCharacterEncoding(String characterEncoding)
Deprecated.UseICompiler.setSourceCharset(Charset)
insteadvoid
AbstractCompiler. setCompileErrorHandler(ErrorHandler compileErrorHandler)
void
IClassBodyEvaluator. setCompileErrorHandler(ErrorHandler compileErrorHandler)
By default,CompileException
s are thrown on compile errors, but an application my install its ownErrorHandler
.void
ICompiler. setCompileErrorHandler(ErrorHandler errorHandler)
By default,CompileException
s are thrown on compile errors, but an application my install its ownErrorHandler
.void
IExpressionEvaluator. setCompileErrorHandler(ErrorHandler compileErrorHandler)
By default,CompileException
s are thrown on compile errors, but an application my install its ownErrorHandler
.void
IScriptEvaluator. setCompileErrorHandler(ErrorHandler compileErrorHandler)
By default,CompileException
s are thrown on compile errors, but an application my install its ownErrorHandler
.void
ISimpleCompiler. setCompileErrorHandler(ErrorHandler compileErrorHandler)
By default,CompileException
s are thrown on compile errors, but an application my install its ownErrorHandler
.void
AbstractCompiler. setDestinationDirectory(File destinationDirectory, boolean rebuild)
void
ICompiler. setDestinationDirectory(File destinationDirectory, boolean rebuild)
Equivalent of -d and-rebuild
.void
IClassBodyEvaluator. setExtendedClass(Class<?> extendedClass)
Sets a particular superclass that the generated class will extend.void
IClassBodyEvaluator. setExtendedType(Class<?> extendedClass)
Deprecated.UseIClassBodyEvaluator.setExtendedClass(Class)
insteadvoid
IScriptEvaluator. setMethodName(String methodName)
Defines the name of the generated method.void
IClassBodyEvaluator. setParentClassLoader(ClassLoader parentClassLoader)
The "parent class loader" is used to load referenced classes.void
IExpressionEvaluator. setParentClassLoader(ClassLoader parentClassLoader)
The "parent class loader" is used to load referenced classes.void
IScriptEvaluator. setParentClassLoader(ClassLoader parentClassLoader)
The "parent class loader" is used to load referenced classes.void
ISimpleCompiler. setParentClassLoader(ClassLoader parentClassLoader)
The "parent class loader" is used to load referenced classes.void
AbstractJavaSourceClassLoader. setProtectionDomainFactory(AbstractJavaSourceClassLoader.ProtectionDomainFactory protectionDomainFactory)
void
AbstractJavaSourceClassLoader. setSourceFileCharacterEncoding(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
.Constructor parameters in org.codehaus.commons.compiler with annotations of type Nullable Constructor Description CompileException(String message, Location location)
An infix"NYI"
in the message string indicates that the compiler has a known limitation here.CompileException(String message, Location location, Throwable cause)
An infix"NYI"
in the message string indicates that the compiler has a known limitation here.InternalCompilerException(String message)
InternalCompilerException(String message, Throwable t)
LocatedException(String message, Location location)
LocatedException(String message, Location location, Throwable cause)
LocatedException(String message, Location location, Throwable cause)
Location(String fileName, int lineNumber, int columnNumber)
-
Uses of Nullable in org.codehaus.commons.compiler.jdk
Methods in org.codehaus.commons.compiler.jdk with annotations of type Nullable Modifier and Type Method Description Object
ExpressionEvaluator. evaluate(int idx, Object... arguments)
Object
ExpressionEvaluator. evaluate(Object... arguments)
Object
ScriptEvaluator. evaluate(int idx, Object[] arguments)
Object
ScriptEvaluator. evaluate(Object[] arguments)
Method parameters in org.codehaus.commons.compiler.jdk with annotations of type Nullable Modifier and Type Method Description protected void
SimpleCompiler. addOffset(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)
).void
ClassBodyEvaluator. cook(String fileName, Reader r)
protected void
ClassBodyEvaluator. cook(String fileName, String[] imports, Reader r)
void
ExpressionEvaluator. cook(String fileName, Reader reader)
void
ScriptEvaluator. cook(String fileName, Reader reader)
void
SimpleCompiler. cook(String fileName, Reader r)
Object
ExpressionEvaluator. evaluate(int idx, Object... arguments)
Object
ExpressionEvaluator. evaluate(Object... arguments)
Object
ScriptEvaluator. evaluate(int idx, Object[] arguments)
Object
ScriptEvaluator. evaluate(Object[] arguments)
protected Reader
ClassBodyEvaluator. newFileName(String fileName, 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(Class<?> extendedType)
void
ExpressionEvaluator. setExtendedClass(Class<?> extendedType)
void
ScriptEvaluator. setExtendedClass(Class<?> extendedClass)
void
ClassBodyEvaluator. setExtendedType(Class<?> extendedClass)
Deprecated.UseClassBodyEvaluator.setExtendedClass(Class)
insteadvoid
ScriptEvaluator. setMethodName(String methodName)
void
ClassBodyEvaluator. setParentClassLoader(ClassLoader parentClassLoader)
void
ExpressionEvaluator. setParentClassLoader(ClassLoader parentClassLoader)
void
ScriptEvaluator. setParentClassLoader(ClassLoader parentClassLoader)
void
SimpleCompiler. setParentClassLoader(ClassLoader parentClassLoader)
void
SimpleCompiler. setParentClassLoader(ClassLoader parentClassLoader, 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(String expression, Class<?> expressionType, String[] parameterNames, Class<?>[] parameterTypes, Class<?>[] thrownExceptions, Class<?> extendedType, Class<?>[] implementedTypes, ClassLoader parentClassLoader)
Equivalent toExpressionEvaluator(String expression, Class<?> expressionType, String[] parameterNames, Class<?>[] parameterTypes, Class<?>[] thrownExceptions, Class<?> extendedType, Class<?>[] implementedTypes, ClassLoader parentClassLoader)
Equivalent toExpressionEvaluator(String expression, Class<?> expressionType, String[] parameterNames, Class<?>[] parameterTypes, Class<?>[] thrownExceptions, ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(String fileName, InputStream is, Class<?> returnType, String[] parameterNames, Class<?>[] parameterTypes, Class<?>[] thrownExceptions, ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(String fileName, InputStream is, Class<?> returnType, String[] parameterNames, Class<?>[] parameterTypes, Class<?>[] thrownExceptions, ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(String fileName, Reader reader, Class<?> returnType, String[] parameterNames, Class<?>[] parameterTypes, Class<?>[] thrownExceptions, ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(String fileName, Reader reader, Class<?> returnType, String[] parameterNames, Class<?>[] parameterTypes, Class<?>[] thrownExceptions, 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 static Map<String,URL>
ClassLoaders. getSubresources(ClassLoader classLoader, String name, boolean includeDirectories)
Equivalent withClassLoaders.getSubresources(ClassLoader, String, boolean, boolean)
with the recurse parameter set totrue
.static Map<String,URL>
ClassLoaders. getSubresources(ClassLoader classLoader, 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.lang
Method parameters in org.codehaus.commons.compiler.lang with annotations of type Nullable Modifier and Type Method Description static ClassLoader
ClassLoaders. getsResourceAsStream(ResourceFinder finder, ClassLoader parent)
Creates and returns aClassLoader
that implementsClassLoader.getResourceAsStream(String)
via aResourceFinder
. -
Uses of Nullable in org.codehaus.commons.compiler.util
Methods in org.codehaus.commons.compiler.util with annotations of type Nullable Modifier and Type Method Description static String
SystemProperties. getClassProperty(Class<?> targetClass, String classPropertyName)
static String
SystemProperties. getClassProperty(Class<?> targetClass, String classPropertyName, String defaultValue)
Gets the value of a "class property".static File[]
StringUtil. parseOptionalPath(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 Class<?>
ResourceFinderClassLoader. findClass(String className)
static String
SystemProperties. getClassProperty(Class<?> targetClass, String classPropertyName, String defaultValue)
Gets the value of a "class property".static File[]
StringUtil. parseOptionalPath(String s)
static int
Numbers. parseUnsignedInt(String s, int radix)
Counterpart ofInteger.parseInt(String, int)
for parsing unsigned integers.static long
Numbers. parseUnsignedLong(String s, int radix)
Counterpart ofLong.parseLong(String, int)
for parsing unsigned integers.void
Benchmark. report(String title, Object o)
Reports thetitle
, a colon, a space, and the pretty-printedObject
.void
Benchmark. report(String title, Object o)
Reports thetitle
, a colon, a space, and the pretty-printedObject
.Constructor parameters in org.codehaus.commons.compiler.util with annotations of type Nullable Constructor Description StringPattern(String pattern)
-
Uses of Nullable in org.codehaus.commons.compiler.util.iterator
Method parameters in org.codehaus.commons.compiler.util.iterator with annotations of type Nullable Modifier and Type Method Description void
FilterListIterator. add(T o)
void
FilterListIterator. set(T o)
-
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 Class<?>
ByteArrayClassLoader. findClass(String name)
ImplementsClassLoader.findClass(String)
.static <R,EX extends Throwable>
RMethods. invoke(Method method, Object obj, 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(String fileName, byte[] data)
Adds anotherResource
, so that it can later be found withMapResourceFinder.findResource(String)
,ResourceFinder.findResourceAsStream(String)
andMapResourceFinder.resources()
.Resource
MapResourceFinder. addResource(String fileName, String data)
Resource
FileResourceFinder. findResource(String resourceName)
Resource
MapResourceFinder. findResource(String resourceName)
Resource
MultiResourceFinder. findResource(String resourceName)
abstract Resource
ResourceFinder. findResource(String resourceName)
Finds a resource by name and return it as aResource
object.Resource
ZipFileResourceFinder. findResource(String resourceName)
protected File
DirectoryResourceFinder. findResourceAsFile(String resourceName)
protected abstract File
FileResourceFinder. findResourceAsFile(String resourceName)
Converts a given resource resource name into aFile
.InputStream
ResourceFinder. findResourceAsStream(String resourceName)
Finds a resource by name and open it for reading.Iterable<Resource>
DirectoryResourceFinder. list(String resourceNamePrefix, boolean recurse)
abstract Iterable<Resource>
ListableResourceFinder. list(String resourceNamePrefix, boolean recurse)
Iterable<Resource>
MapResourceFinder. list(String resourceNamePrefix, boolean recurse)
Iterable<Resource>
MultiResourceFinder. list(String resourceNamePrefix, boolean recurse)
-
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.Java.Rvalue
Java.ForStatement. condition
The optional "condition" part of the "basic FOR statement".Java.ConstructorInvocation
Java.ConstructorDeclarator. constructorInvocation
TheJava.AlternateConstructorInvocation
orJava.SuperConstructorInvocation
, if any.Java.ElementValue
Java.MethodDeclarator. defaultValue
The optional "default value" of the declared method (only methods of annotation types can have a default value).String
Java.EnumConstant. docComment
The optional "doc comment" that appeared in the compilation unit immediately before this enum constant declaration.Java.BlockStatement
Java.IfStatement. elseStatement
The optional ELSE statement, which is executed iff the condition evaluates to FALSE.Java.Rvalue
Java.AssertStatement. expression2
The optional right-hand-side expression of this ASSERT statement.Java.Type
Java.NamedClassDeclaration. extendedType
The type of the extended class.String
Java.AbstractCompilationUnit. fileName
A string that explains the "file" (or similar resource) where this compilation unit was loaded from.Java.Block
Java.TryStatement. finallY
The optional "finally" block of the TRY statement.IClass
Java.NewClassInstance. iClass
The resolvedJava.NewClassInstance.type
.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.String
Java.BreakStatement. label
The optional label that this BREAK statement refers to.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.Map<String,Java.LocalVariable>
Java.ConstructorInvocation. localVariables
The local variables that are accessible during the compilation of the constructor invocation.Map<String,Java.LocalVariable>
Java.FunctionDeclarator. localVariables
Mapping of variable names toJava.LocalVariable
s.Map<String,Java.LocalVariable>
Java.Statement. localVariables
The map of currently visible local variables.IClass.IMethod
IClassLoader. METH_java_lang_Throwable__addSuppressed
Java.PackageDeclaration
Java.CompilationUnit. packageDeclaration
The package declaration at the very top of this compilation unit (if any).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".Java.ReferenceType
Java.Wildcard. referenceType
The reference type of this wildcard's EXTENDS or SUPER bounds.Java.Rvalue
Java.ReturnStatement. returnValue
The optional rvalue that is returned.Java.LocalVariableSlot
Java.LocalVariable. slot
The slot reserved for this local variable.List<? extends Java.BlockStatement>
Java.FunctionDeclarator. statements
The statements that comprise the function;null
for abstract method declarations.Java.Atom
Java.MethodInvocation. target
The optional type or rvalue that qualifies this method invocation.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.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.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.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".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 Throwable>
RJava.AbstractAnnotation. accept(Visitor.ElementValueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.AbstractAnnotation. accept(Visitor.ModifierVisitor<R,EX> visitor)
abstract <R,EX extends Throwable>
RJava.AbstractCompilationUnit. accept(Visitor.AbstractCompilationUnitVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.AbstractCompilationUnitVisitor
for the concreteJava.AbstractCompilationUnit
type.abstract <R,EX extends 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 Throwable>
RJava.AbstractCompilationUnit.SingleStaticImportDeclaration. accept(Visitor.ImportVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.AbstractCompilationUnit.SingleTypeImportDeclaration. accept(Visitor.ImportVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.AbstractCompilationUnit.StaticImportOnDemandDeclaration. accept(Visitor.ImportVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.AbstractCompilationUnit.TypeImportOnDemandDeclaration. accept(Visitor.ImportVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.AccessModifier. accept(Visitor.ModifierVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.AlternateConstructorInvocation. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.AlternateConstructorInvocation. accept(Visitor.ConstructorInvocationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.AmbiguousName. accept(Visitor.LvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.Annotation. accept(Visitor.AnnotationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.AnonymousClassDeclaration. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ArrayAccessExpression. accept(Visitor.LvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ArrayCreationReference. accept(Visitor.RvalueVisitor<R,EX> rvv)
<R,EX extends Throwable>
RJava.ArrayLength. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ArrayType. accept(Visitor.AtomVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ArrayType. accept(Visitor.TypeArgumentVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ArrayType. accept(Visitor.TypeVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.AssertStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.Assignment. accept(Visitor.RvalueVisitor<R,EX> visitor)
abstract <R,EX extends Throwable>
RJava.Atom. accept(Visitor.AtomVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.BinaryOperation. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.Block. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.BlockLambdaBody. accept(Visitor.LambdaBodyVisitor<R,EX> lbv)
<R,EX extends Throwable>
RJava.BlockStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.BlockStatementVisitor
for the concreteJava.BlockStatement
type.<R,EX extends Throwable>
RJava.BooleanLiteral. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.BreakStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.Cast. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.CharacterLiteral. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ClassInstanceCreationReference. accept(Visitor.RvalueVisitor<R,EX> rvv)
<R,EX extends Throwable>
RJava.ClassLiteral. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.CompilationUnit. accept(Visitor.AbstractCompilationUnitVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ConditionalExpression. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ConstructorDeclarator. accept(Visitor.FunctionDeclaratorVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ConstructorInvocation. accept(Visitor.AtomVisitor<R,EX> visitor)
abstract <R,EX extends Throwable>
RJava.ConstructorInvocation. accept(Visitor.ConstructorInvocationVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.ConstructorInvocationVisitor
for the concreteJava.ConstructorInvocation
.<R,EX extends Throwable>
RJava.ContinueStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.Crement. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.DoStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ElementValue. accept(Visitor.ElementValueVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.ElementValueVisitor
for the concreteJava.ElementValue
type.<R,EX extends Throwable>
RJava.ElementValueArrayInitializer. accept(Visitor.ElementValueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.EmptyStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.EnumConstant. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ExportsModuleDirective. accept(Visitor.ModuleDirectiveVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ExpressionLambdaBody. accept(Visitor.LambdaBodyVisitor<R,EX> lbv)
<R,EX extends Throwable>
RJava.ExpressionStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.FieldAccess. accept(Visitor.LvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.FieldAccessExpression. accept(Visitor.LvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.FieldDeclaration. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.FieldDeclaration. accept(Visitor.TypeBodyDeclarationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.FloatingPointLiteral. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ForEachStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.FormalLambdaParameters. accept(Visitor.LambdaParametersVisitor<R,EX> lpv)
<R,EX extends Throwable>
RJava.ForStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
abstract <R,EX extends Throwable>
RJava.FunctionDeclarator. accept(Visitor.FunctionDeclaratorVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.FunctionDeclaratorVisitor
for the concreteJava.FunctionDeclarator
type.<R,EX extends Throwable>
RJava.FunctionDeclarator. accept(Visitor.TypeBodyDeclarationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.IdentifierLambdaParameters. accept(Visitor.LambdaParametersVisitor<R,EX> lpv)
<R,EX extends Throwable>
RJava.IfStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.InferredLambdaParameters. accept(Visitor.LambdaParametersVisitor<R,EX> lpv)
<R,EX extends Throwable>
RJava.Initializer. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.Initializer. accept(Visitor.TypeBodyDeclarationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.Instanceof. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.IntegerLiteral. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.LabeledStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.LambdaBody. accept(Visitor.LambdaBodyVisitor<R,EX> lbv)
<R,EX extends Throwable>
RJava.LambdaExpression. accept(Visitor.RvalueVisitor<R,EX> rvv)
<R,EX extends Throwable>
RJava.LambdaParameters. accept(Visitor.LambdaParametersVisitor<R,EX> lpv)
Invokes the "visit...()
" method ofVisitor.LambdaParametersVisitor
for the concreteJava.LambdaParameters
.<R,EX extends Throwable>
RJava.LocalClassDeclaration. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.LocalClassDeclarationStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.LocalVariableAccess. accept(Visitor.LvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.LocalVariableDeclarationStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
abstract <R,EX extends Throwable>
RJava.Lvalue. accept(Visitor.LvalueVisitor<R,EX> lvv)
<R,EX extends Throwable>
RJava.Lvalue. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.MarkerAnnotation. accept(Visitor.AnnotationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.MemberAnnotationTypeDeclaration. accept(Visitor.TypeBodyDeclarationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.MemberAnnotationTypeDeclaration. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.MemberClassDeclaration. accept(Visitor.TypeBodyDeclarationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.MemberClassDeclaration. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.MemberEnumDeclaration. accept(Visitor.TypeBodyDeclarationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.MemberEnumDeclaration. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.MemberInterfaceDeclaration. accept(Visitor.TypeBodyDeclarationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.MemberInterfaceDeclaration. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.MethodDeclarator. accept(Visitor.FunctionDeclaratorVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.MethodInvocation. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.MethodReference. accept(Visitor.RvalueVisitor<R,EX> rvv)
<R,EX extends Throwable>
RJava.Modifier. accept(Visitor.ModifierVisitor<R,EX> modifierVisitor)
<R,EX extends Throwable>
RJava.ModularCompilationUnit. accept(Visitor.AbstractCompilationUnitVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ModuleDirective. accept(Visitor.ModuleDirectiveVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.ModuleDirectiveVisitor
for the concreteJava.ModuleDirective
type.<R,EX extends Throwable>
RJava.NewAnonymousClassInstance. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.NewArray. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.NewClassInstance. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.NewInitializedArray. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.NormalAnnotation. accept(Visitor.AnnotationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.NullLiteral. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.OpensModuleDirective. accept(Visitor.ModuleDirectiveVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.Package. accept(Visitor.AtomVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.PackageMemberAnnotationTypeDeclaration. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.PackageMemberClassDeclaration. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.PackageMemberEnumDeclaration. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.PackageMemberInterfaceDeclaration. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ParameterAccess. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ParenthesizedExpression. accept(Visitor.LvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.PrimitiveType. accept(Visitor.AtomVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.PrimitiveType. accept(Visitor.TypeVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ProvidesModuleDirective. accept(Visitor.ModuleDirectiveVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.QualifiedThisReference. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ReferenceType. accept(Visitor.AtomVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ReferenceType. accept(Visitor.TypeArgumentVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ReferenceType. accept(Visitor.TypeVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.RequiresModuleDirective. accept(Visitor.ModuleDirectiveVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ReturnStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.Rvalue. accept(Visitor.AtomVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.Rvalue. accept(Visitor.ElementValueVisitor<R,EX> visitor)
abstract <R,EX extends Throwable>
RJava.Rvalue. accept(Visitor.RvalueVisitor<R,EX> rvv)
<R,EX extends Throwable>
RJava.RvalueMemberType. accept(Visitor.AtomVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.RvalueMemberType. accept(Visitor.TypeVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.SimpleConstant. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.SimpleType. accept(Visitor.AtomVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.SimpleType. accept(Visitor.TypeVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.SingleElementAnnotation. accept(Visitor.AnnotationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.StringLiteral. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.SuperclassFieldAccessExpression. accept(Visitor.LvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.SuperclassMethodInvocation. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.SuperConstructorInvocation. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.SuperConstructorInvocation. accept(Visitor.ConstructorInvocationVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.SwitchStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.SynchronizedStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ThisReference. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.ThrowStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.TryStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.TryStatement.LocalVariableDeclaratorResource. accept(Visitor.TryStatementResourceVisitor<R,EX> visitor)
abstract <R,EX extends 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 Throwable>
RJava.TryStatement.VariableAccessResource. accept(Visitor.TryStatementResourceVisitor<R,EX> visitor)
abstract <R,EX extends Throwable>
RJava.Type. accept(Visitor.TypeVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.TypeArgument. accept(Visitor.TypeArgumentVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.TypeArgumentVisitor
for the concreteJava.TypeArgument
type.<R,EX extends Throwable>
RJava.TypeBodyDeclaration. accept(Visitor.TypeBodyDeclarationVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.TypeBodyDeclarationVisitor
for the concreteJava.TypeBodyDeclaration
type.<R,EX extends Throwable>
RJava.TypeDeclaration. accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.TypeDeclarationVisitor
for the concreteJava.TypeDeclaration
type.<R,EX extends Throwable>
RJava.UnaryOperation. accept(Visitor.RvalueVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.UsesModuleDirective. accept(Visitor.ModuleDirectiveVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.WhileStatement. accept(Visitor.BlockStatementVisitor<R,EX> visitor)
<R,EX extends Throwable>
RJava.Wildcard. accept(Visitor.TypeArgumentVisitor<R,EX> visitor)
String
Parser. doc()
Gets the text of the doc comment (a.k.a.String
TokenStreamImpl. doc()
Gets the text of the doc comment (a.k.a.Object
ExpressionEvaluator. evaluate(int idx, Object... arguments)
Object
ExpressionEvaluator. evaluate(Object... arguments)
Object
ScriptEvaluator. evaluate(int idx, Object[] arguments)
Object
ScriptEvaluator. evaluate(Object[] arguments)
IClass
UnitCompiler. findClass(String className)
Finds one class or interface declaration in this compilation unit and resolves it into anIClass
.protected Java.AbstractCompilationUnit
JavaSourceIClassLoader. findCompilationUnit(String className)
Finds the Java source file for the named class through the configured 'source resource finder' and parses it.protected IClass
ClassLoaderIClassLoader. findIClass(String descriptor)
protected abstract IClass
IClassLoader. findIClass(String descriptor)
Finds a newIClass
by descriptor and callsIClassLoader.defineIClass(IClass)
.IClass
JavaSourceIClassLoader. findIClass(String fieldDescriptor)
protected IClass
ResourceFinderIClassLoader. findIClass(String descriptor)
IClass.IConstructor
IClass. findIConstructor(IClass[] parameterTypes)
IClass.IMethod
IClass. findIMethod(String methodName, IClass[] parameterTypes)
Java.LocalVariable
Java.BlockStatement. findLocalVariable(String name)
Java.LocalVariable
Java.ConstructorInvocation. findLocalVariable(String name)
Java.LocalVariable
Java.Initializer. findLocalVariable(String name)
Java.LocalVariable
Java.Statement. findLocalVariable(String name)
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.protected Map<String,byte[]>
CachingJavaSourceClassLoader. generateBytecodes(String className)
OverridesJavaSourceClassLoader.generateBytecodes(String)
to implement class file caching.protected Map<String,byte[]>
JavaSourceClassLoader. generateBytecodes(String name)
Finds, scans, parses the right compilation unit.IClass
IClass. getComponentType()
protected IClass
ClassFileIClass. getComponentType2()
protected abstract IClass
IClass. getComponentType2()
abstract Object
IClass.IField. getConstantValue()
Returns the value of the field if it is a compile-time constant value, i.e.Object
UnitCompiler. getConstantValue(Java.Rvalue rv)
Attempts to evaluate as a constant expression.IClass.IField
IClass. getDeclaredIField(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()
String
Java.DocCommentable. getDocComment()
String
Java.EnumConstant. getDocComment()
String
Java.FieldDeclaration. getDocComment()
String
Java.FunctionDeclarator. getDocComment()
String
Java.InterfaceDeclaration. getDocComment()
String
Java.NamedClassDeclaration. getDocComment()
Java.Scope
Java.Rvalue. getEnclosingScopeOrNull()
CodeContext.Offset
Java.LocalVariableSlot. getEnd()
String
Scanner. getFileName()
Java.MemberTypeDeclaration
Java.AbstractTypeDeclaration. getMemberTypeDeclaration(String name)
Java.MemberTypeDeclaration
Java.TypeDeclaration. getMemberTypeDeclaration(String name)
Returns the member type with the given name.Java.MethodDeclarator
Java.AbstractTypeDeclaration. getMethodDeclaration(String name)
Java.MethodDeclarator
Java.TypeDeclaration. getMethodDeclaration(String name)
Returns the first method declared with the given name.String
Java.LocalVariableSlot. getName()
Java.TypeParameter[]
Java.AbstractTypeDeclaration. getOptionalTypeParameters()
Java.TypeParameter[]
Java.NamedTypeDeclaration. getOptionalTypeParameters()
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()
Java.PackageMemberTypeDeclaration
Java.CompilationUnit. getPackageMemberTypeDeclaration(String name)
Returns the package member class or interface declared with the given name.static String
Descriptor. getPackageName(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.protected Class<?>
ScriptEvaluator. getReturnType(int index)
String[]
UnitCompiler. getSingleTypeImport(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.protected IClass
ClassFileIClass. getSuperclass2()
protected abstract IClass
IClass. getSuperclass2()
IClass
UnitCompiler. importTypeOnDemand(String simpleTypeName, Location location)
6.5.2.BL1.B1.B5, 6.5.2.BL1.B1.B6 Type-import-on-demand.
6.5.5.1.6 Type-import-on-demand declaration.IClass
IClassLoader. loadIClass(String fieldDescriptor)
Gets anIClass
by field descriptor.protected Java.Type
ClassBodyEvaluator. optionalClassToType(Location location, Class<?> clazz)
protected Java.Type
ExpressionEvaluator. optionalClassToType(Location location, Class<?> clazz)
protected Java.Type
ScriptEvaluator. optionalClassToType(Location loc, Class<?> clazz)
protected Java.Type
SimpleCompiler. optionalClassToType(Location location, Class<?> clazz)
Java.Modifier
Parser. parseOptionalModifier()
Modifier := Annotation | 'public' | 'protected' | 'private' | 'static' | 'abstract' | 'final' | 'native' | 'synchronized' | 'transient' | 'volatile' | 'strictfp' | 'default'String
Parser. peekRead(TokenType suspected)
String
TokenStream. peekRead(TokenType suspected)
Checks whether the type of the next token is the suspected; if so, consumes the token.String
TokenStreamImpl. peekRead(TokenType suspected)
protected ClassFile.AttributeInfo
CodeContext. storeLocalVariableTable(DataOutputStream dos, short localVariableTableAttributeNameIndex)
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.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.BlockStatementVisitor. 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.BlockStatementVisitor. 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.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, String catchTypeFd)
Adds another entry to the "exception_table" of this code attribute (see JVMS 4.7.3).Java.LocalVariableSlot
CodeContext. allocateLocalVariable(short size, String name, IClass 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, String name, IClass type)
Allocates space for a local variable of the given size (1 or 2) on the local variable array.protected Java.Type[]
ExpressionEvaluator. classesToTypes(Location location, Class<?>... classes)
protected Java.Type[]
SimpleCompiler. classesToTypes(Location location, Class<?>[] classes)
void
ClassBodyEvaluator. cook(String fileName, Reader r)
void
ExpressionEvaluator. cook(String fileName, Reader reader)
void
ScriptEvaluator. cook(String fileName, Reader reader)
void
SimpleCompiler. cook(String fileName, Reader r)
Scans, parses and compiles a given compilation unit from the givenReader
.static Object
ClassBodyEvaluator. createFastClassBodyEvaluator(Scanner scanner, Class<?> baseType, ClassLoader parentClassLoader)
Deprecated.UseClassBodyEvaluator.createInstance(Reader)
insteadstatic Object
ClassBodyEvaluator. createFastClassBodyEvaluator(Scanner scanner, Class<?> baseType, ClassLoader parentClassLoader)
Deprecated.UseClassBodyEvaluator.createInstance(Reader)
insteadstatic Object
ClassBodyEvaluator. createFastClassBodyEvaluator(Scanner scanner, String className, Class<?> extendedClass, Class<?>[] implementedInterfaces, ClassLoader parentClassLoader)
Deprecated.UseClassBodyEvaluator.createInstance(Reader)
insteadstatic Object
ClassBodyEvaluator. createFastClassBodyEvaluator(Scanner scanner, String className, Class<?> extendedClass, Class<?>[] implementedInterfaces, ClassLoader parentClassLoader)
Deprecated.UseClassBodyEvaluator.createInstance(Reader)
insteadstatic Object
ExpressionEvaluator. createFastExpressionEvaluator(String expression, Class<?> interfaceToImplement, String[] parameterNames, ClassLoader parentClassLoader)
Deprecated.static Object
ExpressionEvaluator. createFastExpressionEvaluator(Scanner scanner, String[] defaultImports, String className, Class<?> extendedType, Class<?> interfaceToImplement, String[] parameterNames, ClassLoader parentClassLoader)
Deprecated.static Object
ExpressionEvaluator. createFastExpressionEvaluator(Scanner scanner, String[] defaultImports, String className, Class<?> extendedType, Class<?> interfaceToImplement, String[] parameterNames, ClassLoader parentClassLoader)
Deprecated.static Object
ExpressionEvaluator. createFastExpressionEvaluator(Scanner scanner, String className, Class<?> extendedType, Class<?> interfaceToImplement, String[] parameterNames, ClassLoader parentClassLoader)
Deprecated.static Object
ExpressionEvaluator. createFastExpressionEvaluator(Scanner scanner, String className, Class<?> extendedType, Class<?> interfaceToImplement, String[] parameterNames, ClassLoader parentClassLoader)
Deprecated.static Object
ScriptEvaluator. createFastScriptEvaluator(Scanner scanner, Class<?> interfaceToImplement, String[] parameterNames, ClassLoader parentClassLoader)
Deprecated.static Object
ScriptEvaluator. createFastScriptEvaluator(Scanner scanner, String[] defaultImports, String className, Class<?> extendedClass, Class<?> interfaceToImplement, String[] parameterNames, ClassLoader parentClassLoader)
Deprecated.static Object
ScriptEvaluator. createFastScriptEvaluator(Scanner scanner, String[] defaultImports, String className, Class<?> extendedClass, Class<?> interfaceToImplement, String[] parameterNames, ClassLoader parentClassLoader)
Deprecated.static Object
ScriptEvaluator. createFastScriptEvaluator(Scanner scanner, String className, Class<?> extendedType, Class<?> interfaceToImplement, String[] parameterNames, ClassLoader parentClassLoader)
Deprecated.static Object
ScriptEvaluator. createFastScriptEvaluator(Scanner scanner, String className, Class<?> extendedType, Class<?> interfaceToImplement, String[] parameterNames, ClassLoader parentClassLoader)
Deprecated.static IClassLoader
IClassLoader. createJavacLikePathIClassLoader(File[] bootClassPath, File[] extDirs, 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(File[] bootClassPath, File[] extDirs, 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(Object obj)
boolean
SimpleCompiler. equals(Object o)
TwoSimpleCompiler
s are regarded equal iff Both are objects of the same class (e.g.Object
ExpressionEvaluator. evaluate(int idx, Object... arguments)
Object
ExpressionEvaluator. evaluate(Object... arguments)
Object
ScriptEvaluator. evaluate(int idx, Object[] arguments)
Object
ScriptEvaluator. evaluate(Object[] arguments)
protected Class<?>
JavaSourceClassLoader. findClass(String name)
Implementation ofClassLoader.findClass(String)
.static File
Compiler. getClassFile(String className, File sourceFile, File destinationDirectory)
Constructs the name of a file that could store the byte code of the class with the given name.void
FilterWarningHandler. handleWarning(String handle, String message, Location location)
void
FilterWarningHandler. handleWarning(String handle, String message, Location location)
protected Java.Type
ClassBodyEvaluator. optionalClassToType(Location location, Class<?> clazz)
protected Java.Type
ExpressionEvaluator. optionalClassToType(Location location, Class<?> clazz)
protected Java.Type
ScriptEvaluator. optionalClassToType(Location loc, Class<?> clazz)
protected Java.Type
SimpleCompiler. optionalClassToType(Location location, Class<?> clazz)
Java.AnnotationTypeDeclaration
Parser. parseAnnotationTypeDeclarationRest(String docComment, Java.Modifier[] modifiers, Parser.InterfaceDeclarationContext context)
AnnotationTypeDeclarationRest := Identifier AnnotationTypeBodyJava.NamedClassDeclaration
Parser. parseClassDeclarationRest(String docComment, Java.Modifier[] modifiers, Parser.ClassDeclarationContext context)
ClassDeclarationRest := Identifier [ typeParameters ] [ 'extends' ReferenceType ] [ 'implements' ReferenceTypeList ] ClassBodyJava.ConstructorDeclarator
Parser. parseConstructorDeclarator(String docComment, Java.Modifier[] modifiers)
ConstructorDeclarator := Identifier FormalParameters [ 'throws' ReferenceTypeList ] '{' [ 'this' Arguments ';' | 'super' Arguments ';' | Primary '.' 'super' Arguments ';' ] BlockStatements '}'Java.EnumDeclaration
Parser. parseEnumDeclarationRest(String docComment, Java.Modifier[] modifiers, Parser.ClassDeclarationContext context)
EnumDeclarationRest := Identifier [ 'implements' ReferenceTypeList ] EnumBodyJava.InterfaceDeclaration
Parser. parseInterfaceDeclarationRest(String docComment, Java.Modifier[] modifiers, Parser.InterfaceDeclarationContext context)
InterfaceDeclarationRest := Identifier [ typeParameters ] [ 'extends' ReferenceTypeList ] InterfaceBodyJava.MethodDeclarator
Parser. parseMethodDeclarationRest(String docComment, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters, Java.Type type, String name, boolean allowDefaultClause, Parser.MethodDeclarationContext context)
MethodDeclarationRest := FormalParameters { '[' ']' } [ 'throws' ReferenceTypeList ] [ 'default' expression ] ( ';' | MethodBody )Java.MethodDeclarator
Parser. parseMethodDeclarationRest(String docComment, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters, Java.Type type, String name, boolean allowDefaultClause, Parser.MethodDeclarationContext context)
MethodDeclarationRest := FormalParameters { '[' ']' } [ 'throws' ReferenceTypeList ] [ 'default' expression ] ( ';' | MethodBody )Java.PackageDeclaration
Parser. parsePackageDeclarationRest(String docComment, Java.Modifier[] modifiers)
PackageDeclaration := { PackageModifier } 'package' identifier { '.' identifier} ';'int
UnicodeUnescapeReader. read(char[] cbuf, int off, int len)
OverridesFilterReader.read(char[], int, int)
.void
JavaSourceIClassLoader. setCharacterEncoding(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(Class<?> extendedType)
void
ExpressionEvaluator. setExtendedClass(Class<?> extendedType)
void
ScriptEvaluator. setExtendedClass(Class<?> extendedType)
void
ClassBodyEvaluator. setExtendedType(Class<?> extendedClass)
void
ScriptEvaluator. setMethodName(String methodName)
void
Java.CompilationUnit. setPackageDeclaration(Java.PackageDeclaration packageDeclaration)
Sets the package declaration of this compilation unit.void
ClassBodyEvaluator. setParentClassLoader(ClassLoader parentClassLoader)
void
ExpressionEvaluator. setParentClassLoader(ClassLoader parentClassLoader)
void
ScriptEvaluator. setParentClassLoader(ClassLoader parentClassLoader)
void
SimpleCompiler. setParentClassLoader(ClassLoader parentClassLoader)
void
ScriptEvaluator. setReturnType(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
.Constructor parameters in org.codehaus.janino with annotations of type Nullable Constructor Description AbstractClassDeclaration(Location location, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters)
AbstractCompilationUnit(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, String label)
CachingJavaSourceClassLoader(ClassLoader parentClassLoader, File[] sourcePath, String characterEncoding, File cacheDirectory)
CachingJavaSourceClassLoader(ClassLoader parentClassLoader, File[] sourcePath, String characterEncoding, File cacheDirectory)
CachingJavaSourceClassLoader(ClassLoader parentClassLoader, ResourceFinder sourceFinder, 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(String fileName, InputStream is)
Equivalent toClassBodyEvaluator(String fileName, Reader reader)
Equivalent toClassBodyEvaluator(Scanner scanner, Class<?> extendedType, Class<?>[] implementedTypes, ClassLoader parentClassLoader)
Equivalent toClassBodyEvaluator(Scanner scanner, Class<?> extendedType, Class<?>[] implementedTypes, ClassLoader parentClassLoader)
Equivalent toClassBodyEvaluator(Scanner scanner, ClassLoader parentClassLoader)
Equivalent toClassBodyEvaluator(Scanner scanner, String className, Class<?> extendedType, Class<?>[] implementedTypes, ClassLoader parentClassLoader)
Equivalent toClassBodyEvaluator(Scanner scanner, String className, Class<?> extendedType, Class<?>[] implementedTypes, ClassLoader parentClassLoader)
Equivalent toClassInstanceCreationReference(Location location, Java.Type type, Java.TypeArgument[] typeArguments)
CompilationUnit(String fileName)
CompilationUnit(String fileName, Java.AbstractCompilationUnit.ImportDeclaration[] importDeclarations)
Compiler(File[] sourcePath, File[] classPath, File[] extDirs, File[] bootClassPath, File destinationDirectory, String characterEncoding, boolean verbose, boolean debugSource, boolean debugLines, boolean debugVars, StringPattern[] warningHandlePatterns, boolean rebuild)
Deprecated.UseCompiler()
and the various configuration setters insteadCompiler(File[] sourcePath, File[] classPath, File[] extDirs, File[] bootClassPath, File destinationDirectory, String characterEncoding, boolean verbose, boolean debugSource, boolean debugLines, boolean debugVars, StringPattern[] warningHandlePatterns, boolean rebuild)
Deprecated.UseCompiler()
and the various configuration setters insteadCompiler(File[] sourcePath, File[] classPath, File[] extDirs, File[] bootClassPath, File destinationDirectory, String characterEncoding, boolean verbose, boolean debugSource, boolean debugLines, boolean debugVars, StringPattern[] warningHandlePatterns, boolean rebuild)
Deprecated.UseCompiler()
and the various configuration setters insteadCompiler(File[] sourcePath, File[] classPath, File[] extDirs, File[] bootClassPath, File destinationDirectory, String characterEncoding, boolean verbose, boolean debugSource, boolean debugLines, boolean debugVars, StringPattern[] warningHandlePatterns, boolean rebuild)
Deprecated.UseCompiler()
and the various configuration setters insteadConstructorDeclarator(Location location, String docComment, Java.Modifier[] modifiers, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, Java.ConstructorInvocation constructorInvocation, List<? extends Java.BlockStatement> statements)
ConstructorDeclarator(Location location, String docComment, Java.Modifier[] modifiers, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, Java.ConstructorInvocation constructorInvocation, List<? extends Java.BlockStatement> statements)
ContinueStatement(Location location, String label)
EnumConstant(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.Rvalue[] arguments)
EnumConstant(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.Rvalue[] arguments)
ExportsModuleDirective(Location location, String[] packageName, String[][] toModuleNames)
ExpressionEvaluator(String expression, Class<?> expressionType, String[] parameterNames, Class<?>[] parameterTypes, Class<?>[] thrownExceptions, Class<?> extendedClass, Class<?>[] implementedTypes, ClassLoader parentClassLoader)
Equivalent toExpressionEvaluator(String expression, Class<?> expressionType, String[] parameterNames, Class<?>[] parameterTypes, Class<?>[] thrownExceptions, ClassLoader parentClassLoader)
Equivalent toExpressionEvaluator(Scanner scanner, String className, Class<?> extendedType, Class<?>[] implementedTypes, boolean staticMethod, Class<?> expressionType, String methodName, String[] parameterNames, Class<?>[] parameterTypes, Class<?>[] thrownExceptions, ClassLoader parentClassLoader)
Creates an expression evaluator with the full configurability.ExpressionEvaluator(Scanner scanner, String className, Class<?> extendedType, Class<?>[] implementedTypes, boolean staticMethod, Class<?> expressionType, String methodName, String[] parameterNames, Class<?>[] parameterTypes, Class<?>[] thrownExceptions, ClassLoader parentClassLoader)
Creates an expression evaluator with the full configurability.FieldDeclaration(Location location, 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, String docComment, Java.Modifier[] modifiers, Java.Type type, String name, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, List<? extends Java.BlockStatement> statements)
FunctionDeclarator(Location location, String docComment, Java.Modifier[] modifiers, Java.Type type, String name, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, List<? extends Java.BlockStatement> statements)
IClassLoader(IClassLoader parentIClassLoader)
IfStatement(Location location, Java.Rvalue condition, Java.BlockStatement thenStatement, Java.BlockStatement elseStatement)
InterfaceDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)
InterfaceDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)
JavaSourceClassLoader(ClassLoader parentClassLoader, File[] sourcePath, 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(ClassLoader parentClassLoader, File[] sourcePath, 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(ClassLoader parentClassLoader, ResourceFinder sourceFinder, String characterEncoding)
Constructs aJavaSourceClassLoader
that finds Java source code through a givenResourceFinder
.JavaSourceIClassLoader(ResourceFinder sourceFinder, String sourceCharsetName, IClassLoader parentIClassLoader)
JavaSourceIClassLoader(ResourceFinder sourceFinder, String sourceCharsetName, IClassLoader parentIClassLoader)
LocalClassDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
LocalClassDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
LocalClassDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
LocalVariableSlot(String name, short slotNumber, IClass type)
LocalVariableSlot(String name, short slotNumber, IClass type)
MemberAnnotationTypeDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name)
MemberClassDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
MemberClassDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
MemberClassDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
MemberEnumDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.Type[] implementedTypes)
MemberInterfaceDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)
MemberInterfaceDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)
MethodDeclarator(Location location, String docComment, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters, Java.Type type, String name, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, Java.ElementValue defaultValue, List<? extends Java.BlockStatement> statements)
MethodDeclarator(Location location, String docComment, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters, Java.Type type, String name, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, Java.ElementValue defaultValue, List<? extends Java.BlockStatement> statements)
MethodDeclarator(Location location, String docComment, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters, Java.Type type, String name, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, Java.ElementValue defaultValue, List<? extends Java.BlockStatement> statements)
MethodDeclarator(Location location, String docComment, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters, Java.Type type, String name, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, Java.ElementValue defaultValue, List<? extends Java.BlockStatement> statements)
MethodInvocation(Location location, Java.Atom target, String methodName, Java.Rvalue[] arguments)
ModularCompilationUnit(String fileName, Java.AbstractCompilationUnit.ImportDeclaration[] importDeclarations, Java.ModuleDeclaration moduleDeclaration)
NamedClassDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
NamedClassDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
NamedClassDeclaration(Location location, String docComment, Java.Modifier[] modifiers, 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, IClass iClass, 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, String[] packageName, String[][] toModuleNames)
PackageMemberAnnotationTypeDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name)
PackageMemberClassDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
PackageMemberClassDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
PackageMemberClassDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
PackageMemberEnumDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.Type[] implementedTypes)
PackageMemberInterfaceDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)
PackageMemberInterfaceDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)
ReferenceType(Location location, Java.Annotation[] annotations, String[] identifiers, Java.TypeArgument[] typeArguments)
ResourceFinderIClassLoader(ResourceFinder resourceFinder, IClassLoader parentIClassLoader)
ReturnStatement(Location location, Java.Rvalue returnValue)
Scanner(File file, String encoding)
Deprecated.This method is deprecated because it leaves the input file openScanner(String fileName, InputStream is)
Sets up a scanner that reads tokens from the givenInputStream
in the platform default encoding.Scanner(String fileName, InputStream is, String encoding)
Sets up a scanner that reads tokens from the givenInputStream
with the given encoding (null
means platform default encoding).Scanner(String fileName, InputStream is, String encoding)
Sets up a scanner that reads tokens from the givenInputStream
with the given encoding (null
means platform default encoding).Scanner(String fileName, Reader in)
Sets up a scanner that reads tokens from the givenReader
.Scanner(String fileName, Reader in, int initialLineNumber, int initialColumnNumber)
Creates aScanner
that counts lines and columns from non-default initial values.ScriptEvaluator(String fileName, InputStream is, Class<?> returnType, String[] parameterNames, Class<?>[] parameterTypes, Class<?>[] thrownExceptions, ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(String fileName, InputStream is, Class<?> returnType, String[] parameterNames, Class<?>[] parameterTypes, Class<?>[] thrownExceptions, ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(String fileName, Reader reader, Class<?> returnType, String[] parameterNames, Class<?>[] parameterTypes, Class<?>[] thrownExceptions, ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(String fileName, Reader reader, Class<?> returnType, String[] parameterNames, Class<?>[] parameterTypes, Class<?>[] thrownExceptions, ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(Scanner scanner, Class<?> extendedType, Class<?>[] implementedTypes, Class<?> returnType, String[] parameterNames, Class<?>[] parameterTypes, Class<?>[] thrownExceptions, ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(Scanner scanner, Class<?> extendedType, Class<?>[] implementedTypes, Class<?> returnType, String[] parameterNames, Class<?>[] parameterTypes, Class<?>[] thrownExceptions, ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(Scanner scanner, Class<?> returnType, String[] parameterNames, Class<?>[] parameterTypes, Class<?>[] thrownExceptions, ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(Scanner scanner, String className, Class<?> extendedType, Class<?>[] implementedTypes, boolean staticMethod, Class<?> returnType, String methodName, String[] parameterNames, Class<?>[] parameterTypes, Class<?>[] thrownExceptions, ClassLoader parentClassLoader)
Equivalent toScriptEvaluator(Scanner scanner, String className, Class<?> extendedType, Class<?>[] implementedTypes, boolean staticMethod, Class<?> returnType, String methodName, String[] parameterNames, Class<?>[] parameterTypes, Class<?>[] thrownExceptions, ClassLoader parentClassLoader)
Equivalent toSimpleCompiler(String fileName, InputStream is)
Equivalent toSimpleCompiler(String fileName, Reader in)
Equivalent toSimpleCompiler(Scanner scanner, ClassLoader parentClassLoader)
Equivalent toSuperclassFieldAccessExpression(Location location, Java.Type qualification, String fieldName)
SuperConstructorInvocation(Location location, Java.Rvalue qualification, Java.Rvalue[] arguments)
Token(String fileName, int lineNumber, int columnNumber, TokenType type, String value)
TryStatement(Location location, List<Java.TryStatement.Resource> resources, Java.BlockStatement body, List<Java.CatchClause> catchClauses, Java.Block finallY)
TypeParameter(String name, Java.ReferenceType[] bound)
VariableDeclarator(Location location, String name, int brackets, Java.ArrayInitializerOrRvalue initializer)
Wildcard(int bounds, Java.ReferenceType referenceType)
-
Uses of Nullable in org.codehaus.janino.util
Constructor parameters in org.codehaus.janino.util with annotations of type Nullable Constructor Description ClassFile(short accessFlags, String thisClassFd, String superclassFd, String[] interfaceFds)
Constructs a class with no fields and methods.
-