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 core of the Janino Java 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 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
.Constructors in org.codehaus.commons.compiler with parameters of type Location Constructor Description CompileException(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.LocatedException(String message, Location location)
LocatedException(String message, Location location, Throwable cause)
-
Uses of Location in org.codehaus.janino
Methods in org.codehaus.janino that return Location Modifier and Type Method Description Location
Java.AbstractAnnotation. getLocation()
Location
Java.AbstractTypeDeclaration. getLocation()
Location
Java.Locatable. getLocation()
Location
Java.Located. getLocation()
Location
Token. getLocation()
Location
Parser. location()
Location
Scanner. location()
Location
TokenStream. location()
Location
TokenStreamImpl. location()
Methods in org.codehaus.janino with parameters of type Location Modifier and Type Method Description static Java.AccessModifier[]
Java. accessModifiers(Location location, String... keywords)
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 exceptionsJava.Type[]
ClassBodyEvaluator. classesToTypes(Location location, Class<?>[] classes)
protected Java.Type[]
ExpressionEvaluator. classesToTypes(Location location, Class<?>... classes)
protected Java.Type[]
ScriptEvaluator. classesToTypes(Location location, Class<?>[] classes)
protected Java.Type[]
SimpleCompiler. classesToTypes(Location location, Class<?>[] classes)
protected Java.Type
ClassBodyEvaluator. classToType(Location location, Class<?> clazz)
protected Java.Type
ExpressionEvaluator. classToType(Location location, Class<?> clazz)
protected Java.Type
ScriptEvaluator. classToType(Location loc, Class<?> clazz)
protected Java.Type
SimpleCompiler. classToType(Location location, Class<?> clazz)
protected static CompileException
Parser. compileException(String message, Location location)
Convenience method for throwing aCompileException
.String[]
UnitCompiler. getSingleTypeImport(String name, Location location)
Checks if the given simple name was imported through a single type import.void
FilterWarningHandler. handleWarning(String handle, String message, Location location)
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.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)
-