Uses of Class
org.codehaus.commons.compiler.CompileException
Packages that use CompileException
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).The core of the Janino Java compiler.
Sample applications for the Janino Java compiler.
Application-independent helper classes.
-
Uses of CompileException in org.codehaus.commons.compiler
Methods in org.codehaus.commons.compiler that throw CompileExceptionModifier and TypeMethodDescriptionfinal boolean
boolean
Reads a set of Java compilation units (a.k.a.void
final void
Cookable.cook
(InputStream is) final void
Cookable.cook
(InputStream is, String encoding) final void
final void
final void
Cookable.cook
(String fileName, InputStream is) final void
Cookable.cook
(String fileName, InputStream is, String encoding) abstract void
final void
void
ICookable.cook
(InputStream is) Reads, scans, parses and compiles Java tokens from the givenInputStream
, encoded in the "platform default encoding".void
ICookable.cook
(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
.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
Reads, scans, parses and compiles Java tokens from the givenReader
.void
Reads, scans, parses and compiles Java tokens from the givenString
.void
IMultiCookable.cook
(InputStream... inputStreams) Same asCookable.cook(InputStream)
, but cooks a set of documents into one class.void
IMultiCookable.cook
(InputStream[] inputStreams, String[] encodings) Same asCookable.cook(InputStream, String)
, but cooks a set of documents into one class.void
Same asCookable.cook(Reader)
, but cooks a set of documents into one class.void
Same asCookable.cook(String)
, but cooks a set of documents into one class.void
IMultiCookable.cook
(String[] fileNames, InputStream[] inputStreams) Same asCookable.cook(String, InputStream)
, but cooks a set of documents into one class.void
IMultiCookable.cook
(String[] fileNames, InputStream[] inputStreams, String[] encodings) Same asCookable.cook(String, InputStream, String)
, but cooks a set of documents into one class.void
Same asCookable.cook(String, Reader)
, but cooks a set of documents into one class.void
Same asCookable.cook(String, String)
, but cooks a set of documents into one class.void
Same asICookable.cook(Reader)
, but for multiple scripts.void
Same asICookable.cook(String)
, but for multiple scripts.void
Same asICookable.cook(String, Reader)
, but cooks a set of scripts into one class.void
Same asICookable.cook(String, String)
, but for multiple scripts.final void
MultiCookable.cook
(InputStream... inputStreams) final void
MultiCookable.cook
(InputStream[] inputStreams, String[] encodings) final void
final void
final void
MultiCookable.cook
(String[] fileNames, InputStream[] inputStreams) final void
MultiCookable.cook
(String[] fileNames, InputStream[] inputStreams, String[] encodings) abstract void
final void
final void
final void
final void
final void
void
Reads, scans, parses and compiles Java tokens from the givenFile
, encoded in the "platform default encoding".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, encoded in the "platform default encoding".void
Reads, scans, parses and compiles Java tokens from the named file with the given encoding.void
Same asCookable.cookFile(File)
, but cooks a set of documents into one class.void
Same asCookable.cookFile(File, String)
, but cooks a set of documents into one class.void
Same asCookable.cookFile(String)
, but cooks a set of documents into one class.void
Same asCookable.cookFile(String, String)
, but cooks a set of documents into one class.final void
final void
final void
final void
<T> T
IExpressionEvaluator.createFastEvaluator
(Reader reader, Class<? extends T> interfaceToImplement, String... parameterNames) <T> T
IExpressionEvaluator.createFastEvaluator
(String expression, Class<? extends T> interfaceToImplement, String... parameterNames) If the parameter and return types of the expression are known at compile time, then a "fast" expression evaluator can be instantiated throughIExpressionEvaluator.createFastEvaluator(String, Class, String[])
.<T> T
IScriptEvaluator.createFastEvaluator
(Reader reader, Class<T> interfaceToImplement, String[] parameterNames) If the parameter and return types of the expression are known at compile time, then a "fast" script evaluator can be instantiated through this method.<T> T
IScriptEvaluator.createFastEvaluator
(String script, Class<T> interfaceToImplement, String[] parameterNames) IClassBodyEvaluator.createInstance
(Reader reader) Scans, parses and compiles a class body from the tokens delivered by the the givenReader
, then creates and returns an instance of that class.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
. -
Uses of CompileException in org.codehaus.commons.compiler.jdk
Methods in org.codehaus.commons.compiler.jdk that throw CompileExceptionModifier and TypeMethodDescriptionvoid
void
void
protected void
void
void
void
protected final void
void
void
<T> T
ExpressionEvaluator.createFastEvaluator
(Reader reader, Class<? extends T> interfaceToImplement, String... parameterNames) <T> T
ExpressionEvaluator.createFastEvaluator
(String expression, Class<? extends T> interfaceToImplement, String... parameterNames) <T> T
ScriptEvaluator.createFastEvaluator
(Reader r, Class<T> interfaceToImplement, String[] parameterNames) <T> T
ScriptEvaluator.createFastEvaluator
(String script, Class<T> interfaceToImplement, String[] parameterNames) ClassBodyEvaluator.createInstance
(Reader reader) Constructors in org.codehaus.commons.compiler.jdk that throw CompileExceptionModifierConstructorDescriptionExpressionEvaluator
(String expression, Class<?> expressionType, String[] parameterNames, Class<?>[] parameterTypes) 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 script) 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 script, Class<?> returnType) Equivalent toScriptEvaluator
(String script, Class<?> returnType, String[] parameterNames, Class<?>[] parameterTypes) Equivalent toScriptEvaluator
(String script, Class<?> returnType, String[] parameterNames, Class<?>[] parameterTypes, Class<?>[] thrownExceptions) Equivalent to -
Uses of CompileException in org.codehaus.janino
Methods in org.codehaus.janino that return CompileExceptionModifier and TypeMethodDescriptionprotected final CompileException
Parser.compileException
(String message) Convenience method for throwing aCompileException
.protected static CompileException
Parser.compileException
(String message, Location location) Convenience method for throwing aCompileException
.protected final CompileException
TokenStreamImpl.compileException
(String message) Convenience method for throwing aCompileException
.Methods in org.codehaus.janino that throw CompileExceptionModifier and TypeMethodDescriptionprotected void
UnitCompiler.buildLocalVariableMap
(Java.CatchClause catchClause, Map<String, Java.LocalVariable> localVars) Adds the given localVars to the 'local variable map' of the given catchClause.void
protected final ClassLoader
SimpleCompiler.compileToClassLoader
(Java.AbstractCompilationUnit abstractCompilationUnit) Compiles the given compilation unit.void
UnitCompiler.compileUnit
(boolean debugSource, boolean debugLines, boolean debugVars, Collection<ClassFile> generatedClassFiles) Generates a set ofClassFile
objects which represent the classes and interfaces declared in the compilation unit.void
UnitCompiler.compileUnit
(boolean debugSource, boolean debugLines, boolean debugVars, UnitCompiler.ClassFileConsumer storesClassFiles) Generates a set ofClassFile
objects which represent the classes and interfaces declared in the compilation unit.final void
void
void
void
final void
final void
final void
LikeExpressionEvaluator.cook(Scanner)
, but cooks a set of scripts into one class.final void
On a 2 GHz Intel Pentium Core Duo under Windows XP with an IBM 1.4.2 JDK, compiling 10000 expressions "a + b" (integer) takes about 4 seconds and 56 MB of main memory.void
protected void
ScriptEvaluator.cook
(Java.CompilationUnit compilationUnit) Compiles the given compilationUnit, defines it into aClassLoader
, loads the generated class, gets the script methods from that class, and makes them available throughScriptEvaluator.getMethod(int)
.final void
ScriptEvaluator.cook
(Java.CompilationUnit compilationUnit, Collection<Java.MethodDeclarator> methodDeclarators) final void
final void
Cooks a set of scripts into one class.final void
Scans, parses and compiles a given compilation unit from the givenReader
.void
SimpleCompiler.cook
(Java.AbstractCompilationUnit abstractCompilationUnit) Cooks this compilation unit directly.void
Scans, parses and compiles a given compilation unit from the given scanner.static Object
ClassBodyEvaluator.createFastClassBodyEvaluator
(Scanner scanner, Class<?> baseType, ClassLoader parentClassLoader) Deprecated.static Object
ClassBodyEvaluator.createFastClassBodyEvaluator
(Scanner scanner, String className, Class<?> extendedClass, Class<?>[] implementedInterfaces, ClassLoader parentClassLoader) Deprecated.UseClassBodyEvaluator.createInstance(Reader)
instead<T> T
ExpressionEvaluator.createFastEvaluator
(Reader reader, Class<? extends T> interfaceToImplement, String... parameterNames) <T> T
ExpressionEvaluator.createFastEvaluator
(String script, Class<? extends T> interfaceToImplement, String... parameterNames) <T> T
ExpressionEvaluator.createFastEvaluator
(Scanner scanner, Class<T> interfaceToImplement, String... parameterNames) Notice: This method is not declared inIScriptEvaluator
, and is hence only available in this implementation oforg.codehaus.commons.compiler
.<T> T
ScriptEvaluator.createFastEvaluator
(Reader reader, Class<T> interfaceToImplement, String[] parameterNames) <T> T
ScriptEvaluator.createFastEvaluator
(String script, Class<T> interfaceToImplement, String[] parameterNames) <T> T
ScriptEvaluator.createFastEvaluator
(Scanner scanner, Class<?> interfaceToImplement, String[] parameterNames) Notice: This method is not declared inIScriptEvaluator
, and is hence only available in this implementation oforg.codehaus.commons.compiler
.static 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 className, Class<?> extendedType, Class<?> interfaceToImplement, String[] parameterNames, ClassLoader parentClassLoader) Deprecated.static Object
ScriptEvaluator.createFastScriptEvaluator
(String script, Class<?> interfaceToImplement, String[] parameterNames) 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 className, Class<?> extendedType, Class<?> interfaceToImplement, String[] parameterNames, ClassLoader parentClassLoader) Deprecated.ClassBodyEvaluator.createInstance
(Reader reader) void
Java.AbstractClassDeclaration.defineSyntheticField
(IClass.IField iField) 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.final IClass.IConstructor
IClass.findIConstructor
(IClass[] parameterTypes) final IClass.IMethod
IClass.findIMethod
(String methodName, IClass[] parameterTypes) UnitCompiler.findIMethod
(Java.MethodInvocation mi) Finds methods of the mi.
target
named mi.
methodName
, examines the argument types and chooses the most specific method.UnitCompiler.findIMethod
(Java.SuperclassMethodInvocation superclassMethodInvocation) 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.IClass.IAnnotation.getAnnotationType()
ITypeVariable.getBounds()
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.final IClass[]
IClass.getDeclaredIClasses()
Returns the classes and interfaces declared as members of the class (but not inherited classes and interfaces).protected IClass[]
ClassFileIClass.getDeclaredIClasses2()
protected abstract IClass[]
IClass.getDeclaredIClasses2()
final IClass
IClass.getDeclaringIClass()
protected IClass
ClassFileIClass.getDeclaringIClass2()
protected abstract IClass
IClass.getDeclaringIClass2()
IClass.IField.getDescriptor()
final MethodDescriptor
IClass.IInvocable.getDescriptor()
Returns the method descriptor of this constructor or method.IClass.IConstructor.getDescriptor2()
abstract MethodDescriptor
IClass.IInvocable.getDescriptor2()
Uncached implementation ofIClass.IInvocable.getDescriptor()
.IClass.IMethod.getDescriptor2()
IClass.IAnnotation.getElementValue
(String name) final IClass.IAnnotation[]
IClass.getIAnnotations()
protected IClass.IAnnotation[]
ClassFileIClass.getIAnnotations2()
protected IClass.IAnnotation[]
IClass.getIAnnotations2()
final IClass.IMethod[]
IClass.getIMethods()
Returns all methods declared in the class or interface, its superclasses and its superinterfaces.void
UnitCompiler.getIMethods
(IClass type, String methodName, List<IClass.IMethod> v) Adds all methods with the given methodName that are declared by the type, its superclasses and all their superinterfaces to the result list v.final IClass[]
IClass.getInterfaces()
Returns the interfaces implemented by the class, respectively the superinterfaces of the interface, respectively{
Cloneable
,
Serializable
}
for arrays.protected IClass[]
ClassFileIClass.getInterfaces2()
protected abstract IClass[]
IClass.getInterfaces2()
final ITypeVariable[]
IClass.getITypeVariables()
protected ITypeVariable[]
ClassFileIClass.getITypeVariables2()
protected abstract ITypeVariable[]
IClass.getITypeVariables2()
The uncached version ofIClass.getDeclaredIConstructors()
which must be implemented by derived classes.UnitCompiler.getLocalVariable
(Java.CatchParameter parameter) UnitCompiler.getLocalVariable
(Java.FunctionDeclarator.FormalParameter parameter) UnitCompiler.getLocalVariable
(Java.FunctionDeclarator.FormalParameter parameter, boolean isVariableArityParameter) UnitCompiler.getLocalVariable
(Java.LocalVariableDeclarationStatement lvds, Java.VariableDeclarator vd) 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()
final IClass[]
IClass.IInvocable.getParameterTypes()
Returns the types of the parameters of this constructor or method.abstract IClass[]
IClass.IInvocable.getParameterTypes2()
Opposed to theConstructor
, there is no magic "this$0
" parameter.abstract IClass
IClass.IMethod.getReturnType()
String[]
UnitCompiler.getSingleTypeImport
(String name, Location location) Checks if the given simple name was imported through a single type import.final IClass
IClass.getSuperclass()
Returns the superclass of the class.protected IClass
ClassFileIClass.getSuperclass2()
protected abstract IClass
IClass.getSuperclass2()
final IClass[]
IClass.IInvocable.getThrownExceptions()
Returns the types thrown by this constructor or method.abstract IClass[]
IClass.IInvocable.getThrownExceptions2()
abstract IClass
IClass.IField.getType()
static String[]
ExpressionEvaluator.guessParameterNames
(Scanner scanner) Guess the names of the parameters used in the given expression.static String[]
ScriptEvaluator.guessParameterNames
(Scanner scanner) Guesses the names of the parameters used in the given expression.void
FilterWarningHandler.handleWarning
(String handle, String message, Location location) final boolean
IClass.hasIMethod
(String methodName, IClass[] parameterTypes) boolean
IClass.implementsInterface
(IClass that) Ifthis
represents a class: Returntrue
if this class directly or indirectly implementsthat
interface.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.boolean
IClass.isAssignableFrom
(IClass that) Determines ifthis
is assignable from that.boolean
IClass.IInvocable.isLessSpecificThan
(IClass.IInvocable that) boolean
IClass.IMethod.isLessSpecificThan
(IClass.IInvocable that) boolean
IClass.IInvocable.isMoreSpecificThan
(IClass.IInvocable that) boolean
IClass.IMethod.isMoreSpecificThan
(IClass.IInvocable that) boolean
IClass.isSubclassOf
(IClass that) Returnstrue
if this class is an immediate or non-immediate subclass ofthat
class.protected void
ScriptEvaluator.makeStatements
(int idx, Parser parser, List<Java.BlockStatement> resultStatements, List<Java.MethodDeclarator> resultMethods) Parses statements from the parser until end-of-input.Parser.parseAbstractCompilationUnit()
CompilationUnit := [ PackageDeclaration ] { ImportDeclaration } { TypeDeclaration }Parser.parseAdditiveExpression()
AdditiveExpression := MultiplicativeExpression { ( '+' | '-' ) MultiplicativeExpression }Parser.parseAndExpression()
AndExpression := EqualityExpression { '&' EqualityExpression }Parser.parseAnnotationTypeDeclarationRest
(String docComment, Java.Modifier[] modifiers, Parser.InterfaceDeclarationContext context) AnnotationTypeDeclarationRest := Identifier AnnotationTypeBodyParser.parseArgumentList()
ArgumentList := Expression { ',' Expression }Parser.parseArguments()
Arguments := '(' [ ArgumentList ] ')'Parser.parseArrayInitializer()
ArrayInitializer := '{' [ VariableInitializer { ',' VariableInitializer } [ ',' ] '}'Parser.parseAssertStatement()
AssertStatement := 'assert' Expression [ ':' Expression ] ';'Parser.parseAssignmentExpression()
AssignmentExpression := ConditionalExpression [ AssignmentOperator AssignmentExpression ] AssignmentOperator := '=' | '*=' | '/=' | '%=' | '+=' | '-=' | '<<=' | '>>=' | '>>>=' | '&=' | '^=' | '|='Parser.parseBlock()
Block := '{' BlockStatements '}'Parser.parseBlockStatement()
BlockStatement := Statement | (1) 'class' ...Parser.parseBlockStatements()
BlockStatements := { BlockStatement }Parser.parseBreakStatement()
BreakStatement := 'break' [ Identifier ] ';'Parser.parseCatchParameter()
CatchFormalParameter := { VariableModifier } CatchType VariableDeclaratorId CatchType := UnannClassType { '|' ClassType } VariableModifier := Annotation | 'final' VariableDeclaratorId := Identifier [ Dims ] Dims := { Annotation } '[' ']' { { Annotation } '[' ']' } UnannClassType := Identifier [ TypeArguments ] | UnannClassOrInterfaceType '.' { Annotation } Identifier [ TypeArguments ] UnannInterfaceType := UnannClassType UnannClassOrInterfaceType := UnannClassType | UnannInterfaceType ClassType := { Annotation } Identifier [ TypeArguments ] | ClassOrInterfaceType '.' { Annotation } Identifier [ TypeArguments ]void
Parser.parseClassBody
(Java.AbstractClassDeclaration classDeclaration) ClassBody := '{' { ClassBodyDeclaration } '}'void
Parser.parseClassBodyDeclaration
(Java.AbstractClassDeclaration classDeclaration) ClassBodyDeclaration := ';' | ModifiersOpt ( Block | // Instance (JLS7 8.6) or static initializer (JLS7 8.7) 'void' Identifier MethodDeclarationRest | 'class' ClassDeclarationRest | 'interface' InterfaceDeclarationRest | ConstructorDeclarator | [ TypeArguments ] Type Identifier MethodDeclarationRest | Type Identifier FieldDeclarationRest ';' )Parser.parseClassDeclarationRest
(String docComment, Java.Modifier[] modifiers, Parser.ClassDeclarationContext context) ClassDeclarationRest := Identifier [ typeParameters ] [ 'extends' ReferenceType ] [ 'implements' ReferenceTypeList ] ClassBodyParser.parseConditionalAndExpression()
ConditionalAndExpression := InclusiveOrExpression { '&&' InclusiveOrExpression }Parser.parseConditionalExpression()
ConditionalExpression := ConditionalOrExpression [ '?' Expression ':' ConditionalExpression ]Parser.parseConditionalOrExpression()
ConditionalOrExpression := ConditionalAndExpression { '||' ConditionalAndExpression ]Parser.parseConstructorDeclarator
(String docComment, Java.Modifier[] modifiers) ConstructorDeclarator := Identifier FormalParameters [ 'throws' ReferenceTypeList ] '{' [ 'this' Arguments ';' | 'super' Arguments ';' | Primary '.' 'super' Arguments ';' ] BlockStatements '}'Parser.parseContinueStatement()
ContinueStatement := 'continue' [ Identifier ] ';'Parser.parseDimExpr()
DimExpr := '[' Expression ']'Parser.parseDimExprs()
DimExprs := DimExpr { DimExpr }Parser.parseDoStatement()
DoStatement := 'do' Statement 'while' '(' Expression ')' ';'Parser.parseEmptyStatement()
EmptyStatement := ';'void
Parser.parseEnumBody
(Java.EnumDeclaration enumDeclaration) EnumBody := '{' [ EnumConstant { ',' EnumConstant } [ ',' ] [ ';' ] { ClassBodyDeclaration } '}'Parser.parseEnumConstant()
EnumConstant := [ Annotations ] Identifier [ Arguments ] [ ClassBody ]Parser.parseEnumDeclarationRest
(String docComment, Java.Modifier[] modifiers, Parser.ClassDeclarationContext context) EnumDeclarationRest := Identifier [ 'implements' ReferenceTypeList ] EnumBodyParser.parseEqualityExpression()
EqualityExpression := RelationalExpression { ( '==' | '!=' ) RelationalExpression }Parser.parseExclusiveOrExpression()
ExclusiveOrExpression := AndExpression { '^' AndExpression }Parser.parseExpression()
Expression := AssignmentExpression | LambdaExpressionParser.parseExpressionList()
ExpressionList := Expression { ',' Expression }Parser.parseExpressionOrType()
Parser.parseExpressionStatement()
ExpressionStatement := Expression ';'Parser.parseFieldDeclarationRest
(String name) FieldDeclarationRest := VariableDeclaratorRest { ',' VariableDeclarator }Parser.parseFormalParameter
(boolean[] hasEllipsis) FormalParameter := [ 'final' ] Type FormalParameterRestParser.parseFormalParameterList()
FormalParameterList := FormalParameter { ',' FormalParameter }Parser.parseFormalParameterListRest
(Java.Type firstParameterType) FormalParameterListRest := Identifier { ',' FormalParameter }Parser.parseFormalParameterRest
(Java.Modifier[] modifiers, Java.Type type, boolean[] hasEllipsis) FormalParameterRest := [ '.' '.' '.' ] Identifier BracketsOptParser.parseFormalParameters()
FormalParameters := '(' [ FormalParameterList ] ')'Parser.parseForStatement()
ForStatement := 'for' '(' [ ForInit ] ';' [ Expression ] ';' [ ExpressionList ] ')' Statement | 'for' '(' FormalParameter ':' Expression ')' Statement ForInit := Modifiers Type VariableDeclarators | ModifiersOpt PrimitiveType VariableDeclarators | Expression VariableDeclarators (1) | Expression { ',' Expression }Parser.parseIfStatement()
IfStatement := 'if' '(' Expression ')' Statement [ 'else' Statement ]Parser.parseImportDeclaration()
ImportDeclaration := 'import' ImportDeclarationBody ';'Parser.parseImportDeclarationBody()
ImportDeclarationBody := [ 'static' ] Identifier { '.' Identifier } [ '.' '*' ]Parser.parseInclusiveOrExpression()
InclusiveOrExpression := ExclusiveOrExpression { '|' ExclusiveOrExpression }void
Parser.parseInterfaceBody
(Java.InterfaceDeclaration interfaceDeclaration) InterfaceBody := '{' { ';' | ModifiersOpt ( 'void' Identifier MethodDeclarationRest | 'class' ClassDeclarationRest | 'interface' InterfaceDeclarationRest | Type Identifier ( MethodDeclarationRest | FieldDeclarationRest ) ) } '}'Parser.parseInterfaceDeclarationRest
(String docComment, Java.Modifier[] modifiers, Parser.InterfaceDeclarationContext context) InterfaceDeclarationRest := Identifier [ typeParameters ] [ 'extends' ReferenceTypeList ] InterfaceBodyParser.parseLabeledStatement()
LabeledStatement := Identifier ':' StatementParser.parseLiteral()
Literal := IntegerLiteral | FloatingPointLiteral | BooleanLiteral | CharacterLiteral | StringLiteral | NullLiteralParser.parseMethodBody()
MethodBody := BlockParser.parseMethodDeclaration()
Equivalent withparseMethodDeclaration(false, MethodDeclarationContext.CLASS_DECLARATION)
.Parser.parseMethodDeclaration
(boolean allowDefaultClause, Parser.MethodDeclarationContext context) MethodDeclaration := [ DocComment ] Modifiers [ TypeParameters ] VoidOrType Identifier MethodDeclarationRestParser.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.parseModifiers()
Modifiers := { Modifier }Parser.parseModuleDeclarationRest
(Java.Modifier[] modifiers) ModuleDeclarationRest := [ 'open' ] 'module' identifier { '.' identifier} '{' { ModuleDirective } '}'Parser.parseMultiplicativeExpression()
MultiplicativeExpression := UnaryExpression { ( '*' | '/' | '%' ) UnaryExpression }Parser.parseOptionalModifier()
Modifier := Annotation | 'public' | 'protected' | 'private' | 'static' | 'abstract' | 'final' | 'native' | 'synchronized' | 'transient' | 'volatile' | 'strictfp' | 'default'Parser.parsePackageDeclaration()
PackageDeclaration := 'package' QualifiedIdentifier ';'Parser.parsePackageDeclarationRest
(String docComment, Java.Modifier[] modifiers) PackageDeclaration := { PackageModifier } 'package' identifier { '.' identifier} ';'Parser.parsePackageMemberTypeDeclaration()
PackageMemberTypeDeclaration := ModifiersOpt PackageMemberTypeDeclarationRestParser.parsePrimary()
Primary := CastExpression | // CastExpression 15.16 '(' Expression ')' | // ParenthesizedExpression 15.8.5 Literal | // Literal 15.8.1 Name | // AmbiguousName Name Arguments | // MethodInvocation Name '[]' { '[]' } | // ArrayType 10.1 Name '[]' { '[]' } '.' 'class' | // ClassLiteral 15.8.2 'this' | // This 15.8.3 'this' Arguments | // Alternate constructor invocation 8.8.5.1 'super' Arguments | // Unqualified superclass constructor invocation 8.8.5.1 'super' '.' Identifier | // SuperclassFieldAccess 15.11.2 'super' '.' Identifier Arguments | // SuperclassMethodInvocation 15.12.4.9 NewClassInstance | NewAnonymousClassInstance | // ClassInstanceCreationExpression 15.9 NewArray | // ArrayCreationExpression 15.10 NewInitializedArray | // ArrayInitializer 10.6 PrimitiveType { '[]' } | // Type PrimitiveType { '[]' } '.' 'class' | // ClassLiteral 15.8.2 'void' '.' 'class' | // ClassLiteral 15.8.2 MethodReference // MethodReference JLS9 15.13 Name := Identifier { '.' Identifier } CastExpression := '(' PrimitiveType { '[]' } ')' UnaryExpression | '(' Expression ')' UnaryExpression NewClassInstance := 'new' ReferenceType Arguments NewAnonymousClassInstance := 'new' ReferenceType Arguments [ ClassBody ] NewArray := 'new' Type DimExprs { '[]' } NewInitializedArray := 'new' ArrayType ArrayInitializerString[]
Parser.parseQualifiedIdentifier()
QualifiedIdentifier := Identifier { '.' Identifier }Parser.parseReferenceType()
ReferenceType := { Annotation } QualifiedIdentifier [ TypeArguments ]Parser.parseReferenceTypeList()
ReferenceTypeList := ReferenceType { ',' ReferenceType }Parser.parseRelationalExpression()
RelationalExpression := ShiftExpression { 'instanceof' ReferenceType | '<' ShiftExpression [ { ',' TypeArgument } '>' ] | '<' TypeArgument [ { ',' TypeArgument } '>' ] | ( '>' | '<=' | '>=' ) ShiftExpression }Parser.parseReturnStatement()
ReturnStatement := 'return' [ Expression ] ';'Parser.parseSelector
(Java.Atom atom) Selector := '.' Identifier | // FieldAccess 15.11.1 '.' Identifier Arguments | // MethodInvocation '.' '<' TypeList '>' 'super' Arguments // Superconstructor invocation (?) '.' '<' TypeList '>' 'super' '.' .Parser.parseShiftExpression()
ShiftExpression := AdditiveExpression { ( '<<' | '>>' | '>>>' ) AdditiveExpression }Parser.parseStatement()
Statement := LabeledStatement | Block | IfStatement | ForStatement | WhileStatement | DoStatement | TryStatement | 'switch' ...Parser.parseSwitchStatement()
SwitchStatement := 'switch' '(' Expression ')' '{' { SwitchLabels BlockStatements } '}' SwitchLabels := SwitchLabels { SwitchLabels } SwitchLabel := 'case' Expression ':' | 'default' ':'Parser.parseSynchronizedStatement()
SynchronizedStatement := 'synchronized' '(' expression ')' BlockParser.parseThrowStatement()
ThrowStatement := 'throw' Expression ';'Parser.parseTryStatement()
TryStatement := 'try' Block Catches [ Finally ] | 'try' Block Finally Catches := CatchClause { CatchClause } CatchClause := 'catch' '(' FormalParameter ')' Block Finally := 'finally' BlockParser.parseType()
Type := ( 'byte' | 'short' | 'char' | 'int' | 'long' | 'float' | 'double' | 'boolean' | ReferenceType ) { '[' ']' }Parser.parseUnaryExpression()
UnaryExpression := { PrefixOperator } Primary { Selector } { PostfixOperator } PrefixOperator := '++' | '--' | '+' | '-' | '~' | '!' PostfixOperator := '++' | '--'Parser.parseVariableDeclarator()
VariableDeclarator := Identifier VariableDeclaratorRestParser.parseVariableDeclaratorRest
(String name) VariableDeclaratorRest := { '[' ']' } [ '=' VariableInitializer ]Parser.parseVariableDeclarators()
VariableDeclarators := VariableDeclarator { ',' VariableDeclarator }Parser.parseVariableInitializer()
VariableInitializer := ArrayInitializer | ExpressionParser.parseVoidOrType()
VoidOrType := 'void' | TypeParser.parseWhileStatement()
WhileStatement := 'while' '(' Expression ')' StatementParser.peek()
boolean
int
boolean
int
TokenStream.peek()
boolean
int
Checks whether the value of the next token equals any of the suspected; does not consume the next token.boolean
int
Checks whether the type of the next token is any of the suspected; does not consume the next token.TokenStreamImpl.peek()
boolean
int
boolean
int
Parser.peekNextButOne()
boolean
Parser.peekNextButOne
(String suspected) boolean
Parser.peekNextButOne
(TokenType suspected) TokenStream.peekNextButOne()
boolean
TokenStream.peekNextButOne
(String suspected) TokenStreamImpl.peekNextButOne()
boolean
TokenStreamImpl.peekNextButOne
(String suspected) boolean
int
boolean
Checks whether the value of the next token equals the suspected; if so, consumes the token.int
Checks whether the value of the next token is one of the suspected; if so, consumes the token.Checks whether the type of the next token is the suspected; if so, consumes the token.int
Checks whether the type of the next token is one of the suspected; if so, consumes the token.boolean
int
int
Scanner.produce()
Produces and returns the next token.Parser.read()
void
int
TokenStream.read()
void
Verifies that the value of the next token equals expected, and consumes the token.int
Verifies that the value of the next token equals one of the expected, and consumes the token.Verifies that the type of the next token is the expected, and consumes the token.int
Verifies that the type of the next token is one of the expected, and consumes the token.TokenStreamImpl.read()
void
int
int
void
Java.AbstractAnnotation.throwCompileException
(String message) void
Java.AbstractTypeDeclaration.throwCompileException
(String message) void
Java.Locatable.throwCompileException
(String message) Throws aCompileException
with the given message and this object's location.void
Java.Located.throwCompileException
(String message) final Java.Lvalue
Java.Atom.toLvalueOrCompileException()
final Java.Rvalue
Java.Atom.toRvalueOrCompileException()
final Java.Type
Java.Atom.toTypeOrCompileException()
Constructors in org.codehaus.janino that throw CompileExceptionModifierConstructorDescriptionClassBodyEvaluator
(String classBody) Equivalent toClassBodyEvaluator
(String fileName, InputStream is) Equivalent toClassBodyEvaluator
(String fileName, Reader reader) 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 toExpressionEvaluator
(String expression, Class<?> expressionType, String[] parameterNames, Class<?>[] parameterTypes) Equivalent toExpressionEvaluator
(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.ExpressionStatement
(Java.Rvalue rvalue) ScriptEvaluator
(String script) 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 script, Class<?> returnType) Equivalent toScriptEvaluator
(String script, Class<?> returnType, String[] parameterNames, Class<?>[] parameterTypes) Equivalent toScriptEvaluator
(String script, Class<?> returnType, String[] parameterNames, Class<?>[] parameterTypes, Class<?>[] thrownExceptions) 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 toSimpleCompiler
(String fileName) Equivalent toSimpleCompiler
(String fileName, InputStream is) Equivalent toSimpleCompiler
(String fileName, Reader in) Equivalent toSimpleCompiler
(Scanner scanner, ClassLoader parentClassLoader) Equivalent to -
Uses of CompileException in org.codehaus.janino.samples
Methods in org.codehaus.janino.samples that throw CompileException -
Uses of CompileException in org.codehaus.janino.util
Methods in org.codehaus.janino.util that throw CompileExceptionModifier and TypeMethodDescriptionDeepCopier.copyAbstractCompilationUnit
(Java.AbstractCompilationUnit subject) DeepCopier.copyAlternateConstructorInvocation
(Java.AlternateConstructorInvocation subject) DeepCopier.copyAmbiguousName
(Java.AmbiguousName subject) DeepCopier.copyAnnotation
(Java.Annotation subject) DeepCopier.copyAnnotations
(Java.Annotation[] subject) DeepCopier.copyAnonymousClassDeclaration
(Java.AnonymousClassDeclaration subject) DeepCopier.copyArrayAccessExpression
(Java.ArrayAccessExpression subject) DeepCopier.copyArrayCreationReference
(Java.ArrayCreationReference subject) DeepCopier.copyArrayInitializer
(Java.ArrayInitializer subject) DeepCopier.copyArrayInitializerOrRvalue
(Java.ArrayInitializerOrRvalue subject) DeepCopier.copyArrayInitializerOrRvalues
(Java.ArrayInitializerOrRvalue[] subject) DeepCopier.copyArrayLength
(Java.ArrayLength subject) DeepCopier.copyArrayType
(Java.ArrayType subject) DeepCopier.copyAssertStatement
(Java.AssertStatement subject) DeepCopier.copyAssignment
(Java.Assignment subject) DeepCopier.copyBinaryOperation
(Java.BinaryOperation subject) DeepCopier.copyBlock
(Java.Block b) DeepCopier.copyBlockStatement
(Java.BlockStatement subject) DeepCopier.copyBlockStatements
(Collection<? extends Java.BlockStatement> subject) DeepCopier.copyBooleanLiteral
(Java.BooleanLiteral subject) DeepCopier.copyBreakStatement
(Java.BreakStatement subject) DeepCopier.copyCatchClause
(Java.CatchClause subject) DeepCopier.copyCatchClauses
(Collection<? extends Java.CatchClause> subject) DeepCopier.copyCatchParameter
(Java.CatchParameter subject) DeepCopier.copyCharacterLiteral
(Java.CharacterLiteral subject) DeepCopier.copyClassInstanceCreationReference
(Java.ClassInstanceCreationReference subject) DeepCopier.copyClassLiteral
(Java.ClassLiteral subject) DeepCopier.copyCompilationUnit
(Java.CompilationUnit subject) DeepCopier.copyConditionalExpression
(Java.ConditionalExpression subject) DeepCopier.copyConstructorDeclarator
(Java.ConstructorDeclarator subject) DeepCopier.copyConstructorInvocation
(Java.ConstructorInvocation subject) DeepCopier.copyContinueStatement
(Java.ContinueStatement subject) DeepCopier.copyCrement
(Java.Crement subject) DeepCopier.copyDoStatement
(Java.DoStatement subject) DeepCopier.copyElementValue
(Java.ElementValue subject) DeepCopier.copyElementValueArrayInitializer
(Java.ElementValueArrayInitializer subject) DeepCopier.copyElementValuePair
(Java.ElementValuePair subject) DeepCopier.copyElementValuePairs
(Java.ElementValuePair[] subject) DeepCopier.copyElementValues
(Java.ElementValue[] subject) DeepCopier.copyEmptyStatement
(Java.EmptyStatement subject) DeepCopier.copyEnumConstant
(Java.EnumConstant subject) DeepCopier.copyExpressionStatement
(Java.ExpressionStatement es) DeepCopier.copyFieldAccess
(Java.FieldAccess subject) DeepCopier.copyFieldAccessExpression
(Java.FieldAccessExpression subject) DeepCopier.copyFieldDeclaration
(Java.FieldDeclaration subject) DeepCopier.copyFieldDeclarationOrInitializer
(Java.FieldDeclarationOrInitializer subject) DeepCopier.copyFloatingPointLiteral
(Java.FloatingPointLiteral subject) DeepCopier.copyForEachStatement
(Java.ForEachStatement fes) DeepCopier.copyFormalParameter
(Java.FunctionDeclarator.FormalParameter subject) DeepCopier.copyFormalParameters
(Java.FunctionDeclarator.FormalParameter[] subject) DeepCopier.copyFormalParameters
(Java.FunctionDeclarator.FormalParameters subject) DeepCopier.copyForStatement
(Java.ForStatement fs) DeepCopier.copyFunctionDeclarator
(Java.FunctionDeclarator subject) DeepCopier.copyIfStatement
(Java.IfStatement is) DeepCopier.copyImportDeclaration
(Java.AbstractCompilationUnit.ImportDeclaration subject) DeepCopier.copyImportDeclarations
(Java.AbstractCompilationUnit.ImportDeclaration[] subject) DeepCopier.copyInitializer
(Java.Initializer subject) DeepCopier.copyInstanceof
(Java.Instanceof subject) DeepCopier.copyIntegerLiteral
(Java.IntegerLiteral subject) DeepCopier.copyLabeledStatement
(Java.LabeledStatement ls) DeepCopier.copyLocalClassDeclaration
(Java.LocalClassDeclaration subject) DeepCopier.copyLocalClassDeclarationStatement
(Java.LocalClassDeclarationStatement subject) DeepCopier.copyLocalVariableAccess
(Java.LocalVariableAccess subject) DeepCopier.copyLocalVariableDeclarationStatement
(Java.LocalVariableDeclarationStatement subject) DeepCopier.copyLocalVariableDeclaratorResource
(Java.TryStatement.LocalVariableDeclaratorResource subject) DeepCopier.copyLvalue
(Java.Lvalue subject) DeepCopier.copyMarkerAnnotation
(Java.MarkerAnnotation subject) DeepCopier.copyMemberAnnotationTypeDeclaration
(Java.MemberAnnotationTypeDeclaration subject) DeepCopier.copyMemberClassDeclaration
(Java.MemberClassDeclaration subject) DeepCopier.copyMemberEnumDeclaration
(Java.MemberEnumDeclaration subject) DeepCopier.copyMemberInterfaceDeclaration
(Java.MemberInterfaceDeclaration subject) DeepCopier.copyMemberTypeDeclaration
(Java.MemberTypeDeclaration subject) DeepCopier.copyMethodDeclarator
(Java.MethodDeclarator subject) DeepCopier.copyMethodInvocation
(Java.MethodInvocation subject) DeepCopier.copyMethodReference
(Java.MethodReference subject) DeepCopier.copyModifier
(Java.Modifier modifier) DeepCopier.copyModifiers
(Java.Modifier[] subject) DeepCopier.copyModularCompilationUnit
(Java.ModularCompilationUnit subject) DeepCopier.copyNewAnonymousClassInstance
(Java.NewAnonymousClassInstance subject) DeepCopier.copyNewArray
(Java.NewArray subject) DeepCopier.copyNewClassInstance
(Java.NewClassInstance subject) DeepCopier.copyNewInitializedArray
(Java.NewInitializedArray subject) DeepCopier.copyNormalAnnotation
(Java.NormalAnnotation subject) DeepCopier.copyNullLiteral
(Java.NullLiteral 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) DeepCopier.copyPackage
(Java.Package subject) DeepCopier.copyPackageDeclaration
(Java.PackageDeclaration subject) DeepCopier.copyPackageMemberAnnotationTypeDeclaration
(Java.PackageMemberAnnotationTypeDeclaration subject) DeepCopier.copyPackageMemberClassDeclaration
(Java.PackageMemberClassDeclaration subject) DeepCopier.copyPackageMemberEnumDeclaration
(Java.PackageMemberEnumDeclaration subject) DeepCopier.copyPackageMemberInterfaceDeclaration
(Java.PackageMemberInterfaceDeclaration subject) DeepCopier.copyPackageMemberTypeDeclaration
(Java.PackageMemberTypeDeclaration subject) DeepCopier.copyParameterAccess
(Java.ParameterAccess pa) DeepCopier.copyParenthesizedExpression
(Java.ParenthesizedExpression subject) DeepCopier.copyPrimitiveType
(Java.PrimitiveType bt) DeepCopier.copyQualifiedThisReference
(Java.QualifiedThisReference subject) DeepCopier.copyReferenceType
(Java.ReferenceType subject) DeepCopier.copyReferenceTypes
(Java.ReferenceType[] subject) DeepCopier.copyResource
(Java.TryStatement.Resource subject) DeepCopier.copyResources
(Collection<? extends Java.TryStatement.Resource> subject) DeepCopier.copyReturnStatement
(Java.ReturnStatement subject) DeepCopier.copyRvalue
(Java.Rvalue subject) DeepCopier.copyRvalueMemberType
(Java.RvalueMemberType subject) DeepCopier.copyRvalues
(Collection<? extends Java.Rvalue> subject) DeepCopier.copyRvalues
(Java.Rvalue[] subject) DeepCopier.copySimpleLiteral
(Java.SimpleConstant subject) DeepCopier.copySimpleType
(Java.SimpleType st) DeepCopier.copySingleElementAnnotation
(Java.SingleElementAnnotation subject) DeepCopier.copySingleStaticImportDeclaration
(Java.AbstractCompilationUnit.SingleStaticImportDeclaration stid) DeepCopier.copySingleTypeImportDeclaration
(Java.AbstractCompilationUnit.SingleTypeImportDeclaration stid) DeepCopier.copyStatement
(Java.Statement subject) DeepCopier.copyStatements
(Collection<? extends Java.BlockStatement> subject) DeepCopier.copyStaticImportOnDemandDeclaration
(Java.AbstractCompilationUnit.StaticImportOnDemandDeclaration siodd) DeepCopier.copyStringLiteral
(Java.StringLiteral subject) DeepCopier.copySuperclassFieldAccessExpression
(Java.SuperclassFieldAccessExpression subject) DeepCopier.copySuperclassMethodInvocation
(Java.SuperclassMethodInvocation subject) DeepCopier.copySuperConstructorInvocation
(Java.SuperConstructorInvocation subject) DeepCopier.copySwitchBlockStatementGroup
(Java.SwitchStatement.SwitchBlockStatementGroup subject) DeepCopier.copySwitchBlockStatementGroups
(Collection<? extends Java.SwitchStatement.SwitchBlockStatementGroup> subject) DeepCopier.copySwitchStatement
(Java.SwitchStatement subject) DeepCopier.copySynchronizedStatement
(Java.SynchronizedStatement subject) DeepCopier.copyTextBlock
(Java.TextBlock subject) DeepCopier.copyThisReference
(Java.ThisReference subject) DeepCopier.copyThrowStatement
(Java.ThrowStatement subject) DeepCopier.copyTryStatement
(Java.TryStatement ts) DeepCopier.copyTypeArgument
(Java.TypeArgument subject) DeepCopier.copyTypeArguments
(Java.TypeArgument[] subject) DeepCopier.copyTypeBodyDeclaration
(Java.TypeBodyDeclaration subject) DeepCopier.copyTypeDeclaration
(Java.TypeDeclaration subject) DeepCopier.copyTypeImportOnDemandDeclaration
(Java.AbstractCompilationUnit.TypeImportOnDemandDeclaration tiodd) DeepCopier.copyTypeParameter
(Java.TypeParameter subject) DeepCopier.copyTypeParameters
(Java.TypeParameter[] subject) DeepCopier.copyUnaryOperation
(Java.UnaryOperation subject) DeepCopier.copyVariableAccessResource
(Java.TryStatement.VariableAccessResource subject) DeepCopier.copyVariableDeclarator
(Java.VariableDeclarator subject) DeepCopier.copyVariableDeclarators
(Java.VariableDeclarator[] subject) DeepCopier.copyWhileStatement
(Java.WhileStatement ws) DeepCopier.copyWildcard
(Java.Wildcard subject)
ClassBodyEvaluator.createInstance(Reader)
instead