Package | Description |
---|---|
org.codehaus.commons.compiler |
This package declares interfaces for the implementation of an
IExpressionEvaluator , an IScriptEvaluator , an
IClassBodyEvaluator and an ISimpleCompiler . |
org.codehaus.janino |
The classes in this package pose the core of the Janino JavaTM
compiler.
|
Modifier and Type | Field and Description |
---|---|
static Location |
Location.NOWHERE |
Modifier and Type | Method and Description |
---|---|
Location |
LocatedException.getLocation()
Returns the
Location object specified at
construction time (may be null ). |
Constructor and Description |
---|
CompileException(String message,
Location optionalLocation) |
CompileException(String message,
Location optionalLocation,
Throwable cause) |
LocatedException(String message,
Location optionalLocation) |
LocatedException(String message,
Location optionalLocation,
Throwable optionalCause) |
Modifier and Type | Method and Description |
---|---|
Location |
Scanner.Token.getLocation() |
Location |
Java.Locatable.getLocation() |
Location |
Java.Located.getLocation() |
Location |
Java.AbstractTypeDeclaration.getLocation() |
Location |
Scanner.location()
Returns the
Location of the next token. |
Location |
Parser.location() |
Modifier and Type | Method and Description |
---|---|
protected Java.PackageMemberClassDeclaration |
ClassBodyEvaluator.addPackageMemberClassDeclaration(Location location,
Java.CompilationUnit compilationUnit)
To the given
Java.CompilationUnit , add
A class declaration with the configured name, superclass and interfaces
A method declaration with the given return type, name, parameter names and values and thrown exceptions
|
protected Java.Type[] |
SimpleCompiler.classesToTypes(Location location,
Class[] classes)
|
protected Java.Type |
SimpleCompiler.classToType(Location location,
Class optionalClass)
|
void |
UnitCompiler.ErrorHandler.handleError(String message,
Location optionalLocation) |
void |
FilterWarningHandler.handleWarning(String handle,
String message,
Location optionalLocation) |
void |
WarningHandler.handleWarning(String handle,
String message,
Location optionalLocation) |
void |
Compiler.SimpleWarningHandler.handleWarning(String handle,
String message,
Location optionalLocation) |
IClass |
UnitCompiler.importTypeOnDemand(String simpleTypeName,
Location location)
6.5.2.BL1.B1.B5, 6.5.2.BL1.B1.B6 Type-import-on-demand.
6.5.5.1.6 Type-import-on-demand declaration. |
protected Java.MethodDeclarator |
ScriptEvaluator.makeMethodDeclaration(Location location,
boolean staticMethod,
Class returnType,
String methodName,
Class[] parameterTypes,
String[] parameterNames,
Class[] thrownExceptions,
List statements)
To the given
Java.ClassDeclaration , add
A public method declaration with the given return type, name, parameter
names and values and thrown exceptions
A block
|
Constructor and Description |
---|
AbstractTypeBodyDeclaration(Location location,
boolean statiC) |
AbstractTypeDeclaration(Location location,
short modifiers) |
AlternateConstructorInvocation(Location location,
Java.Rvalue[] arguments) |
AmbiguousName(Location location,
String[] identifiers) |
AmbiguousName(Location location,
String[] identifiers,
int n) |
AnonymousClassDeclaration(Location location,
Java.Type baseType) |
ArrayAccessExpression(Location location,
Java.Rvalue lhs,
Java.Rvalue index) |
ArrayInitializer(Location location,
Java.ArrayInitializerOrRvalue[] values) |
ArrayLength(Location location,
Java.Rvalue lhs) |
Assignment(Location location,
Java.Lvalue lhs,
String operator,
Java.Rvalue rhs) |
Atom(Location location) |
BasicType(Location location,
int index) |
BinaryOperation(Location location,
Java.Rvalue lhs,
String op,
Java.Rvalue rhs) |
Block(Location location) |
BooleanRvalue(Location location) |
BreakableStatement(Location location) |
BreakStatement(Location location,
String optionalLabel) |
Cast(Location location,
Java.Type targetType,
Java.Rvalue value) |
CatchClause(Location location,
Java.FunctionDeclarator.FormalParameter caughtException,
Java.Block body) |
ClassDeclaration(Location location,
short modifiers) |
ClassLiteral(Location location,
Java.Type type) |
ConditionalExpression(Location location,
Java.Rvalue lhs,
Java.Rvalue mhs,
Java.Rvalue rhs) |
ConstructorDeclarator(Location location,
String optionalDocComment,
short modifiers,
Java.FunctionDeclarator.FormalParameter[] formalParameters,
Java.Type[] thrownExceptions,
Java.ConstructorInvocation optionalConstructorInvocation,
List statements) |
ConstructorInvocation(Location location,
Java.Rvalue[] arguments) |
ContinuableStatement(Location location) |
ContinueStatement(Location location,
String optionalLabel) |
Crement(Location location,
Java.Lvalue operand,
String operator) |
Crement(Location location,
String operator,
Java.Lvalue operand) |
DoStatement(Location location,
Java.BlockStatement body,
Java.Rvalue condition) |
EmptyStatement(Location location) |
FieldAccess(Location location,
Java.Atom lhs,
IClass.IField field) |
FieldAccessExpression(Location location,
Java.Atom lhs,
String fieldName) |
FieldDeclaration(Location location,
String optionalDocComment,
short modifiers,
Java.Type type,
Java.VariableDeclarator[] variableDeclarators) |
FormalParameter(Location location,
boolean finaL,
Java.Type type,
String name) |
ForStatement(Location location,
Java.BlockStatement optionalInit,
Java.Rvalue optionalCondition,
Java.Rvalue[] optionalUpdate,
Java.BlockStatement body) |
FunctionDeclarator(Location location,
String optionalDocComment,
short modifiers,
Java.Type type,
String name,
Java.FunctionDeclarator.FormalParameter[] formalParameters,
Java.Type[] thrownExceptions,
List optionalStatements) |
IfStatement(Location location,
Java.Rvalue condition,
Java.BlockStatement thenStatement,
Java.BlockStatement optionalElseStatement)
Notice that the
elseStatement is mandatory; for an if statement without
an "else" clause, a dummy Java.EmptyStatement should be passed. |
ImportDeclaration(Location location) |
Initializer(Location location,
boolean statiC,
Java.Block block) |
Instanceof(Location location,
Java.Rvalue lhs,
Java.Type rhs) |
InterfaceDeclaration(Location location,
String optionalDocComment,
short modifiers,
String name,
Java.Type[] extendedTypes) |
Invocation(Location location,
String methodName,
Java.Rvalue[] arguments) |
LabeledStatement(Location location,
String label,
Java.Statement body) |
Literal(Location location,
Object value) |
LocalClassDeclaration(Location location,
String optionalDocComment,
short modifiers,
String name,
Java.Type optionalExtendedType,
Java.Type[] implementedTypes) |
LocalVariableAccess(Location location,
Java.LocalVariable localVariable) |
LocalVariableDeclarationStatement(Location location,
short modifiers,
Java.Type type,
Java.VariableDeclarator[] variableDeclarators) |
Located(Location location) |
Lvalue(Location location) |
MemberClassDeclaration(Location location,
String optionalDocComment,
short modifiers,
String name,
Java.Type optionalExtendedType,
Java.Type[] implementedTypes) |
MemberInterfaceDeclaration(Location location,
String optionalDocComment,
short modifiers,
String name,
Java.Type[] extendedTypes) |
MethodDeclarator(Location location,
String optionalDocComment,
short modifiers,
Java.Type type,
String name,
Java.FunctionDeclarator.FormalParameter[] formalParameters,
Java.Type[] thrownExceptions,
List optionalStatements) |
MethodInvocation(Location location,
Java.Atom optionalTarget,
String methodName,
Java.Rvalue[] arguments) |
NamedClassDeclaration(Location location,
String optionalDocComment,
short modifiers,
String name,
Java.Type optionalExtendedType,
Java.Type[] implementedTypes) |
NewAnonymousClassInstance(Location location,
Java.Rvalue optionalQualification,
Java.AnonymousClassDeclaration anonymousClassDeclaration,
Java.Rvalue[] arguments) |
NewArray(Location location,
Java.Type type,
Java.Rvalue[] dimExprs,
int dims)
Create a new array with dimension dimExprs.length + dims
|
NewClassInstance(Location location,
Java.Rvalue optionalQualification,
IClass iClass,
Java.Rvalue[] arguments) |
NewClassInstance(Location location,
Java.Rvalue optionalQualification,
Java.Type type,
Java.Rvalue[] arguments) |
NewInitializedArray(Location location,
Java.ArrayType arrayType,
Java.ArrayInitializer arrayInitializer) |
Package(Location location,
String name) |
PackageDeclaration(Location location,
String packageName) |
PackageMemberClassDeclaration(Location location,
String optionalDocComment,
short modifiers,
String name,
Java.Type optionalExtendedType,
Java.Type[] implementedTypes) |
PackageMemberInterfaceDeclaration(Location location,
String optionalDocComment,
short modifiers,
String name,
Java.Type[] extendedTypes) |
ParameterAccess(Location location,
Java.FunctionDeclarator.FormalParameter formalParameter) |
ParenthesizedExpression(Location location,
Java.Rvalue value) |
QualifiedThisReference(Location location,
Java.Type qualification)
Access the given enclosing instance of the declaring class.
|
ReferenceType(Location location,
String[] identifiers) |
ReturnStatement(Location location,
Java.Rvalue optionalReturnValue) |
Rvalue(Location location) |
RvalueMemberType(Location location,
Java.Rvalue rvalue,
String identifier)
Notice: The
rvalue is not a subordinate object! |
SimpleType(Location location,
IClass iClass) |
SingleStaticImportDeclaration(Location location,
String[] identifiers) |
SingleTypeImportDeclaration(Location location,
String[] identifiers) |
Statement(Location location) |
StaticImportOnDemandDeclaration(Location location,
String[] identifiers) |
SuperclassFieldAccessExpression(Location location,
Java.Type optionalQualification,
String fieldName) |
SuperclassMethodInvocation(Location location,
String methodName,
Java.Rvalue[] arguments) |
SuperConstructorInvocation(Location location,
Java.Rvalue optionalQualification,
Java.Rvalue[] arguments) |
SwitchBlockStatementGroup(Location location,
List caseLabels,
boolean hasDefaultLabel,
List blockStatements) |
SwitchStatement(Location location,
Java.Rvalue condition,
List sbsgs) |
SynchronizedStatement(Location location,
Java.Rvalue expression,
Java.BlockStatement body) |
ThisReference(Location location)
Access the declaring class.
|
ThrowStatement(Location location,
Java.Rvalue expression) |
TryStatement(Location location,
Java.BlockStatement body,
List catchClauses,
Java.Block optionalFinally) |
Type(Location location) |
TypeImportOnDemandDeclaration(Location location,
String[] identifiers) |
UnaryOperation(Location location,
String operator,
Java.Rvalue operand) |
VariableDeclarator(Location location,
String name,
int brackets,
Java.ArrayInitializerOrRvalue optionalInitializer) |
WhileStatement(Location location,
Java.Rvalue condition,
Java.BlockStatement body) |
Copyright © 2001–2014. All rights reserved.