Uses of Class
org.codehaus.commons.compiler.Location
Packages that use Location
Package
Description
This package declares interfaces for the implementation of an
IExpressionEvaluator, an IScriptEvaluator, an
IClassBodyEvaluator and an ISimpleCompiler.An implementation of the
org.codehaus.commons.compiler API that uses the "JAVAC" Java compiler that is
part of the "Java Development Kit" (JDK).The core of the Janino Java compiler.
-
Uses of Location in org.codehaus.commons.compiler
Fields in org.codehaus.commons.compiler declared as LocationModifier and TypeFieldDescriptionprivate final LocationLocatedException.locationstatic final LocationLocation.NOWHERERepresentation of an unspecified location.Methods in org.codehaus.commons.compiler that return LocationMethods in org.codehaus.commons.compiler with parameters of type LocationModifier and TypeMethodDescriptionvoidErrorHandler.handleError(String message, Location location) May or may not choose to throw aCompileException.voidWarningHandler.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 LocationModifierConstructorDescriptionCompileException(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
Fields in org.codehaus.commons.compiler.jdk with type parameters of type LocationMethod parameters in org.codehaus.commons.compiler.jdk with type arguments of type LocationModifier and TypeMethodDescription(package private) static voidCompiler.compile(JavaCompiler compiler, List<String> options, Collection<JavaFileObject> sourceFileObjects, JavaFileManager fileManager, ErrorHandler compileErrorHandler, WarningHandler warningHandler, SortedSet<Location> offsets) Compiles on theJavaFileManager/JavaFileObjectlevel.(package private) static voidCompiler.compile(JavaCompiler compiler, List<String> options, ResourceFinder sourceFinder, Charset sourceFileCharset, ResourceFinder classFileFinder, ResourceCreator classFileCreator, Resource[] sourceFiles, ErrorHandler compileErrorHandler, WarningHandler warningHandler, SortedSet<Location> offsets) void -
Uses of Location in org.codehaus.janino
Fields in org.codehaus.janino declared as LocationModifier and TypeFieldDescriptionprivate final LocationJava.AbstractTypeDeclaration.locationprivate final LocationJava.Located.locationprivate LocationToken.locationMethods in org.codehaus.janino that return LocationModifier and TypeMethodDescriptionJava.AbstractAnnotation.getLocation()Java.AbstractTypeDeclaration.getLocation()Java.Locatable.getLocation()Java.Located.getLocation()Token.getLocation()Parser.location()Scanner.location()TokenStream.location()TokenStreamImpl.location()Methods in org.codehaus.janino with parameters of type LocationModifier and TypeMethodDescriptionstatic Java.AccessModifier[]Java.accessModifiers(Location location, String... keywords) private static Java.Modifier[]UnitCompiler.accessModifiers(Location location, String... keywords) protected Java.PackageMemberClassDeclarationClassBodyEvaluator.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 voidUnitCompiler.checkAccessible(IClass.IMember member, Java.Scope contextScope, Location location) Checks whether the givenIClass.IMemberis accessible in the given context, according to JLS7 6.6.1.BL1.B4.private voidUnitCompiler.checkAccessible(IClass type, Java.Scope contextScope, Location location) Checks whether the givenIClassis accessible in the given context, according to JLS7 6.6.1.2 and 6.6.1.4.private voidUnitCompiler.checkForConflictWithSingleTypeImport(String name, Location location) private voidUnitCompiler.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.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.TypeClassBodyEvaluator.classToType(Location location, Class<?> clazz) protected Java.TypeExpressionEvaluator.classToType(Location location, Class<?> clazz) protected Java.TypeScriptEvaluator.classToType(Location loc, Class<?> clazz) protected Java.TypeSimpleCompiler.classToType(Location location, Class<?> clazz) private voidUnitCompiler.compileError(String message, Location location) Issues a compile error with the given message.protected static CompileExceptionParser.compileException(String message, Location location) Convenience method for throwing aCompileException.private IClass.IFieldUnitCompiler.findIField(IClass iClass, String name, Location location) Finds a named field in the givenIClass.private IClassUnitCompiler.findMemberType(IType iType, String name, Java.TypeArgument[] typeArguments, Location location) Finds a named type in the givenIClassorIParameterizedType.private IClassUnitCompiler.findTypeByFullyQualifiedName(Location location, String[] identifiers) Attempts to load anIClassby fully-qualified name throughUnitCompiler.iClassLoader.private IClassUnitCompiler.findTypeByName(Location location, String className) Finds the namedIClassin this compilation unit, or through theUnitCompiler.iClassLoader.private IClassUnitCompiler.getRawReferenceType(Location location, String simpleTypeName, Java.Scope scope) private ITypeUnitCompiler.getReferenceType(Location location, String simpleTypeName, Java.TypeArgument[] typeArguments, Java.Scope scope) JLS7 6.5.5.1 Simple type name (single identifier)private ITypeUnitCompiler.getReferenceType(Location location, Java.Scope scope, String[] identifiers, int n, Java.TypeArgument[] typeArguments) String[]UnitCompiler.getSingleTypeImport(String name, Location location) Checks if the given simple name was imported through a single type import.voidFilterWarningHandler.handleWarning(String handle, String message, Location location) private IClassUnitCompiler.importSingleType(String simpleTypeName, Location location) If the given name was declared in a simple type import, load that class.private voidUnitCompiler.importStatic(IClass declaringIClass, String simpleName, Collection<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.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.private IClassUnitCompiler.importTypeOnDemand2(String simpleTypeName, Location location) private Java.MethodDeclaratorScriptEvaluator.makeMethodDeclaration(Location location, Java.Annotation[] annotations, boolean staticMethod, Class<?> returnType, String methodName, Class<?>[] parameterTypes, String[] parameterNames, Class<?>[] thrownExceptions, Java.BlockStatement[] statements) protected Java.TypeClassBodyEvaluator.optionalClassToType(Location location, Class<?> clazz) protected Java.TypeExpressionEvaluator.optionalClassToType(Location location, Class<?> clazz) protected Java.TypeScriptEvaluator.optionalClassToType(Location loc, Class<?> clazz) protected Java.TypeSimpleCompiler.optionalClassToType(Location location, Class<?> clazz) private Java.AtomUnitCompiler.reclassifyName(Location location, Java.Scope scope, String identifier) JLS7 6.5.2.1private Java.AtomUnitCompiler.reclassifyName(Location location, Java.Scope scope, String[] identifiers, int n) Reclassifies the ambiguous name consisting of the first n of the identifiers (JLS7 6.5.2.2).private static StringDecodes any escape sequences like\n, or\377, but not\uxxxx.private voidParser.verifyIdentifierIsConventionalClassOrInterfaceName(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 voidParser.verifyIdentifierIsConventionalFieldName(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 voidParser.verifyIdentifierIsConventionalLocalVariableOrParameterName(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 voidParser.verifyIdentifierIsConventionalMethodName(String id, Location loc) Issues a warning if the given identifier does not comply with the method naming conventions (JLS7 6.8.3).private voidParser.verifyStringIsConventionalPackageName(String s, Location loc) Issues a warning if the given string does not comply with the package naming conventions.private voidIssues a warning with the given message and location and returns.private voidIssues a warning with the given message and location and returns.private voidIssues a warning with the given message an location an returns.Constructors in org.codehaus.janino with parameters of type LocationModifierConstructorDescriptionAbstractClassDeclaration(Location location, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters) protectedAbstractTypeBodyDeclaration(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) BinaryOperation(Location location, Java.Rvalue lhs, String operator, Java.Rvalue rhs) BooleanLiteral(Location location, String value) protectedBooleanRvalue(Location location) protectedBreakableStatement(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) protectedConstructorInvocation(Location location, Java.Rvalue[] arguments) protectedContinuableStatement(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) protectedExportsModuleDirective(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) protectedInterfaceDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes) protectedInvocation(Location location, String methodName, Java.Rvalue[] arguments) LabeledStatement(Location location, String label, Java.Statement body) LambdaExpression(Location location, Java.LambdaParameters parameters, Java.LambdaBody body) 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) protectedprotectedMemberAnnotationTypeDeclaration(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) (package private)NewInitializedArray(Location location, IClass arrayIClass, Java.ArrayInitializer arrayInitializer) NewInitializedArray(Location location, Java.ArrayType arrayType, Java.ArrayInitializer arrayInitializer) NullLiteral(Location location) protectedOpensModuleDirective(Location location, String[] packageName, String[][] toModuleNames) 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) protectedProvidesModuleDirective(Location location, String[] typeName, String[][] withTypeNames) QualifiedThisReference(Location location, Java.Type qualification) ReferenceType(Location location, Java.Annotation[] annotations, String[] identifiers, Java.TypeArgument[] typeArguments) protectedRequiresModuleDirective(Location location, Java.Modifier[] requiresModifiers, String[] moduleName) protectedReturnStatement(Location location, Java.Rvalue returnValue) protectedRvalueMemberType(Location location, Java.Rvalue rvalue, String identifier) Notice: The rvalue is not a subordinate object!SimpleConstant(Location location) Equivalent of thenullliteral.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.FloatingPointLiteralwith typedouble.SimpleConstant(Location location, float value) Equivalent of aJava.FloatingPointLiteralwith typefloat.SimpleConstant(Location location, int value) Equivalent of anJava.IntegerLiteralwith typeint.SimpleConstant(Location location, long value) Equivalent of anJava.IntegerLiteralwith typelong.SimpleConstant(Location location, short value) Equivalent of an literal, cast toshort.SimpleConstant(Location location, String value) SimpleType(Location location, IType iType) SingleStaticImportDeclaration(Location location, String[] identifiers) SingleTypeImportDeclaration(Location location, String[] identifiers) protectedStaticImportOnDemandDeclaration(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) ThisReference(Location location) ThrowStatement(Location location, Java.Rvalue expression) 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.protectedTypeImportOnDemandDeclaration(Location location, String[] identifiers) UnaryOperation(Location location, String operator, Java.Rvalue operand) protectedUsesModuleDirective(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)