# 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 an `IExpressionEvaluator`, an `IScriptEvaluator`, an `IClassBodyEvaluator` and an `ISimpleCompiler`.
org.codehaus.commons.compiler.jdk
An implementation of the `org.codehaus.commons.compiler` API that uses the "JAVAC" Java compiler that is part of the "Java Development Kit" (JDK).
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 final 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 a `CompileException`.
`void`
WarningHandler.`handleWarning(String handle, String message, Location location)`
May or may not choose to throw a `CompileException`.
Constructors in org.codehaus.commons.compiler with parameters of type Location
Modifier
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.
``
`InternalCompilerException(Location location, String message)`
``
`InternalCompilerException(Location location, String message, Throwable t)`
``
`LocatedException(String message, Location location)`
``
`LocatedException(String message, Location location, Throwable cause)`

## Uses of Location in org.codehaus.commons.compiler.jdk

Method parameters in org.codehaus.commons.compiler.jdk with type arguments of type Location
Modifier and Type
Method
Description
`void`
Compiler.`compile(Resource[] sourceResources, SortedSet<Location> offsets)`

## 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 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
`Java.Type[]`
ClassBodyEvaluator.`classesToTypes(Location location, Class<?>[] classes)`
`protected Java.Type[]`
ExpressionEvaluator.`classesToTypes(Location location, Class<?>... classes)`
Converts an array of `Class`es into an array of`Java.Type`s.
`protected Java.Type[]`
ScriptEvaluator.`classesToTypes(Location location, Class<?>[] classes)`
`protected Java.Type[]`
SimpleCompiler.`classesToTypes(Location location, Class<?>[] classes)`
Converts an array of `Class`es into an array of`Java.Type`s.
`protected Java.Type`
ClassBodyEvaluator.`classToType(Location location, Class<?> clazz)`
`protected Java.Type`
ExpressionEvaluator.`classToType(Location location, Class<?> clazz)`
Wraps a reflection `Class` in a `Java.Type` object.
`protected Java.Type`
ScriptEvaluator.`classToType(Location loc, Class<?> clazz)`
`protected Java.Type`
SimpleCompiler.`classToType(Location location, Class<?> clazz)`
Wraps a reflection `Class` in a `Java.Type` object.
`protected static CompileException`
Parser.`compileException(String message, Location location)`
Convenience method for throwing a `CompileException`.
`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)`
Wraps a reflection `Class` in a `Java.Type` object.
`protected Java.Type`
ScriptEvaluator.`optionalClassToType(Location loc, Class<?> clazz)`
`protected Java.Type`
SimpleCompiler.`optionalClassToType(Location location, Class<?> clazz)`
Wraps a reflection `Class` in a `Java.Type` object.
Constructors in org.codehaus.janino with parameters of type Location
Modifier
Constructor
Description
``
`AbstractClassDeclaration(Location location, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters)`
`protected`
`AbstractTypeBodyDeclaration(Location location, Java.Modifier[] modifiers)`
``
`AbstractTypeDeclaration(Location location, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters)`
``
`AccessModifier(String keyword, Location location)`
``
`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)`
``
`ArrayCreationReference(Location location, Java.ArrayType type)`
``
`ArrayInitializer(Location location, Java.ArrayInitializerOrRvalue[] values)`
``
`ArrayLength(Location location, Java.Rvalue lhs)`
``
`AssertStatement(Location location, Java.Rvalue expression1, Java.Rvalue expression2)`
``
`Assignment(Location location, Java.Lvalue lhs, String operator, Java.Rvalue rhs)`
``
`Atom(Location location)`
``
`BinaryOperation(Location location, Java.Rvalue lhs, String operator, Java.Rvalue rhs)`
``
`Block(Location location)`
``
`BooleanLiteral(Location location, String value)`
`protected`
`BooleanRvalue(Location location)`
`protected`
`BreakableStatement(Location location)`
``
`BreakStatement(Location location, String label)`
``
`Cast(Location location, Java.Type targetType, Java.Rvalue value)`
``
`CatchClause(Location location, Java.CatchParameter catchParameter, Java.BlockStatement body)`
``
`CatchParameter(Location location, boolean finaL, Java.Type[] types, String name)`
``
`CharacterLiteral(Location location, String value)`
``
`ClassInstanceCreationReference(Location location, Java.Type type, Java.TypeArgument[] typeArguments)`
``
`ClassLiteral(Location location, Java.Type type)`
``
`ConditionalExpression(Location location, Java.Rvalue lhs, Java.Rvalue mhs, Java.Rvalue rhs)`
``
`ConstructorDeclarator(Location location, String docComment, Java.Modifier[] modifiers, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, Java.ConstructorInvocation constructorInvocation, List<? extends Java.BlockStatement> statements)`
`protected`
`ConstructorInvocation(Location location, Java.Rvalue[] arguments)`
`protected`
`ContinuableStatement(Location location, Java.BlockStatement body)`
``
`ContinueStatement(Location location, String label)`
``
`Crement(Location location, String operator, Java.Lvalue operand)`
``
`Crement(Location location, Java.Lvalue operand, String operator)`
``
`DoStatement(Location location, Java.BlockStatement body, Java.Rvalue condition)`
``
`ElementValueArrayInitializer(Java.ElementValue[] elementValues, Location location)`
``
`EmptyStatement(Location location)`
``
`EnumConstant(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.Rvalue[] arguments)`
`protected`
`ExportsModuleDirective(Location location, String[] packageName, String[][] toModuleNames)`
``
`FieldAccess(Location location, Java.Atom lhs, IClass.IField field)`
``
`FieldAccessExpression(Location location, Java.Atom lhs, String fieldName)`
``
`FieldDeclaration(Location location, String docComment, Java.Modifier[] modifiers, Java.Type type, Java.VariableDeclarator[] variableDeclarators)`
``
`FloatingPointLiteral(Location location, String value)`
``
`ForEachStatement(Location location, Java.FunctionDeclarator.FormalParameter currentElement, Java.Rvalue expression, Java.BlockStatement body)`
``
`FormalParameter(Location location, Java.Modifier[] modifiers, Java.Type type, String name)`
``
`FormalParameters(Location location)`
``
`FormalParameters(Location location, Java.FunctionDeclarator.FormalParameter[] parameters, boolean variableArity)`
``
`ForStatement(Location location, Java.BlockStatement init, Java.Rvalue condition, Java.Rvalue[] update, Java.BlockStatement body)`
``
`FunctionDeclarator(Location location, String docComment, Java.Modifier[] modifiers, Java.Type type, String name, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, List<? extends Java.BlockStatement> statements)`
``
`IfStatement(Location location, Java.Rvalue condition, Java.BlockStatement thenStatement)`
``
`IfStatement(Location location, Java.Rvalue condition, Java.BlockStatement thenStatement, Java.BlockStatement elseStatement)`
``
`ImportDeclaration(Location location)`
``
`Initializer(Location location, Java.Modifier[] modifiers, Java.Block block)`
``
`Instanceof(Location location, Java.Rvalue lhs, Java.Type rhs)`
``
`IntegerLiteral(Location location, String value)`
`protected`
`InterfaceDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)`
`protected`
`Invocation(Location location, String methodName, Java.Rvalue[] arguments)`
``
`LabeledStatement(Location location, String label, Java.Statement body)`
``
`LambdaExpression(Location location, Java.LambdaParameters parameters, Java.LambdaBody body)`
``
`Literal(Location location, String value)`
``
`LocalClassDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)`
``
`LocalVariableAccess(Location location, Java.LocalVariable localVariable)`
``
`LocalVariableDeclarationStatement(Location location, Java.Modifier[] modifiers, Java.Type type, Java.VariableDeclarator[] variableDeclarators)`
``
`LocalVariableDeclaratorResource(Location location, Java.Modifier[] modifiers, Java.Type type, Java.VariableDeclarator variableDeclarator)`
`protected`
`Located(Location location)`
`protected`
`Lvalue(Location location)`
``
`MemberAnnotationTypeDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name)`
``
`MemberClassDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)`
``
`MemberEnumDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.Type[] implementedTypes)`
``
`MemberInterfaceDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)`
``
`MethodDeclarator(Location location, String docComment, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters, Java.Type type, String name, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, Java.ElementValue defaultValue, List<? extends Java.BlockStatement> statements)`
``
`MethodInvocation(Location location, Java.Atom target, String methodName, Java.Rvalue[] arguments)`
``
`MethodReference(Location location, Java.Atom lhs, String methodName)`
``
`ModuleDeclaration(Location location, Java.Modifier[] modifiers, boolean isOpen, String[] moduleName, Java.ModuleDirective[] moduleDirectives)`
``
`NamedClassDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)`
``
`NewAnonymousClassInstance(Location location, Java.Rvalue qualification, Java.AnonymousClassDeclaration anonymousClassDeclaration, Java.Rvalue[] arguments)`
``
`NewArray(Location location, Java.Type type, Java.Rvalue[] dimExprs, int dims)`
Creates a new array with dimension dimExprs`.length +` dims.
``
`NewClassInstance(Location location, Java.Rvalue qualification, IType iType, Java.Rvalue[] arguments)`
``
`NewClassInstance(Location location, Java.Rvalue qualification, Java.Type type, Java.Rvalue[] arguments)`
``
`NewInitializedArray(Location location, Java.ArrayType arrayType, Java.ArrayInitializer arrayInitializer)`
``
`NullLiteral(Location location)`
`protected`
`OpensModuleDirective(Location location, String[] packageName, String[][] toModuleNames)`
``
`Package(Location location, String name)`
``
`PackageDeclaration(Location location, String packageName)`
``
`PackageMemberAnnotationTypeDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name)`
``
`PackageMemberClassDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)`
``
`PackageMemberEnumDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.Type[] implementedTypes)`
``
`PackageMemberInterfaceDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)`
``
`ParameterAccess(Location location, Java.FunctionDeclarator.FormalParameter formalParameter)`
``
`ParenthesizedExpression(Location location, Java.Rvalue value)`
``
`PrimitiveType(Location location, Java.Primitive primitive)`
`protected`
`ProvidesModuleDirective(Location location, String[] typeName, String[][] withTypeNames)`
``
`QualifiedThisReference(Location location, Java.Type qualification)`
``
`ReferenceType(Location location, Java.Annotation[] annotations, String[] identifiers, Java.TypeArgument[] typeArguments)`
`protected`
`RequiresModuleDirective(Location location, Java.Modifier[] requiresModifiers, String[] moduleName)`
`protected`
`Resource(Location location)`
``
`ReturnStatement(Location location, Java.Rvalue returnValue)`
`protected`
`Rvalue(Location location)`
``
`RvalueMemberType(Location location, Java.Rvalue rvalue, String identifier)`
Notice: The rvalue is not a subordinate object!
``
`SimpleConstant(Location location)`
Equivalent of the `null` literal.
``
`SimpleConstant(Location location, boolean value)`
Equivalent of a `Java.BooleanLiteral`.
``
`SimpleConstant(Location location, byte value)`
Equivalent of an literal, cast to `byte`.
``
`SimpleConstant(Location location, char value)`
Equivalent of a `Java.CharacterLiteral`.
``
`SimpleConstant(Location location, double value)`
Equivalent of a `Java.FloatingPointLiteral` with type `double`.
``
`SimpleConstant(Location location, float value)`
Equivalent of a `Java.FloatingPointLiteral` with type `float`.
``
`SimpleConstant(Location location, int value)`
Equivalent of an `Java.IntegerLiteral` with type `int`.
``
`SimpleConstant(Location location, long value)`
Equivalent of an `Java.IntegerLiteral` with type `long`.
``
`SimpleConstant(Location location, short value)`
Equivalent of an literal, cast to `short`.
``
`SimpleConstant(Location location, String value)`
Equivalent of a `Java.StringLiteral`, or, if `value` is null, the equivalent of a `Java.NullLiteral`.
``
`SimpleType(Location location, IType iType)`
``
`SingleStaticImportDeclaration(Location location, String[] identifiers)`
``
`SingleTypeImportDeclaration(Location location, String[] identifiers)`
`protected`
`Statement(Location location)`
``
`StaticImportOnDemandDeclaration(Location location, String[] identifiers)`
``
`StringLiteral(Location location, String value)`
``
`SuperclassFieldAccessExpression(Location location, Java.Type qualification, String fieldName)`
``
`SuperclassMethodInvocation(Location location, String methodName, Java.Rvalue[] arguments)`
``
`SuperConstructorInvocation(Location location, Java.Rvalue qualification, Java.Rvalue[] arguments)`
``
`SwitchBlockStatementGroup(Location location, List<Java.Rvalue> caseLabels, boolean hasDefaultLabel, List<Java.BlockStatement> blockStatements)`
``
`SwitchStatement(Location location, Java.Rvalue condition, List<Java.SwitchStatement.SwitchBlockStatementGroup> sbsgs)`
``
`SynchronizedStatement(Location location, Java.Rvalue expression, Java.BlockStatement body)`
``
`TextBlock(Location location, String value)`
``
`ThisReference(Location location)`
``
`ThrowStatement(Location location, Java.Rvalue expression)`
``
`Token(Location location, TokenType type, String value)`
``
`TryStatement(Location location, List<Java.TryStatement.Resource> resources, Java.BlockStatement body, List<Java.CatchClause> catchClauses)`
A TRY statement without a FINALLY clause.
``
`TryStatement(Location location, List<Java.TryStatement.Resource> resources, Java.BlockStatement body, List<Java.CatchClause> catchClauses, Java.Block finallY)`
``
`TryStatement(Location location, Java.BlockStatement body, List<Java.CatchClause> catchClauses)`
A TRY statement with no resources and no FINALLY clause.
`protected`
`Type(Location location)`
``
`TypeImportOnDemandDeclaration(Location location, String[] identifiers)`
``
`UnaryOperation(Location location, String operator, Java.Rvalue operand)`
`protected`
`UsesModuleDirective(Location location, String[] typeName)`
``
`VariableAccessResource(Location location, Java.Rvalue variableAccess)`
``
`VariableDeclarator(Location location, String name, int brackets, Java.ArrayInitializerOrRvalue initializer)`
``
`WhileStatement(Location location, Java.Rvalue condition, Java.BlockStatement body)`