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.Assignment, Java.Atom, Java.BasicType, Java.BinaryOperation, Java.Block, Java.BooleanRvalue, Java.BreakableStatement, Java.BreakStatement, Java.Cast, Java.CatchClause, 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.ForStatement, Java.FunctionDeclarator, Java.FunctionDeclarator.FormalParameter, Java.IfStatement, Java.Initializer, Java.Instanceof, 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.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.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.Locatable

This interface is implemented by objects which are associated with a location in the source code.


Method Summary
 Location getLocation()
           
 void throwCompileException(java.lang.String message)
          Throw a CompileException with the given message and this object's location.
 

Method Detail

getLocation

Location getLocation()

throwCompileException

void throwCompileException(java.lang.String message)
                           throws CompileException
Throw a CompileException with the given message and this object's location.

Parameters:
message - The message to report
Throws:
CompileException


Copyright © 2001-2012. All Rights Reserved.