Package org.codehaus.janino
Interface Java.Locatable
-
- All Known Subinterfaces:
Java.BlockStatement,Java.MemberTypeDeclaration,Java.NamedTypeDeclaration,Java.PackageMemberTypeDeclaration,Java.TypeBodyDeclaration,Java.TypeDeclaration
- All Known Implementing Classes:
Java.AbstractTypeBodyDeclaration,Java.AbstractTypeDeclaration,Java.AlternateConstructorInvocation,Java.AmbiguousName,Java.AnonymousClassDeclaration,Java.ArrayAccessExpression,Java.ArrayInitializer,Java.ArrayLength,Java.ArrayType,Java.AssertStatement,Java.Assignment,Java.Atom,Java.BasicType,Java.BinaryOperation,Java.Block,Java.BooleanLiteral,Java.BooleanRvalue,Java.BreakableStatement,Java.BreakStatement,Java.Cast,Java.CatchClause,Java.CharacterLiteral,Java.ClassDeclaration,Java.ClassLiteral,Java.CompilationUnit.ImportDeclaration,Java.CompilationUnit.SingleStaticImportDeclaration,Java.CompilationUnit.SingleTypeImportDeclaration,Java.CompilationUnit.StaticImportOnDemandDeclaration,Java.CompilationUnit.TypeImportOnDemandDeclaration,Java.ConditionalExpression,Java.ConstructorDeclarator,Java.ConstructorInvocation,Java.ContinuableStatement,Java.ContinueStatement,Java.Crement,Java.DoStatement,Java.EmptyStatement,Java.ExpressionStatement,Java.FieldAccess,Java.FieldAccessExpression,Java.FieldDeclaration,Java.FloatingPointLiteral,Java.ForStatement,Java.FunctionDeclarator,Java.FunctionDeclarator.FormalParameter,Java.IfStatement,Java.Initializer,Java.Instanceof,Java.IntegerLiteral,Java.InterfaceDeclaration,Java.Invocation,Java.LabeledStatement,Java.Literal,Java.LocalClassDeclaration,Java.LocalClassDeclarationStatement,Java.LocalVariableAccess,Java.LocalVariableDeclarationStatement,Java.Located,Java.Lvalue,Java.MemberClassDeclaration,Java.MemberInterfaceDeclaration,Java.MethodDeclarator,Java.MethodInvocation,Java.NamedClassDeclaration,Java.NewAnonymousClassInstance,Java.NewArray,Java.NewClassInstance,Java.NewInitializedArray,Java.NullLiteral,Java.Package,Java.PackageDeclaration,Java.PackageMemberClassDeclaration,Java.PackageMemberInterfaceDeclaration,Java.ParameterAccess,Java.ParenthesizedExpression,Java.QualifiedThisReference,Java.ReferenceType,Java.ReturnStatement,Java.Rvalue,Java.RvalueMemberType,Java.SimpleType,Java.Statement,Java.StringLiteral,Java.SuperclassFieldAccessExpression,Java.SuperclassMethodInvocation,Java.SuperConstructorInvocation,Java.SwitchStatement,Java.SwitchStatement.SwitchBlockStatementGroup,Java.SynchronizedStatement,Java.ThisReference,Java.ThrowStatement,Java.TryStatement,Java.Type,Java.UnaryOperation,Java.VariableDeclarator,Java.WhileStatement
- Enclosing class:
- Java
public static interface Java.LocatableThis interface is implemented by objects which are associated with a location in the source code.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LocationgetLocation()voidthrowCompileException(java.lang.String message)Throw aCompileExceptionwith the given message and this object's location.
-
-
-
Method Detail
-
getLocation
Location getLocation()
-
throwCompileException
void throwCompileException(java.lang.String message) throws CompileExceptionThrow aCompileExceptionwith the given message and this object's location.- Parameters:
message- The message to report- Throws:
CompileException
-
-