Uses of Class
org.codehaus.commons.compiler.Location
-
Packages that use Location Package Description org.codehaus.commons.compiler This package declares interfaces for the implementation of anIExpressionEvaluator
, anIScriptEvaluator
, anIClassBodyEvaluator
and anISimpleCompiler
.org.codehaus.janino The classes in this package pose the core of the Janino JavaTM compiler. -
-
Uses of Location in org.codehaus.commons.compiler
Fields in org.codehaus.commons.compiler declared as Location Modifier and Type Field Description static Location
Location. NOWHERE
Representation of an unspecified location.Methods in org.codehaus.commons.compiler that return Location Modifier and Type Method Description Location
LocatedException. getLocation()
Methods in org.codehaus.commons.compiler with parameters of type Location Modifier and Type Method Description void
ErrorHandler. handleError(String message, Location optionalLocation)
May or may not choose to throw aCompileException
.void
WarningHandler. handleWarning(String handle, String message, Location optionalLocation)
May or may not choose to throw aCompileException
.Constructors in org.codehaus.commons.compiler with parameters of type Location 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)
-
Uses of Location in org.codehaus.janino
Methods in org.codehaus.janino that return Location 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()
Methods in org.codehaus.janino with parameters of type Location Modifier and Type Method Description protected Java.PackageMemberClassDeclaration
ClassBodyEvaluator. addPackageMemberClassDeclaration(Location location, Java.CompilationUnit compilationUnit)
To the givenJava.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 exceptionsprotected 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 givenJava.ClassDeclaration
, add A public method declaration with the given return type, name, parameter names and values and thrown exceptions A block
-