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 | Description |
---|---|---|
static Location |
Location.NOWHERE |
Representation of an unspecified location.
|
Modifier and Type | Method | Description |
---|---|---|
Location |
LocatedException.getLocation() |
Modifier and Type | Method | Description |
---|---|---|
void |
ErrorHandler.handleError(String message,
Location optionalLocation) |
May or may not choose to throw a
CompileException . |
void |
WarningHandler.handleWarning(String handle,
String message,
Location optionalLocation) |
May or may not choose to throw a
CompileException . |
Constructor | 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 | Description |
---|---|---|
Location |
Java.AbstractTypeDeclaration.getLocation() |
|
Location |
Java.Locatable.getLocation() |
|
Location |
Java.Located.getLocation() |
|
Location |
Scanner.Token.getLocation() |
|
Location |
Parser.location() |
|
Location |
Scanner.location() |
Modifier and Type | Method | 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 clazz) |
|
String[] |
UnitCompiler.getSingleTypeImport(String name,
Location location) |
Check if the given simple name was imported through a single type import.
|
void |
Compiler.SimpleWarningHandler.handleWarning(String handle,
String message,
Location optionalLocation) |
|
void |
FilterWarningHandler.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,
Java.Annotation[] annotations,
boolean staticMethod,
Class returnType,
String methodName,
Class[] parameterTypes,
String[] parameterNames,
Class[] thrownExceptions,
List<Java.BlockStatement> 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
|
Copyright © 2001–2019. All rights reserved.