Interface Java.Locatable

All Known Subinterfaces:
Java.Annotation, Java.AnnotationTypeDeclaration, Java.ArrayInitializerOrRvalue, Java.BlockStatement, Java.ClassDeclaration, Java.ElementValue, Java.EnumDeclaration, Java.FieldDeclarationOrInitializer, Java.InnerClassDeclaration, Java.MemberTypeDeclaration, Java.Modifier, Java.NamedTypeDeclaration, Java.PackageMemberTypeDeclaration, Java.TypeBodyDeclaration, Java.TypeDeclaration
All Known Implementing Classes:
Java.AbstractAnnotation, Java.AbstractClassDeclaration, Java.AbstractCompilationUnit.ImportDeclaration, Java.AbstractCompilationUnit.SingleStaticImportDeclaration, Java.AbstractCompilationUnit.SingleTypeImportDeclaration, Java.AbstractCompilationUnit.StaticImportOnDemandDeclaration, Java.AbstractCompilationUnit.TypeImportOnDemandDeclaration, Java.AbstractTypeBodyDeclaration, Java.AbstractTypeDeclaration, Java.AccessModifier, Java.AlternateConstructorInvocation, Java.AmbiguousName, Java.AnonymousClassDeclaration, Java.ArrayAccessExpression, Java.ArrayCreationReference, Java.ArrayInitializer, Java.ArrayLength, Java.ArrayType, Java.AssertStatement, Java.Assignment, Java.Atom, Java.BinaryOperation, Java.Block, Java.BooleanLiteral, Java.BooleanRvalue, Java.BreakableStatement, Java.BreakStatement, Java.Cast, Java.CatchClause, Java.CatchParameter, Java.CharacterLiteral, Java.ClassInstanceCreationReference, Java.ClassLiteral, Java.ConditionalExpression, Java.ConstructorDeclarator, Java.ConstructorInvocation, Java.ContinuableStatement, Java.ContinueStatement, Java.Crement, Java.DoStatement, Java.ElementValueArrayInitializer, Java.EmptyStatement, Java.EnumConstant, Java.ExportsModuleDirective, Java.ExpressionStatement, Java.FieldAccess, Java.FieldAccessExpression, Java.FieldDeclaration, Java.FloatingPointLiteral, Java.ForEachStatement, Java.ForStatement, Java.FunctionDeclarator, Java.FunctionDeclarator.FormalParameter, Java.FunctionDeclarator.FormalParameters, Java.IfStatement, Java.Initializer, Java.Instanceof, Java.IntegerLiteral, Java.InterfaceDeclaration, Java.Invocation, Java.LabeledStatement, Java.LambdaExpression, Java.Literal, Java.LocalClassDeclaration, Java.LocalClassDeclarationStatement, Java.LocalVariableAccess, Java.LocalVariableDeclarationStatement, Java.Located, Java.Lvalue, Java.MarkerAnnotation, Java.MemberAnnotationTypeDeclaration, Java.MemberClassDeclaration, Java.MemberEnumDeclaration, Java.MemberInterfaceDeclaration, Java.MethodDeclarator, Java.MethodInvocation, Java.MethodReference, Java.ModuleDeclaration, Java.NamedClassDeclaration, Java.NewAnonymousClassInstance, Java.NewArray, Java.NewClassInstance, Java.NewInitializedArray, Java.NormalAnnotation, Java.NullLiteral, Java.OpensModuleDirective, Java.Package, Java.PackageDeclaration, Java.PackageMemberAnnotationTypeDeclaration, Java.PackageMemberClassDeclaration, Java.PackageMemberEnumDeclaration, Java.PackageMemberInterfaceDeclaration, Java.ParameterAccess, Java.ParenthesizedExpression, Java.PrimitiveType, Java.ProvidesModuleDirective, Java.QualifiedThisReference, Java.ReferenceType, Java.RequiresModuleDirective, Java.ReturnStatement, Java.Rvalue, Java.RvalueMemberType, Java.SimpleConstant, Java.SimpleType, Java.SingleElementAnnotation, Java.Statement, Java.StringLiteral, Java.SuperclassFieldAccessExpression, Java.SuperclassMethodInvocation, Java.SuperConstructorInvocation, Java.SwitchStatement, Java.SwitchStatement.SwitchBlockStatementGroup, Java.SynchronizedStatement, Java.ThisReference, Java.ThrowStatement, Java.TryStatement, Java.TryStatement.LocalVariableDeclaratorResource, Java.TryStatement.Resource, Java.TryStatement.VariableAccessResource, Java.Type, Java.UnaryOperation, Java.UsesModuleDirective, Java.VariableDeclarator, Java.WhileStatement
Enclosing class:
Java

public static interface Java.Locatable
This interface is implemented by objects which are associated with a location in the source code.
  • Method Details

    • getLocation

      Location getLocation()
      Returns:
      The location of this object
    • throwCompileException

      void throwCompileException(String message) throws CompileException
      Throws a CompileException with the given message and this object's location.
      Parameters:
      message - The message to report
      Throws:
      CompileException