Uses of Annotation Type
org.codehaus.commons.nullanalysis.Nullable
Packages that use Nullable
Package
Description
This package declares interfaces for the implementation of an
IExpressionEvaluator
, an IScriptEvaluator
, an
IClassBodyEvaluator
and an ISimpleCompiler
.An implementation of the
org.codehaus.commons.compiler
API that uses the "JAVAC" Java compiler that is
part of the "Java Development Kit" (JDK).Utility functionality for this project.
Utility functionality related to
java.util.reflect
.Classes related to loading "resources" (
ResourceFinder
) and
creating resources (ResourceCreator
).The core of the Janino Java compiler.
Application-independent helper classes.
Application-independent helper classes.
-
Uses of Nullable in org.codehaus.commons.compiler
Fields in org.codehaus.commons.compiler with annotations of type NullableModifier and TypeFieldDescriptionprotected 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 final String
Location.fileName
private final Location
LocatedException.location
static final 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.AbstractJavaSourceClassLoader.protectionDomainFactory
protected WarningHandler
AbstractCompiler.warningHandler
Stores the value configured withAbstractCompiler.setWarningHandler(WarningHandler)
.Methods in org.codehaus.commons.compiler with annotations of type NullableModifier and TypeMethodDescriptionIExpressionEvaluator.evaluate()
Shorthand forevaluate
(new Object[0])
.Same asIExpressionEvaluator.evaluate(Object[])
, but for multiple expressions.Evaluates the expression with concrete parameter values.IScriptEvaluator.evaluate()
Shorthand forevaluate
(new Object[0])
.Same asIScriptEvaluator.evaluate(Object[])
, but for multiple scripts.Calls the script with concrete parameter values.Location.getFileName()
LocatedException.getLocation()
Method parameters in org.codehaus.commons.compiler with annotations of type NullableModifier and TypeMethodDescriptionfinal void
Cookable.cook
(InputStream is, String encoding) final void
Cookable.cook
(String fileName, InputStream is) final void
Cookable.cook
(String fileName, InputStream is, String encoding) final void
Cookable.cook
(String fileName, InputStream is, String encoding) abstract void
final void
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
Reads, scans, parses and compiles Java tokens from the givenReader
.void
Reads, scans, parses and compiles Java tokens from the givenString
.final void
final void
void
Reads, scans, parses and compiles Java tokens from the givenFile
with the givenencoding
.void
Reads, scans, parses and compiles Java tokens from the named file with the given encoding.Same asIExpressionEvaluator.evaluate(Object[])
, but for multiple expressions.Evaluates the expression with concrete parameter values.Same asIScriptEvaluator.evaluate(Object[])
, but for multiple scripts.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
.final void
AbstractCompiler.setCharacterEncoding
(String characterEncoding) void
ICompiler.setCharacterEncoding
(String characterEncoding) Deprecated.void
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.final 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.final 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
which is invoked for each warning.Constructor parameters in org.codehaus.commons.compiler with annotations of type NullableModifierConstructorDescriptionCompileException
(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) InternalCompilerException
(Location location, String message) InternalCompilerException
(Location location, String message) InternalCompilerException
(Location location, String message, Throwable t) InternalCompilerException
(Location location, String message, Throwable t) LocatedException
(String message, Location location) LocatedException
(String message, Location location, Throwable cause) LocatedException
(String message, Location location, Throwable cause) -
Uses of Nullable in org.codehaus.commons.compiler.jdk
Fields in org.codehaus.commons.compiler.jdk with annotations of type NullableModifier and TypeFieldDescriptionSimpleCompiler.bytecodes
Isnull
iff thisSimpleCompiler
is not yet cooked.private Class
<?> ClassBodyEvaluator.extendedType
private JavaFileManager
JavaSourceClassLoader.fileManager
private ClassLoader
SimpleCompiler.getClassLoaderCache
private String
ScriptEvaluator.Script.methodName
The name of the generated method.private Class
<?> ClassBodyEvaluator.result
private Method[]
ScriptEvaluator.result
null=uncookedprivate 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 NullableMethod parameters in org.codehaus.commons.compiler.jdk with annotations of type NullableModifier and TypeMethodDescriptionprotected void
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
(JavaCompiler compiler, List<String> options, Collection<JavaFileObject> sourceFileObjects, JavaFileManager fileManager, ErrorHandler compileErrorHandler, WarningHandler warningHandler, SortedSet<Location> offsets) Compiles on theJavaFileManager
/JavaFileObject
level.(package private) static void
Compiler.compile
(JavaCompiler compiler, List<String> options, Collection<JavaFileObject> sourceFileObjects, JavaFileManager fileManager, ErrorHandler compileErrorHandler, WarningHandler warningHandler, SortedSet<Location> offsets) Compiles on theJavaFileManager
/JavaFileObject
level.(package private) static void
Compiler.compile
(JavaCompiler compiler, List<String> options, Collection<JavaFileObject> sourceFileObjects, JavaFileManager fileManager, ErrorHandler compileErrorHandler, WarningHandler warningHandler, SortedSet<Location> offsets) Compiles on theJavaFileManager
/JavaFileObject
level.(package private) static void
Compiler.compile
(JavaCompiler compiler, List<String> options, ResourceFinder sourceFinder, Charset sourceFileCharset, ResourceFinder classFileFinder, ResourceCreator classFileCreator, Resource[] sourceFiles, ErrorHandler compileErrorHandler, WarningHandler warningHandler, SortedSet<Location> offsets) (package private) static void
Compiler.compile
(JavaCompiler compiler, List<String> options, ResourceFinder sourceFinder, Charset sourceFileCharset, ResourceFinder classFileFinder, ResourceCreator classFileCreator, Resource[] sourceFiles, ErrorHandler compileErrorHandler, WarningHandler warningHandler, SortedSet<Location> offsets) (package private) static void
Compiler.compile
(JavaCompiler compiler, List<String> options, ResourceFinder sourceFinder, Charset sourceFileCharset, ResourceFinder classFileFinder, ResourceCreator classFileCreator, Resource[] sourceFiles, ErrorHandler compileErrorHandler, WarningHandler warningHandler, SortedSet<Location> offsets) void
void
protected void
void
void
void
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 NullableModifierConstructorDescriptionExpressionEvaluator
(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 NullableModifier and TypeMethodDescriptionboolean
JavaFileObjects.ResourceJavaFileObject.isNameCompatible
(String simpleName, JavaFileObject.Kind kind) boolean
JavaFileObjects.ResourceJavaFileObject.isNameCompatible
(String simpleName, JavaFileObject.Kind kind) -
Uses of Nullable in org.codehaus.commons.compiler.lang
Method parameters in org.codehaus.commons.compiler.lang with annotations of type NullableModifier and TypeMethodDescriptionstatic ClassLoader
ClassLoaders.getsResourceAsStream
(ResourceFinder finder, ClassLoader parent) Creates and returns aClassLoader
that implementsClassLoader.getResourceAsStream(String)
via aResourceFinder
.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.util
Fields in org.codehaus.commons.compiler.util with annotations of type NullableModifier and TypeFieldDescriptionprivate static Object
Disassembler.disassemblerInstance
private final String
StringPattern.pattern
Methods in org.codehaus.commons.compiler.util with annotations of type NullableModifier and TypeMethodDescriptionstatic 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) Producer.produce()
Produces the next object.Method parameters in org.codehaus.commons.compiler.util with annotations of type NullableModifier and TypeMethodDescriptionboolean
protected Class
<?> 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
Reports thetitle
, a colon, a space, and the pretty-printedObject
.void
Reports thetitle
, a colon, a space, and the pretty-printedObject
.private static boolean
Constructor parameters in org.codehaus.commons.compiler.util with annotations of type Nullable -
Uses of Nullable in org.codehaus.commons.compiler.util.iterator
Fields in org.codehaus.commons.compiler.util.iterator with annotations of type NullableModifier and TypeFieldDescriptionprivate static final Object
ProducerIterator.AT_END
private Object
ProducerIterator.nextElement
private Object
TraversingIterator.nextElement
Method parameters in org.codehaus.commons.compiler.util.iterator with annotations of type NullableModifier and TypeMethodDescriptionvoid
void
-
Uses of Nullable in org.codehaus.commons.compiler.util.reflect
Method parameters in org.codehaus.commons.compiler.util.reflect with annotations of type NullableModifier and TypeMethodDescriptionprotected Class
<?> ImplementsClassLoader.findClass(String)
.static <R,
EX extends Throwable>
RA 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 NullableModifier and TypeMethodDescriptionMapResourceFinder.addResource
(String fileName, byte[] data) Adds anotherResource
, so that it can later be found withMapResourceFinder.findResource(String)
,ResourceFinder.findResourceAsStream(String)
andMapResourceFinder.resources()
.MapResourceFinder.addResource
(String fileName, String data) final Resource
FileResourceFinder.findResource
(String resourceName) final Resource
MapResourceFinder.findResource
(String resourceName) final Resource
MultiResourceFinder.findResource
(String resourceName) abstract Resource
ResourceFinder.findResource
(String resourceName) Finds a resource by name and return it as aResource
object.final Resource
ZipFileResourceFinder.findResource
(String resourceName) protected final File
DirectoryResourceFinder.findResourceAsFile
(String resourceName) protected abstract File
FileResourceFinder.findResourceAsFile
(String resourceName) Converts a given resource resource name into aFile
.final InputStream
ResourceFinder.findResourceAsStream
(String resourceName) Finds a resource by name and open it for reading.Returns all resources who's names start with a given string.Method parameters in org.codehaus.commons.compiler.util.resource with annotations of type Nullable -
Uses of Nullable in org.codehaus.janino
Fields in org.codehaus.janino with annotations of type NullableModifier and TypeFieldDescriptionfinal 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.final IClass
Java.NewInitializedArray.arrayIClass
The resolvedJava.NewInitializedArray.arrayType
.final Java.ArrayType
Java.NewInitializedArray.arrayType
The array type to be instantiated.final Java.ReferenceType[]
Java.TypeParameter.bound
The optional bound of the type parameter.private final ResourceFinder
Compiler.CompilerIClassLoader.classFileFinder
private Collection
<ClassFile> SimpleCompiler.classFiles
Null
before cooking, non-null
after cooking.private ClassLoaderIClassLoader
SimpleCompiler.classLoaderIClassLoader
private final SignatureParser.ClassSignature
ClassFileIClass.classSignature
private CodeContext
UnitCompiler.codeContext
private ErrorHandler
JavaSourceIClassLoader.compileErrorHandler
private ErrorHandler
SimpleCompiler.compileErrorHandler
private ErrorHandler
UnitCompiler.compileErrorHandler
private IClass
IClass.componentTypeCache
final Java.Rvalue
Java.ForStatement.condition
The optional "condition" part of the "basic FOR statement".(package private) 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.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 Map
<String, IClass.IField> IClass.declaredIFieldsCache
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.MethodDeclarator.defaultValue
The optional "default value" of the declared method (only methods of annotation types can have a default value).private String
IClass.descriptorCache
private MethodDescriptor
IClass.IInvocable.descriptorCache
final String
Java.EnumConstant.docComment
The optional "doc comment" that appeared in the compilation unit immediately before this enum constant declaration.private final String
Java.FieldDeclaration.docComment
private final String
Java.FunctionDeclarator.docComment
private final String
Java.InterfaceDeclaration.docComment
private final String
Java.NamedClassDeclaration.docComment
private String
Parser.docComment
The optional JAVADOC comment preceding theinvalid reference
#nextToken
private String
TokenStreamImpl.docComment
The optional JAVADOC comment preceding theTokenStreamImpl.nextToken
.final 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
final Java.Rvalue
Java.AssertStatement.expression2
The optional right-hand-side expression of this ASSERT statement.private Class
<?> ClassBodyEvaluator.extendedType
final Java.Type
Java.NamedClassDeclaration.extendedType
The type of the extended class.final String
Java.AbstractCompilationUnit.fileName
A string that explains the "file" (or similar resource) where this compilation unit was loaded from.private final String
Scanner.fileName
private final String
Token.fileName
final Java.Block
Java.TryStatement.finallY
The optional "finally" block of the TRY statement.SimpleCompiler.getBytecodesCache
private ClassLoader
SimpleCompiler.getClassLoaderCache
private 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
final Java.BlockStatement
Java.ForStatement.init
The optional "init" part of the "basic FOR statement".Java.VariableDeclarator.initializer
The initializer for the variable, if any.(package private) IType[]
Java.InterfaceDeclaration.interfaces
Set during "compile()".private IClass[]
IClass.interfacesCache
Java.NewClassInstance.iType
The resolvedJava.NewClassInstance.type
.private ITypeVariable[]
IClass.iTypeVariablesCache
final String
Java.BreakStatement.label
The optional label that this BREAK statement refers to.final String
Java.ContinueStatement.label
The optional label that this CONTINUE statement refers to.Java.CatchParameter.localVariable
The local variable associated with this parameter.Java.FunctionDeclarator.FormalParameter.localVariable
The local variable associated with this parameter.Java.VariableDeclarator.localVariable
Used only if the variable declarator declares a local variable.Java.ConstructorInvocation.localVariables
The local variables that are accessible during the compilation of the constructor invocation.Java.FunctionDeclarator.localVariables
Mapping of variable names toJava.LocalVariable
s.Java.Statement.localVariables
The map of currently visible local variables.private Location
Token.location
IClassLoader.METH_java_lang_Throwable__addSuppressed
private String
Java.AnonymousClassDeclaration.myName
private 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.CompilationUnit.packageDeclaration
The package declaration at the very top of this compilation unit (if any).private IClass[]
IClass.IInvocable.parameterTypesCache
(package private) final CodeContext.LocalScope
CodeContext.LocalScope.parent
(package private) CodeContext.Offset
CodeContext.Offset.prev
Links to preceding and succeeding offsets.private Token
TokenStreamImpl.previousToken
final Java.Rvalue
Java.NewAnonymousClassInstance.qualification
The qualification iff this a "qualified anonymous class instance creation expression".final Java.Rvalue
Java.NewClassInstance.qualification
The qualification of this "qualified class instance creation expression".final Java.Type
Java.SuperclassFieldAccessExpression.qualification
The optional qualification before ".super.fld
".final 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.final 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 Class
<?> ClassBodyEvaluator.result
(package private) IType
Java.FunctionDeclarator.returnType
Set by "compile()".protected Class
<?> ScriptEvaluator.Script.returnType
The generated method's return type.final Java.Rvalue
Java.ReturnStatement.returnValue
The optional rvalue that is returned.private ScriptEvaluator.Script[]
ScriptEvaluator.scripts
The scripts to compile.UnitCompiler.singleTypeImports
To be used only byUnitCompiler.getSingleTypeImport(String, Location)
;null
means "not yet initialized"Java.LocalVariable.slot
The slot reserved for this local variable.private StackMap
CodeContext.Offset.stackMap
private CodeContext.Offset
Java.LocalVariableSlot.start
final 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
final 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
final 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.final 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 final IType
Java.LocalVariableSlot.type
final Java.Type
Java.NewClassInstance.type
The type to instantiate.final Java.TypeArgument[]
Java.ClassInstanceCreationReference.typeArguments
The optional type arguments for theJava.ClassInstanceCreationReference.type
.final Java.TypeArgument[]
Java.ReferenceType.typeArguments
The optional type arguments of the reference type.private final Java.TypeParameter[]
Java.AbstractTypeDeclaration.typeParameters
final Java.TypeParameter[]
Java.MethodDeclarator.typeParameters
The type parameters declared for the method.final 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) final Object
Java.SimpleConstant.value
(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 NullableModifier and TypeMethodDescriptionfinal <R,
EX extends Throwable>
RJava.AbstractAnnotation.accept
(Visitor.ElementValueVisitor<R, EX> visitor) final <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.final <R,
EX extends Throwable>
RJava.AbstractCompilationUnit.SingleStaticImportDeclaration.accept
(Visitor.ImportVisitor<R, EX> visitor) final <R,
EX extends Throwable>
RJava.AbstractCompilationUnit.SingleTypeImportDeclaration.accept
(Visitor.ImportVisitor<R, EX> visitor) final <R,
EX extends Throwable>
RJava.AbstractCompilationUnit.StaticImportOnDemandDeclaration.accept
(Visitor.ImportVisitor<R, EX> visitor) final <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.ArrayInitializer.accept
(Visitor.ArrayInitializerOrRvalueVisitor<R, EX> aiorvv) <R,
EX extends Throwable>
RJava.ArrayInitializerOrRvalue.accept
(Visitor.ArrayInitializerOrRvalueVisitor<R, EX> aiorvv) <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) final <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.FieldDeclarationOrInitializerVisitor<R, EX> visitor) <R,
EX extends Throwable>
RJava.FieldDeclaration.accept
(Visitor.TypeBodyDeclarationVisitor<R, EX> visitor) <R,
EX extends Throwable>
RJava.FieldDeclarationOrInitializer.accept
(Visitor.FieldDeclarationOrInitializerVisitor<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.final <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.FieldDeclarationOrInitializerVisitor<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) final <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) final <R,
EX extends Throwable>
RJava.Rvalue.accept
(Visitor.ArrayInitializerOrRvalueVisitor<R, EX> visitor) final <R,
EX extends Throwable>
RJava.Rvalue.accept
(Visitor.AtomVisitor<R, EX> visitor) final <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) final <R,
EX extends Throwable>
RJava.Wildcard.accept
(Visitor.TypeArgumentVisitor<R, EX> visitor) private Object
UnitCompiler.constantAssignmentConversion
(Java.Locatable locatable, Object value, IType targetType) Implements "assignment conversion" (JLS7 5.2) on a constant value.Parser.doc()
Gets the text of the doc comment (a.k.a.TokenStreamImpl.doc()
Gets the text of the doc comment (a.k.a.ExpressionEvaluator.evaluate()
ScriptEvaluator.evaluate()
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 IClass
Compiler.CompilerIClassLoader.findIClass
(String type) protected abstract IClass
IClassLoader.findIClass
(String descriptor) Finds a newIClass
by descriptor and callsIClassLoader.defineIClass(IClass)
.JavaSourceIClassLoader.findIClass
(String fieldDescriptor) protected IClass
ResourceFinderIClassLoader.findIClass
(String descriptor) final IClass.IConstructor
IClass.findIConstructor
(IClass[] parameterTypes) private IClass.IField
UnitCompiler.findIField
(IClass iClass, String name, Location location) Finds a named field in the givenIClass
.final IClass.IMethod
IClass.findIMethod
(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, String name) Finds a local class declared in any block enclosing the given block statement.Java.BlockStatement.findLocalVariable
(String name) Java.ConstructorInvocation.findLocalVariable
(String name) Java.Initializer.findLocalVariable
(String name) Java.Statement.findLocalVariable
(String name) private IClass
UnitCompiler.findMemberType
(IType iType, String name, Java.TypeArgument[] typeArguments, Location location) Finds a named type in the givenIClass
orIParameterizedType
.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, String[] identifiers) Attempts to load anIClass
by fully-qualified name throughUnitCompiler.iClassLoader
.private IClass
UnitCompiler.findTypeByName
(Location location, String className) Finds the namedIClass
in this compilation unit, or through theUnitCompiler.iClassLoader
.CachingJavaSourceClassLoader.generateBytecodes
(String className) OverridesJavaSourceClassLoader.generateBytecodes(String)
to implement class file caching.JavaSourceClassLoader.generateBytecodes
(String name) Finds, scans, parses the right compilation unit.final 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 Object
IClass.IField.getConstantValue()
Returns the value of the field if it is a compile-time constant value, i.e.final Object
UnitCompiler.getConstantValue
(Java.ArrayInitializerOrRvalue rv) Attempts to evaluate as a constant expression.final Object
UnitCompiler.getConstantValue
(Java.Rvalue rv) Attempts to evaluate as a constant expression.private Object
UnitCompiler.getConstantValue2
(Java.AmbiguousName an) private Object
UnitCompiler.getConstantValue2
(Java.BinaryOperation bo) private Object
UnitCompiler.getConstantValue2
(Java.ConditionalExpression ce) private Object
UnitCompiler.getConstantValue2
(Java.FieldAccess fa) private Object
UnitCompiler.getConstantValue2
(Java.LocalVariableAccess lva) private Object
UnitCompiler.getConstantValue2
(Java.NullLiteral nl) private Object
UnitCompiler.getConstantValue2
(Java.ParenthesizedExpression pe) private Object
UnitCompiler.getConstantValue2
(Java.Rvalue rv) private Object
UnitCompiler.getConstantValue2
(Java.SimpleConstant sl) private Object
UnitCompiler.getConstantValue2
(Java.UnaryOperation uo) final IClass.IField
IClass.getDeclaredIField
(String name) Returns the namedIClass.IField
declared in thisIClass
(does not work for inherited fields).final IClass
IClass.getDeclaringIClass()
protected IClass
ClassFileIClass.getDeclaringIClass2()
protected abstract IClass
IClass.getDeclaringIClass2()
protected IClass
IClass.PrimitiveIClass.getDeclaringIClass2()
protected IClass
ReflectionIClass.getDeclaringIClass2()
Java.DocCommentable.getDocComment()
Java.EnumConstant.getDocComment()
Java.FieldDeclaration.getDocComment()
Java.FunctionDeclarator.getDocComment()
Java.InterfaceDeclaration.getDocComment()
Java.NamedClassDeclaration.getDocComment()
Java.Rvalue.getEnclosingScopeOrNull()
Java.LocalVariableSlot.getEnd()
Scanner.getFileName()
IWildcardType.getLowerBound()
Java.AbstractTypeDeclaration.getMemberTypeDeclaration
(String name) Java.TypeDeclaration.getMemberTypeDeclaration
(String name) Returns the member type with the given name.private static IClass.IMethod
Java.AbstractTypeDeclaration.getMethodDeclaration
(String name) Java.TypeDeclaration.getMethodDeclaration
(String name) Returns the first method declared with the given name.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.AbstractTypeDeclaration.getOptionalTypeParameters()
(package private) Java.TypeParameter[]
Java.MethodDeclarator.getOptionalTypeParameters()
Java.NamedTypeDeclaration.getOptionalTypeParameters()
(package private) static Java.TypeDeclaration
UnitCompiler.getOuterClass
(Java.TypeDeclaration typeDeclaration) final 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.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.private IType
UnitCompiler.getReferenceType
(Location location, Java.Scope scope, String[] identifiers, int n, Java.TypeArgument[] typeArguments) protected final 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.Java.LocalVariableSlot.getStart()
final 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
(String simpleTypeName, Location location) If the given name was declared in a simple type import, load that class.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.private IClass
UnitCompiler.importTypeOnDemand2
(String simpleTypeName, Location location) private String
UnitCompiler.internalCheckAccessible
(IClass iClassDeclaringMember, Access memberAccess, Java.Scope contextScope) private String
UnitCompiler.internalCheckAccessible
(IClass type, Java.Scope contextScope) private IClass
UnitCompiler.isBoxingConvertible
(IType sourceType) private static Byte
UnitCompiler.isByteConstant
(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) final IClass
IClassLoader.loadIClass
(String fieldDescriptor) Gets anIClass
by field descriptor.private static final 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, 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) Parser.parseOptionalModifier()
Modifier := Annotation | 'public' | 'protected' | 'private' | 'static' | 'abstract' | 'final' | 'native' | 'synchronized' | 'transient' | 'volatile' | 'strictfp' | 'default'private Java.TypeArgument[]
Parser.parseTypeArgumentsOpt()
TypeArguments := 'invalid input: '<'' [ TypeArgument { ',' TypeArgument } ] '>'private Java.TypeParameter[]
Parser.parseTypeParametersOpt()
TypeParameters := 'invalid input: '<'' TypeParameter { ',' TypeParameter } '>'Checks whether the type of the next token is the suspected; if so, consumes the token.private CodeContext
UnitCompiler.replaceCodeContext
(CodeContext newCodeContext) Java.AmbiguousName.toLvalue()
Java.Atom.toLvalue()
Java.Lvalue.toLvalue()
Java.AmbiguousName.toRvalue()
Java.Atom.toRvalue()
Java.Rvalue.toRvalue()
Java.Atom.toType()
Visitor.ModifierVisitor.visitAccessModifier
(Java.AccessModifier am) Visitor.BlockStatementVisitor.visitAlternateConstructorInvocation
(Java.AlternateConstructorInvocation aci) Visitor.ConstructorInvocationVisitor.visitAlternateConstructorInvocation
(Java.AlternateConstructorInvocation aci) Visitor.LvalueVisitor.visitAmbiguousName
(Java.AmbiguousName an) Visitor.ElementValueVisitor.visitAnnotation
(Java.Annotation a) Visitor.TypeDeclarationVisitor.visitAnonymousClassDeclaration
(Java.AnonymousClassDeclaration acd) Visitor.LvalueVisitor.visitArrayAccessExpression
(Java.ArrayAccessExpression aae) Visitor.RvalueVisitor.visitArrayCreationReference
(Java.ArrayCreationReference acr) Visitor.ArrayInitializerOrRvalueVisitor.visitArrayInitializer
(Java.ArrayInitializer ai) Visitor.RvalueVisitor.visitArrayLength
(Java.ArrayLength al) Visitor.TypeArgumentVisitor.visitArrayType
(Java.ArrayType arrayType) Visitor.TypeVisitor.visitArrayType
(Java.ArrayType at) Invoked byJava.ArrayType.accept(Visitor.TypeVisitor)
Visitor.BlockStatementVisitor.visitAssertStatement
(Java.AssertStatement as) Visitor.RvalueVisitor.visitAssignment
(Java.Assignment a) Visitor.RvalueVisitor.visitBinaryOperation
(Java.BinaryOperation bo) Visitor.BlockStatementVisitor.visitBlock
(Java.Block b) Visitor.LambdaBodyVisitor.visitBlockLambdaBody
(Java.BlockLambdaBody blockLambdaBody) Visitor.RvalueVisitor.visitBooleanLiteral
(Java.BooleanLiteral bl) Visitor.BlockStatementVisitor.visitBreakStatement
(Java.BreakStatement bs) Invoked byJava.Cast.accept(Visitor.RvalueVisitor)
Visitor.RvalueVisitor.visitCharacterLiteral
(Java.CharacterLiteral cl) Visitor.RvalueVisitor.visitClassLiteral
(Java.ClassLiteral cl) Visitor.AbstractCompilationUnitVisitor.visitCompilationUnit
(Java.CompilationUnit cu) Visitor.RvalueVisitor.visitConditionalExpression
(Java.ConditionalExpression ce) Visitor.FunctionDeclaratorVisitor.visitConstructorDeclarator
(Java.ConstructorDeclarator cd) Visitor.AtomVisitor.visitConstructorInvocation
(Java.ConstructorInvocation ci) Visitor.BlockStatementVisitor.visitContinueStatement
(Java.ContinueStatement cs) Visitor.RvalueVisitor.visitCrement
(Java.Crement c) Invoked byJava.Crement.accept(Visitor.RvalueVisitor)
Visitor.BlockStatementVisitor.visitDoStatement
(Java.DoStatement ds) Visitor.ElementValueVisitor.visitElementValueArrayInitializer
(Java.ElementValueArrayInitializer evai) Visitor.BlockStatementVisitor.visitEmptyStatement
(Java.EmptyStatement es) Visitor.TypeDeclarationVisitor.visitEnumConstant
(Java.EnumConstant ec) Visitor.ModuleDirectiveVisitor.visitExportsModuleDirective
(Java.ExportsModuleDirective emd) Visitor.LambdaBodyVisitor.visitExpressionLambdaBody
(Java.ExpressionLambdaBody expressionLambdaBody) Visitor.BlockStatementVisitor.visitExpressionStatement
(Java.ExpressionStatement es) Visitor.LvalueVisitor.visitFieldAccess
(Java.FieldAccess fa) Visitor.LvalueVisitor.visitFieldAccessExpression
(Java.FieldAccessExpression fae) Visitor.FieldDeclarationOrInitializerVisitor.visitFieldDeclaration
(Java.FieldDeclaration fd) Visitor.TypeBodyDeclarationVisitor.visitFieldDeclaration
(Java.FieldDeclaration fd) Visitor.RvalueVisitor.visitFloatingPointLiteral
(Java.FloatingPointLiteral fpl) Visitor.BlockStatementVisitor.visitForEachStatement
(Java.ForEachStatement forEachStatement) Visitor.LambdaParametersVisitor.visitFormalLambdaParameters
(Java.FormalLambdaParameters flp) Visitor.BlockStatementVisitor.visitForStatement
(Java.ForStatement fs) Visitor.TypeBodyDeclarationVisitor.visitFunctionDeclarator
(Java.FunctionDeclarator fd) Visitor.LambdaParametersVisitor.visitIdentifierLambdaParameters
(Java.IdentifierLambdaParameters ilp) Visitor.BlockStatementVisitor.visitIfStatement
(Java.IfStatement is) Visitor.LambdaParametersVisitor.visitInferredLambdaParameters
(Java.InferredLambdaParameters ilp) Visitor.FieldDeclarationOrInitializerVisitor.visitInitializer
(Java.Initializer i) Visitor.TypeBodyDeclarationVisitor.visitInitializer
(Java.Initializer i) Visitor.RvalueVisitor.visitInstanceCreationReference
(Java.ClassInstanceCreationReference cicr) Visitor.RvalueVisitor.visitInstanceof
(Java.Instanceof io) Visitor.RvalueVisitor.visitIntegerLiteral
(Java.IntegerLiteral il) Visitor.BlockStatementVisitor.visitLabeledStatement
(Java.LabeledStatement ls) Visitor.RvalueVisitor.visitLambdaExpression
(Java.LambdaExpression le) Visitor.TypeDeclarationVisitor.visitLocalClassDeclaration
(Java.LocalClassDeclaration lcd) Visitor.BlockStatementVisitor.visitLocalClassDeclarationStatement
(Java.LocalClassDeclarationStatement lcds) Visitor.LvalueVisitor.visitLocalVariableAccess
(Java.LocalVariableAccess lva) Visitor.BlockStatementVisitor.visitLocalVariableDeclarationStatement
(Java.LocalVariableDeclarationStatement lvds) Visitor.TryStatementResourceVisitor.visitLocalVariableDeclaratorResource
(Java.TryStatement.LocalVariableDeclaratorResource lvdr) Visitor.RvalueVisitor.visitLvalue
(Java.Lvalue lv) Invoked byJava.Lvalue.accept(Visitor.RvalueVisitor)
Visitor.AnnotationVisitor.visitMarkerAnnotation
(Java.MarkerAnnotation ma) Visitor.TypeBodyDeclarationVisitor.visitMemberAnnotationTypeDeclaration
(Java.MemberAnnotationTypeDeclaration matd) Visitor.TypeDeclarationVisitor.visitMemberAnnotationTypeDeclaration
(Java.MemberAnnotationTypeDeclaration matd) Visitor.TypeBodyDeclarationVisitor.visitMemberClassDeclaration
(Java.MemberClassDeclaration mcd) Visitor.TypeDeclarationVisitor.visitMemberClassDeclaration
(Java.MemberClassDeclaration mcd) Visitor.TypeBodyDeclarationVisitor.visitMemberEnumDeclaration
(Java.MemberEnumDeclaration med) Visitor.TypeDeclarationVisitor.visitMemberEnumDeclaration
(Java.MemberEnumDeclaration med) Visitor.TypeBodyDeclarationVisitor.visitMemberInterfaceDeclaration
(Java.MemberInterfaceDeclaration mid) Visitor.TypeDeclarationVisitor.visitMemberInterfaceDeclaration
(Java.MemberInterfaceDeclaration mid) Visitor.FunctionDeclaratorVisitor.visitMethodDeclarator
(Java.MethodDeclarator md) Visitor.RvalueVisitor.visitMethodInvocation
(Java.MethodInvocation mi) Visitor.RvalueVisitor.visitMethodReference
(Java.MethodReference mr) Visitor.AbstractCompilationUnitVisitor.visitModularCompilationUnit
(Java.ModularCompilationUnit mcu) Visitor.RvalueVisitor.visitNewAnonymousClassInstance
(Java.NewAnonymousClassInstance naci) Visitor.RvalueVisitor.visitNewArray
(Java.NewArray na) Invoked byJava.NewArray.accept(Visitor.RvalueVisitor)
Visitor.RvalueVisitor.visitNewClassInstance
(Java.NewClassInstance nci) Visitor.RvalueVisitor.visitNewInitializedArray
(Java.NewInitializedArray nia) Visitor.AnnotationVisitor.visitNormalAnnotation
(Java.NormalAnnotation na) Visitor.RvalueVisitor.visitNullLiteral
(Java.NullLiteral nl) Visitor.ModuleDirectiveVisitor.visitOpensModuleDirective
(Java.OpensModuleDirective omd) Visitor.AtomVisitor.visitPackage
(Java.Package p) Invoked byJava.Package.accept(Visitor.AtomVisitor)
.Visitor.TypeDeclarationVisitor.visitPackageMemberAnnotationTypeDeclaration
(Java.PackageMemberAnnotationTypeDeclaration pmatd) Visitor.TypeDeclarationVisitor.visitPackageMemberClassDeclaration
(Java.PackageMemberClassDeclaration pmcd) Visitor.TypeDeclarationVisitor.visitPackageMemberEnumDeclaration
(Java.PackageMemberEnumDeclaration pmed) Visitor.TypeDeclarationVisitor.visitPackageMemberInterfaceDeclaration
(Java.PackageMemberInterfaceDeclaration pmid) Visitor.RvalueVisitor.visitParameterAccess
(Java.ParameterAccess pa) Visitor.LvalueVisitor.visitParenthesizedExpression
(Java.ParenthesizedExpression pe) Visitor.TypeVisitor.visitPrimitiveType
(Java.PrimitiveType bt) Visitor.ModuleDirectiveVisitor.visitProvidesModuleDirective
(Java.ProvidesModuleDirective pmd) Visitor.RvalueVisitor.visitQualifiedThisReference
(Java.QualifiedThisReference qtr) Visitor.TypeArgumentVisitor.visitReferenceType
(Java.ReferenceType rt) Visitor.TypeVisitor.visitReferenceType
(Java.ReferenceType rt) Visitor.ModuleDirectiveVisitor.visitRequiresModuleDirective
(Java.RequiresModuleDirective rmd) Visitor.BlockStatementVisitor.visitReturnStatement
(Java.ReturnStatement rs) Visitor.ArrayInitializerOrRvalueVisitor.visitRvalue
(Java.Rvalue rvalue) Visitor.AtomVisitor.visitRvalue
(Java.Rvalue rv) Invoked byJava.Rvalue.accept(Visitor.AtomVisitor)
.Visitor.ElementValueVisitor.visitRvalue
(Java.Rvalue rv) Visitor.TypeVisitor.visitRvalueMemberType
(Java.RvalueMemberType rmt) Visitor.RvalueVisitor.visitSimpleConstant
(Java.SimpleConstant sl) Visitor.TypeVisitor.visitSimpleType
(Java.SimpleType st) Invoked byJava.SimpleType.accept(Visitor.TypeVisitor)
Visitor.AnnotationVisitor.visitSingleElementAnnotation
(Java.SingleElementAnnotation sea) Visitor.ImportVisitor.visitSingleStaticImportDeclaration
(Java.AbstractCompilationUnit.SingleStaticImportDeclaration ssid) Visitor.ImportVisitor.visitSingleTypeImportDeclaration
(Java.AbstractCompilationUnit.SingleTypeImportDeclaration stid) Visitor.ImportVisitor.visitStaticImportOnDemandDeclaration
(Java.AbstractCompilationUnit.StaticImportOnDemandDeclaration siodd) Visitor.RvalueVisitor.visitStringLiteral
(Java.StringLiteral sl) Visitor.LvalueVisitor.visitSuperclassFieldAccessExpression
(Java.SuperclassFieldAccessExpression scfae) Visitor.RvalueVisitor.visitSuperclassMethodInvocation
(Java.SuperclassMethodInvocation smi) Visitor.BlockStatementVisitor.visitSuperConstructorInvocation
(Java.SuperConstructorInvocation sci) Visitor.ConstructorInvocationVisitor.visitSuperConstructorInvocation
(Java.SuperConstructorInvocation sci) Visitor.BlockStatementVisitor.visitSwitchStatement
(Java.SwitchStatement ss) Visitor.BlockStatementVisitor.visitSynchronizedStatement
(Java.SynchronizedStatement ss) Visitor.RvalueVisitor.visitThisReference
(Java.ThisReference tr) Visitor.BlockStatementVisitor.visitThrowStatement
(Java.ThrowStatement ts) Visitor.BlockStatementVisitor.visitTryStatement
(Java.TryStatement ts) Invoked byJava.Atom.accept(Visitor.AtomVisitor)
.Visitor.ImportVisitor.visitTypeImportOnDemandDeclaration
(Java.AbstractCompilationUnit.TypeImportOnDemandDeclaration tiodd) Visitor.RvalueVisitor.visitUnaryOperation
(Java.UnaryOperation uo) Visitor.ModuleDirectiveVisitor.visitUsesModuleDirective
(Java.UsesModuleDirective umd) Visitor.TryStatementResourceVisitor.visitVariableAccessResource
(Java.TryStatement.VariableAccessResource var) Visitor.BlockStatementVisitor.visitWhileStatement
(Java.WhileStatement ws) Visitor.TypeArgumentVisitor.visitWildcard
(Java.Wildcard w) Method parameters in org.codehaus.janino with annotations of type NullableModifier and TypeMethodDescriptionvoid
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).CodeContext.allocateLocalVariable
(short size, String name, IType type) Allocates space for a local variable of the given size (1 or 2) on the local variable array.CodeContext.allocateLocalVariable
(short size, 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, String localVariableName) private Java.LocalVariableSlot
UnitCompiler.allocateLocalVariableSlotAndMarkAsInitialized
(IType localVariableType, String localVariableName) private static <T> T
UnitCompiler.assertNonNull
(T subject) private void
UnitCompiler.assignmentConversion
(Java.Locatable locatable, IType sourceType, IType targetType, Object constantValue) Implements "assignment conversion" (JLS7 5.2) (more precisely: "assignment contexts".)private void
UnitCompiler.castConversion
(Java.Locatable locatable, IType sourceType, IType targetType, Object constantValue) protected Java.Type[]
ExpressionEvaluator.classesToTypes
(Location location, Class<?>... classes) protected Java.Type[]
SimpleCompiler.classesToTypes
(Location location, Class<?>[] classes) private IType
UnitCompiler.compileArithmeticOperation
(Java.Locatable locatable, IType firstOperandType, Iterator<Java.Rvalue> operands, String operator) Executes an arithmetic operation on a sequence of operands.private void
UnitCompiler.compileError
(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, 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, 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, Object value) Pushes one value on the operand stack and pushes the respectiveClassFile.StackMapTableAttribute.VerificationTypeInfo
operand to the stack map.private Object
UnitCompiler.constantAssignmentConversion
(Java.Locatable locatable, Object value, IType targetType) Implements "assignment conversion" (JLS7 5.2) on a constant value.final void
void
void
(package private) void
ScriptEvaluator.cook
(String fileName, Java.AbstractCompilationUnit.ImportDeclaration[] importDeclarations, Java.BlockStatement[][] statementss, Java.MethodDeclarator[][] localMethodss) final void
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
boolean
TwoSimpleCompiler
s are regarded equal iff Both are objects of the same class (e.g.boolean
protected Class
<?> Implementation ofClassLoader.findClass(String)
.(package private) IClass[]
IClass.findMemberType
(String name) If name isnull
, finds allIClass
es visible in the scope of the current class.private void
IClass.findMemberType
(String name, Collection<IClass> result) private IClass
UnitCompiler.findMemberType
(IType iType, String name, Java.TypeArgument[] typeArguments, Location location) Finds a named type in the givenIClass
orIParameterizedType
.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.private IType
UnitCompiler.getReferenceType
(Location location, 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, String[] identifiers, int n, Java.TypeArgument[] typeArguments) void
FilterWarningHandler.handleWarning
(String handle, String message, Location location) void
FilterWarningHandler.handleWarning
(String handle, 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 Byte
UnitCompiler.isByteConstant
(Object o) private static String
private static String
(package private) final Java.AbstractCompilationUnit.ImportDeclaration[]
ClassBodyEvaluator.makeImportDeclarations
(Parser parser) private static final StackMap
CodeContext.mergeStackMaps
(StackMap sm1, StackMap sm2) private static final 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, Class<T> elementType) 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) Parser.parseAnnotationTypeDeclarationRest
(String docComment, Java.Modifier[] modifiers, Parser.InterfaceDeclarationContext context) AnnotationTypeDeclarationRest := Identifier AnnotationTypeBodyParser.parseClassDeclarationRest
(String docComment, Java.Modifier[] modifiers, Parser.ClassDeclarationContext context) ClassDeclarationRest := Identifier [ typeParameters ] [ 'extends' ReferenceType ] [ 'implements' ReferenceTypeList ] ClassBodyParser.parseConstructorDeclarator
(String docComment, Java.Modifier[] modifiers) ConstructorDeclarator := Identifier FormalParameters [ 'throws' ReferenceTypeList ] '{' [ 'this' Arguments ';' | 'super' Arguments ';' | Primary '.' 'super' Arguments ';' ] BlockStatements '}'Parser.parseEnumDeclarationRest
(String docComment, Java.Modifier[] modifiers, Parser.ClassDeclarationContext context) EnumDeclarationRest := Identifier [ 'implements' ReferenceTypeList ] EnumBody(package private) Java.AbstractCompilationUnit.ImportDeclaration[]
ScriptEvaluator.parseImports
(Parser parser) Parser.parseInterfaceDeclarationRest
(String docComment, Java.Modifier[] modifiers, Parser.InterfaceDeclarationContext context) InterfaceDeclarationRest := Identifier [ typeParameters ] [ 'extends' ReferenceTypeList ] InterfaceBodyParser.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 )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 )Parser.parsePackageDeclarationRest
(String docComment, Java.Modifier[] modifiers) PackageDeclaration := { PackageModifier } 'package' identifier { '.' identifier} ';'Parser.parsePackageMemberTypeDeclarationRest
(String docComment, Java.Modifier[] modifiers) PackageMemberTypeDeclarationRest := 'class' ClassDeclarationRest | 'enum' EnumDeclarationRest | 'interface' InterfaceDeclarationRest '@' 'interface' AnnotationTypeDeclarationRestprivate static File[]
AntCompilerAdapter.pathToFiles
(org.apache.tools.ant.types.Path path) Converts aPath
into an array ofFile
s.private static File[]
AntCompilerAdapter.pathToFiles
(org.apache.tools.ant.types.Path path, 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
(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
.private boolean
UnitCompiler.tryAssignmentConversion
(Java.Locatable locatable, IType sourceType, IType targetType, Object constantValue) private boolean
UnitCompiler.tryCastConversion
(Java.Locatable locatable, IType sourceType, IType targetType, Object constantValue) private boolean
UnitCompiler.tryConstantAssignmentConversion
(Java.Locatable locatable, Object constantValue, IType targetType) Checks if "constant assignment conversion" (JLS7 5.2, paragraph 1) is possible.private static String
Decodes any escape sequences like\n
, or\377
, but not\uxxxx
.private void
Unparser.unparseTypeParameters
(Java.TypeParameter[] typeParameters) UnitCompiler.verificationTypeInfo
(IType type) private void
Issues a warning with the given message and location and returns.private void
Issues a warning with the given message and location and returns.private void
Issues a warning with the given message an location an returns.Constructor parameters in org.codehaus.janino with annotations of type NullableModifierConstructorDescriptionAbstractClassDeclaration
(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 instead(package private)
CompilerIClassLoader
(ResourceFinder sourceFinder, ResourceFinder classFileFinder, IClassLoader parentIClassLoader) ConstructorDeclarator
(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) protected
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) protected
InterfaceDeclaration
(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes) protected
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) (package private)
LocalScope
(CodeContext.LocalScope parent, short startingLocalSlot, StackMap startingStackMap) LocalVariableSlot
(String name, short slotNumber, IType type) LocalVariableSlot
(String name, short slotNumber, IType 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, 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) protected
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) 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).Sets up a scanner that reads tokens from the givenReader
.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) 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
Fields in org.codehaus.janino.util with annotations of type NullableModifier and TypeFieldDescriptionprivate List
<StringBuilder> AutoIndentWriter.tabulatorBuffer
Iff non-null, then we are in "tab mode".Methods in org.codehaus.janino.util with annotations of type NullableModifier and TypeMethodDescription<R,
EX extends Throwable>
RClassFile.Annotation.accept
(ClassFile.ElementValue.Visitor<R, EX> visitor) <R,
EX extends Throwable>
RClassFile.ArrayElementValue.accept
(ClassFile.ElementValue.Visitor<R, EX> visitor) protected abstract <R,
EX extends Throwable>
RClassFile.ConstantElementValue.accept
(ClassFile.ConstantElementValue.Visitor<R, EX> visitor) Invokes the respective method of theClassFile.ConstantElementValue.Visitor
.<R,
EX extends Throwable>
RClassFile.ConstantElementValue.accept
(ClassFile.ElementValue.Visitor<R, EX> visitor) <R,
EX extends Throwable>
RClassFile.ElementValue.accept
(ClassFile.ElementValue.Visitor<R, EX> visitor) Invokes the respective method of theClassFile.ElementValue.Visitor
.<R,
EX extends Throwable>
RClassFile.EnumConstValue.accept
(ClassFile.ElementValue.Visitor<R, EX> visitor) DeepCopier.copyOptionalArrayInitializer
(Java.ArrayInitializer subject) DeepCopier.copyOptionalArrayInitializerOrRvalue
(Java.ArrayInitializerOrRvalue subject) DeepCopier.copyOptionalArrayType
(Java.ArrayType subject) DeepCopier.copyOptionalAtom
(Java.Atom subject) DeepCopier.copyOptionalBlock
(Java.Block subject) DeepCopier.copyOptionalBlockStatement
(Java.BlockStatement subject) DeepCopier.copyOptionalConstructorInvocation
(Java.ConstructorInvocation subject) DeepCopier.copyOptionalElementValue
(Java.ElementValue subject) DeepCopier.copyOptionalPackageDeclaration
(Java.PackageDeclaration subject) DeepCopier.copyOptionalReferenceType
(Java.ReferenceType subject) DeepCopier.copyOptionalReferenceTypes
(Java.ReferenceType[] subject) DeepCopier.copyOptionalRvalue
(Java.Rvalue subject) DeepCopier.copyOptionalRvalues
(Java.Rvalue[] subject) DeepCopier.copyOptionalStatements
(Collection<? extends Java.BlockStatement> subject) DeepCopier.copyOptionalType
(Java.Type subject) DeepCopier.copyOptionalTypeArguments
(Java.TypeArgument[] subject) DeepCopier.copyOptionalTypeParameters
(Java.TypeParameter[] subject) private ClassFile.AttributeInfo
ClassFile.findAttribute
(List<ClassFile.AttributeInfo> attributes, String attributeName) Finds the named attribute in the attributes.private ClassFile.AnnotationsAttribute
ClassFile.getAnnotationsAttribute
(boolean runtimeVisible, List<ClassFile.AttributeInfo> attributes) Finds theRuntime[In]visibleAnnotations
attribute in the attributes.ClassFile.getInnerClassesAttribute()
Finds theInnerClasses
attribute of this class file.ClassFile.getSignatureAttribute()
Method parameters in org.codehaus.janino.util with annotations of type NullableModifier and TypeMethodDescriptionClassFile.addFieldInfo
(short accessFlags, String fieldName, String fieldTypeFd, Object constantValue) Creates aClassFile.FieldInfo
and adds it to this class.private static <T> T
DeepCopier.assertNotNull
(T subject) DeepCopier.copyOptionalArrayInitializer
(Java.ArrayInitializer subject) DeepCopier.copyOptionalArrayInitializerOrRvalue
(Java.ArrayInitializerOrRvalue subject) DeepCopier.copyOptionalArrayType
(Java.ArrayType subject) DeepCopier.copyOptionalAtom
(Java.Atom subject) DeepCopier.copyOptionalBlock
(Java.Block subject) DeepCopier.copyOptionalBlockStatement
(Java.BlockStatement subject) DeepCopier.copyOptionalConstructorInvocation
(Java.ConstructorInvocation subject) DeepCopier.copyOptionalElementValue
(Java.ElementValue subject) DeepCopier.copyOptionalPackageDeclaration
(Java.PackageDeclaration subject) DeepCopier.copyOptionalReferenceType
(Java.ReferenceType subject) DeepCopier.copyOptionalReferenceTypes
(Java.ReferenceType[] subject) DeepCopier.copyOptionalRvalue
(Java.Rvalue subject) DeepCopier.copyOptionalRvalues
(Java.Rvalue[] subject) DeepCopier.copyOptionalStatements
(Collection<? extends Java.BlockStatement> subject) DeepCopier.copyOptionalType
(Java.Type subject) DeepCopier.copyOptionalTypeArguments
(Java.TypeArgument[] subject) DeepCopier.copyOptionalTypeParameters
(Java.TypeParameter[] subject) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
AutoIndentWriter.write
(char[] cbuf, int off, int len) void
Constructor parameters in org.codehaus.janino.util with annotations of type Nullable -
Uses of Nullable in org.codehaus.janino.util.signature
Fields in org.codehaus.janino.util.signature with annotations of type NullableModifier and TypeFieldDescriptionSignatureParser.FormalTypeParameter.classBound
The class that this formal type parameter (optionally) extends.SignatureParser.TypeArgument.fieldTypeSignature
Must be forSignatureParser.TypeArgument.Mode.ANY
, non-null
otherwise.Constructor parameters in org.codehaus.janino.util.signature with annotations of type NullableModifierConstructorDescriptionFormalTypeParameter
(String identifier, SignatureParser.FieldTypeSignature classBound, List<SignatureParser.FieldTypeSignature> interfaceBounds) TypeArgument
(SignatureParser.TypeArgument.Mode mode, SignatureParser.FieldTypeSignature fieldTypeSignature)
ICompiler.setSourceCharset(Charset)
instead