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.commons.compiler.jdk An implementation of theorg.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 private Location
LocatedException. location
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(java.lang.String message, Location location)
May or may not choose to throw aCompileException
.void
WarningHandler. handleWarning(java.lang.String handle, java.lang.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(java.lang.String message, Location location)
An infix"NYI"
in the message string indicates that the compiler has a known limitation here.CompileException(java.lang.String message, Location location, java.lang.Throwable cause)
An infix"NYI"
in the message string indicates that the compiler has a known limitation here.InternalCompilerException(Location location, java.lang.String message)
InternalCompilerException(Location location, java.lang.String message, java.lang.Throwable t)
LocatedException(java.lang.String message, Location location)
LocatedException(java.lang.String message, Location location, java.lang.Throwable cause)
-
Uses of Location in org.codehaus.commons.compiler.jdk
Fields in org.codehaus.commons.compiler.jdk with type parameters of type Location Modifier and Type Field Description private java.util.SortedSet<Location>
SimpleCompiler. offsets
Method parameters in org.codehaus.commons.compiler.jdk with type arguments of type Location Modifier and Type Method Description (package private) static void
Compiler. compile(javax.tools.JavaCompiler compiler, java.util.List<java.lang.String> options, java.util.Collection<javax.tools.JavaFileObject> sourceFileObjects, javax.tools.JavaFileManager fileManager, ErrorHandler compileErrorHandler, WarningHandler warningHandler, java.util.SortedSet<Location> offsets)
Compiles on theJavaFileManager
/JavaFileObject
level.(package private) static void
Compiler. compile(javax.tools.JavaCompiler compiler, java.util.List<java.lang.String> options, ResourceFinder sourceFinder, java.nio.charset.Charset sourceFileCharset, ResourceFinder classFileFinder, ResourceCreator classFileCreator, Resource[] sourceFiles, ErrorHandler compileErrorHandler, WarningHandler warningHandler, java.util.SortedSet<Location> offsets)
void
Compiler. compile(Resource[] sourceResources, java.util.SortedSet<Location> offsets)
-
Uses of Location in org.codehaus.janino
Fields in org.codehaus.janino declared as Location Modifier and Type Field Description private Location
Java.AbstractTypeDeclaration. location
private Location
Java.Located. location
private Location
Token. location
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, java.lang.String... keywords)
private static Java.Modifier[]
UnitCompiler. accessModifiers(Location location, java.lang.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 exceptionsprivate void
UnitCompiler. checkAccessible(IClass.IMember member, Java.Scope contextScope, Location location)
Checks whether the givenIClass.IMember
is accessible in the given context, according to JLS7 6.6.1.BL1.B4.private void
UnitCompiler. checkAccessible(IClass type, Java.Scope contextScope, Location location)
Checks whether the givenIClass
is accessible in the given context, according to JLS7 6.6.1.2 and 6.6.1.4.private void
UnitCompiler. checkForConflictWithSingleTypeImport(java.lang.String name, Location location)
private void
UnitCompiler. checkMemberAccessible(IClass iClassDeclaringMember, IClass.IMember member, Java.Scope contextScope, Location location)
Verifies that a member (class, interface, field or method) declared in a given class is accessible from a given block statement context, according to JLS7 6.6.1.4.Java.Type[]
ClassBodyEvaluator. classesToTypes(Location location, java.lang.Class<?>[] classes)
protected Java.Type[]
ExpressionEvaluator. classesToTypes(Location location, java.lang.Class<?>... classes)
Converts an array ofClass
es into an array ofJava.Type
s.protected Java.Type[]
ScriptEvaluator. classesToTypes(Location location, java.lang.Class<?>[] classes)
protected Java.Type[]
SimpleCompiler. classesToTypes(Location location, java.lang.Class<?>[] classes)
Converts an array ofClass
es into an array ofJava.Type
s.protected Java.Type
ClassBodyEvaluator. classToType(Location location, java.lang.Class<?> clazz)
protected Java.Type
ExpressionEvaluator. classToType(Location location, java.lang.Class<?> clazz)
Wraps a reflectionClass
in aJava.Type
object.protected Java.Type
ScriptEvaluator. classToType(Location loc, java.lang.Class<?> clazz)
protected Java.Type
SimpleCompiler. classToType(Location location, java.lang.Class<?> clazz)
Wraps a reflectionClass
in aJava.Type
object.private void
UnitCompiler. compileError(java.lang.String message, Location location)
Issues a compile error with the given message.protected static CompileException
Parser. compileException(java.lang.String message, Location location)
Convenience method for throwing aCompileException
.private IClass.IField
UnitCompiler. findIField(IClass iClass, java.lang.String name, Location location)
Finds a named field in the givenIClass
.private IClass
UnitCompiler. findMemberType(IType iType, java.lang.String name, Java.TypeArgument[] typeArguments, Location location)
Finds a named type in the givenIClass
orIParameterizedType
.private IClass
UnitCompiler. findTypeByFullyQualifiedName(Location location, java.lang.String[] identifiers)
Attempts to load anIClass
by fully-qualified name throughUnitCompiler.iClassLoader
.private IClass
UnitCompiler. findTypeByName(Location location, java.lang.String className)
Finds the namedIClass
in this compilation unit, or through theUnitCompiler.iClassLoader
.private IClass
UnitCompiler. getRawReferenceType(Location location, java.lang.String simpleTypeName, Java.Scope scope)
private IType
UnitCompiler. getReferenceType(Location location, java.lang.String simpleTypeName, Java.TypeArgument[] typeArguments, Java.Scope scope)
JLS7 6.5.5.1 Simple type name (single identifier)private IType
UnitCompiler. getReferenceType(Location location, Java.Scope scope, java.lang.String[] identifiers, int n, Java.TypeArgument[] typeArguments)
java.lang.String[]
UnitCompiler. getSingleTypeImport(java.lang.String name, Location location)
Checks if the given simple name was imported through a single type import.void
FilterWarningHandler. handleWarning(java.lang.String handle, java.lang.String message, Location location)
private IClass
UnitCompiler. importSingleType(java.lang.String simpleTypeName, Location location)
If the given name was declared in a simple type import, load that class.private void
UnitCompiler. importStatic(IClass declaringIClass, java.lang.String simpleName, java.util.Collection<java.lang.Object> result, Location location)
Finds all members (member classes, member interfaces, static fields and/or static methods) of the declaringIClass with the given simpleName and adds them to the result.IClass
UnitCompiler. importTypeOnDemand(java.lang.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.private IClass
UnitCompiler. importTypeOnDemand2(java.lang.String simpleTypeName, Location location)
private Java.MethodDeclarator
ScriptEvaluator. makeMethodDeclaration(Location location, Java.Annotation[] annotations, boolean staticMethod, java.lang.Class<?> returnType, java.lang.String methodName, java.lang.Class<?>[] parameterTypes, java.lang.String[] parameterNames, java.lang.Class<?>[] thrownExceptions, Java.BlockStatement[] statements)
protected Java.Type
ClassBodyEvaluator. optionalClassToType(Location location, java.lang.Class<?> clazz)
protected Java.Type
ExpressionEvaluator. optionalClassToType(Location location, java.lang.Class<?> clazz)
Wraps a reflectionClass
in aJava.Type
object.protected Java.Type
ScriptEvaluator. optionalClassToType(Location loc, java.lang.Class<?> clazz)
protected Java.Type
SimpleCompiler. optionalClassToType(Location location, java.lang.Class<?> clazz)
Wraps a reflectionClass
in aJava.Type
object.private Java.Atom
UnitCompiler. reclassifyName(Location location, Java.Scope scope, java.lang.String identifier)
JLS7 6.5.2.1private Java.Atom
UnitCompiler. reclassifyName(Location location, Java.Scope scope, java.lang.String[] identifiers, int n)
Reclassifies the ambiguous name consisting of the first n of the identifiers (JLS7 6.5.2.2).private static java.lang.String
UnitCompiler. unescape(java.lang.String s, Location location)
Decodes any escape sequences like\n
, or\377
, but not\uxxxx
.private void
Parser. verifyIdentifierIsConventionalClassOrInterfaceName(java.lang.String id, Location loc)
Issues a warning if the given identifier does not comply with the class and interface type naming conventions (JLS7 6.8.2).private void
Parser. verifyIdentifierIsConventionalFieldName(java.lang.String id, Location loc)
Issues a warning if the given identifier does not comply with the field naming conventions (JLS7 6.8.4) and constant naming conventions (JLS7 6.8.5).private void
Parser. verifyIdentifierIsConventionalLocalVariableOrParameterName(java.lang.String id, Location loc)
Issues a warning if the given identifier does not comply with the local variable and parameter naming conventions (JLS7 6.8.6).private void
Parser. verifyIdentifierIsConventionalMethodName(java.lang.String id, Location loc)
Issues a warning if the given identifier does not comply with the method naming conventions (JLS7 6.8.3).private void
Parser. verifyStringIsConventionalPackageName(java.lang.String s, Location loc)
Issues a warning if the given string does not comply with the package naming conventions.private void
Parser. warning(java.lang.String handle, java.lang.String message, Location location)
Issues a warning with the given message and location and returns.private void
TokenStreamImpl. warning(java.lang.String handle, java.lang.String message, Location location)
Issues a warning with the given message and location and returns.private void
UnitCompiler. warning(java.lang.String handle, java.lang.String message, Location location)
Issues a warning with the given message an location an returns.Constructors in org.codehaus.janino with parameters of type Location Constructor Description AbstractClassDeclaration(Location location, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters)
AbstractTypeBodyDeclaration(Location location, Java.Modifier[] modifiers)
AbstractTypeDeclaration(Location location, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters)
AccessModifier(java.lang.String keyword, Location location)
AlternateConstructorInvocation(Location location, Java.Rvalue[] arguments)
AmbiguousName(Location location, java.lang.String[] identifiers)
AmbiguousName(Location location, java.lang.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, java.lang.String operator, Java.Rvalue rhs)
Atom(Location location)
BinaryOperation(Location location, Java.Rvalue lhs, java.lang.String operator, Java.Rvalue rhs)
Block(Location location)
BooleanLiteral(Location location, java.lang.String value)
BooleanRvalue(Location location)
BreakableStatement(Location location)
BreakStatement(Location location, java.lang.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, java.lang.String name)
CharacterLiteral(Location location, java.lang.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, java.lang.String docComment, Java.Modifier[] modifiers, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, Java.ConstructorInvocation constructorInvocation, java.util.List<? extends Java.BlockStatement> statements)
ConstructorInvocation(Location location, Java.Rvalue[] arguments)
ContinuableStatement(Location location, Java.BlockStatement body)
ContinueStatement(Location location, java.lang.String label)
Crement(Location location, java.lang.String operator, Java.Lvalue operand)
Crement(Location location, Java.Lvalue operand, java.lang.String operator)
DoStatement(Location location, Java.BlockStatement body, Java.Rvalue condition)
ElementValueArrayInitializer(Java.ElementValue[] elementValues, Location location)
EmptyStatement(Location location)
EnumConstant(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.Rvalue[] arguments)
ExportsModuleDirective(Location location, java.lang.String[] packageName, java.lang.String[][] toModuleNames)
FieldAccess(Location location, Java.Atom lhs, IClass.IField field)
FieldAccessExpression(Location location, Java.Atom lhs, java.lang.String fieldName)
FieldDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, Java.Type type, Java.VariableDeclarator[] variableDeclarators)
FloatingPointLiteral(Location location, java.lang.String value)
ForEachStatement(Location location, Java.FunctionDeclarator.FormalParameter currentElement, Java.Rvalue expression, Java.BlockStatement body)
FormalParameter(Location location, Java.Modifier[] modifiers, Java.Type type, java.lang.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, java.lang.String docComment, Java.Modifier[] modifiers, Java.Type type, java.lang.String name, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, java.util.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, java.lang.String value)
InterfaceDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)
Invocation(Location location, java.lang.String methodName, Java.Rvalue[] arguments)
LabeledStatement(Location location, java.lang.String label, Java.Statement body)
LambdaExpression(Location location, Java.LambdaParameters parameters, Java.LambdaBody body)
Literal(Location location, java.lang.String value)
LocalClassDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.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)
Located(Location location)
Lvalue(Location location)
MemberAnnotationTypeDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name)
MemberClassDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
MemberEnumDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.Type[] implementedTypes)
MemberInterfaceDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)
MethodDeclarator(Location location, java.lang.String docComment, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters, Java.Type type, java.lang.String name, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, Java.ElementValue defaultValue, java.util.List<? extends Java.BlockStatement> statements)
MethodInvocation(Location location, Java.Atom target, java.lang.String methodName, Java.Rvalue[] arguments)
MethodReference(Location location, Java.Atom lhs, java.lang.String methodName)
ModuleDeclaration(Location location, Java.Modifier[] modifiers, boolean isOpen, java.lang.String[] moduleName, Java.ModuleDirective[] moduleDirectives)
NamedClassDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.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, IClass arrayIClass, Java.ArrayInitializer arrayInitializer)
NewInitializedArray(Location location, Java.ArrayType arrayType, Java.ArrayInitializer arrayInitializer)
NullLiteral(Location location)
OpensModuleDirective(Location location, java.lang.String[] packageName, java.lang.String[][] toModuleNames)
Package(Location location, java.lang.String name)
PackageDeclaration(Location location, java.lang.String packageName)
PackageMemberAnnotationTypeDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name)
PackageMemberClassDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)
PackageMemberEnumDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.Type[] implementedTypes)
PackageMemberInterfaceDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.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)
ProvidesModuleDirective(Location location, java.lang.String[] typeName, java.lang.String[][] withTypeNames)
QualifiedThisReference(Location location, Java.Type qualification)
ReferenceType(Location location, Java.Annotation[] annotations, java.lang.String[] identifiers, Java.TypeArgument[] typeArguments)
RequiresModuleDirective(Location location, Java.Modifier[] requiresModifiers, java.lang.String[] moduleName)
Resource(Location location)
ReturnStatement(Location location, Java.Rvalue returnValue)
Rvalue(Location location)
RvalueMemberType(Location location, Java.Rvalue rvalue, java.lang.String identifier)
Notice: The rvalue is not a subordinate object!SimpleConstant(Location location)
Equivalent of thenull
literal.SimpleConstant(Location location, boolean value)
Equivalent of aJava.BooleanLiteral
.SimpleConstant(Location location, byte value)
Equivalent of an literal, cast tobyte
.SimpleConstant(Location location, char value)
Equivalent of aJava.CharacterLiteral
.SimpleConstant(Location location, double value)
Equivalent of aJava.FloatingPointLiteral
with typedouble
.SimpleConstant(Location location, float value)
Equivalent of aJava.FloatingPointLiteral
with typefloat
.SimpleConstant(Location location, int value)
Equivalent of anJava.IntegerLiteral
with typeint
.SimpleConstant(Location location, long value)
Equivalent of anJava.IntegerLiteral
with typelong
.SimpleConstant(Location location, short value)
Equivalent of an literal, cast toshort
.SimpleConstant(Location location, java.lang.String value)
SimpleType(Location location, IType iType)
SingleStaticImportDeclaration(Location location, java.lang.String[] identifiers)
SingleTypeImportDeclaration(Location location, java.lang.String[] identifiers)
Statement(Location location)
StaticImportOnDemandDeclaration(Location location, java.lang.String[] identifiers)
StringLiteral(Location location, java.lang.String value)
SuperclassFieldAccessExpression(Location location, Java.Type qualification, java.lang.String fieldName)
SuperclassMethodInvocation(Location location, java.lang.String methodName, Java.Rvalue[] arguments)
SuperConstructorInvocation(Location location, Java.Rvalue qualification, Java.Rvalue[] arguments)
SwitchBlockStatementGroup(Location location, java.util.List<Java.Rvalue> caseLabels, boolean hasDefaultLabel, java.util.List<Java.BlockStatement> blockStatements)
SwitchStatement(Location location, Java.Rvalue condition, java.util.List<Java.SwitchStatement.SwitchBlockStatementGroup> sbsgs)
SynchronizedStatement(Location location, Java.Rvalue expression, Java.BlockStatement body)
ThisReference(Location location)
ThrowStatement(Location location, Java.Rvalue expression)
Token(Location location, TokenType type, java.lang.String value)
TryStatement(Location location, java.util.List<Java.TryStatement.Resource> resources, Java.BlockStatement body, java.util.List<Java.CatchClause> catchClauses)
A TRY statement without a FINALLY clause.TryStatement(Location location, java.util.List<Java.TryStatement.Resource> resources, Java.BlockStatement body, java.util.List<Java.CatchClause> catchClauses, Java.Block finallY)
TryStatement(Location location, Java.BlockStatement body, java.util.List<Java.CatchClause> catchClauses)
A TRY statement with no resources and no FINALLY clause.Type(Location location)
TypeImportOnDemandDeclaration(Location location, java.lang.String[] identifiers)
UnaryOperation(Location location, java.lang.String operator, Java.Rvalue operand)
UsesModuleDirective(Location location, java.lang.String[] typeName)
VariableAccessResource(Location location, Java.Rvalue variableAccess)
VariableDeclarator(Location location, java.lang.String name, int brackets, Java.ArrayInitializerOrRvalue initializer)
WhileStatement(Location location, Java.Rvalue condition, Java.BlockStatement body)
-