Web Site

org.codehaus.janino
Class Java.AbstractTypeBodyDeclaration

java.lang.Object
  extended byorg.codehaus.janino.Java.Located
      extended byorg.codehaus.janino.Java.AbstractTypeBodyDeclaration
All Implemented Interfaces:
Java.Locatable, Java.Scope, Java.TypeBodyDeclaration
Direct Known Subclasses:
Java.FunctionDeclarator, Java.Initializer
Enclosing class:
Java

public abstract static class Java.AbstractTypeBodyDeclaration
extends org.codehaus.janino.Java.Located
implements Java.TypeBodyDeclaration


Constructor Summary
protected Java.AbstractTypeBodyDeclaration(Location location, Java.TypeDeclaration declaringType, boolean statiC)
           
 
Method Summary
 Java.TypeDeclaration getDeclaringType()
           
 Java.Scope getEnclosingScope()
           
 Location getLocation()
           
 boolean isStatic()
           
 void throwParseException(String message)
          Throw a Parser.ParseException with the given message and this object's location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.janino.Java.TypeBodyDeclaration
visit
 
Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwParseException
 

Constructor Detail

Java.AbstractTypeBodyDeclaration

protected Java.AbstractTypeBodyDeclaration(Location location,
                                           Java.TypeDeclaration declaringType,
                                           boolean statiC)
Method Detail

getDeclaringType

public Java.TypeDeclaration getDeclaringType()
Specified by:
getDeclaringType in interface Java.TypeBodyDeclaration

isStatic

public boolean isStatic()
Specified by:
isStatic in interface Java.TypeBodyDeclaration

getEnclosingScope

public Java.Scope getEnclosingScope()
Specified by:
getEnclosingScope in interface Java.Scope
Returns:
Enclusing scope or "null".

getLocation

public Location getLocation()
Specified by:
getLocation in interface Java.Locatable

throwParseException

public void throwParseException(String message)
                         throws Parser.ParseException
Description copied from interface: Java.Locatable
Throw a Parser.ParseException with the given message and this object's location.

Specified by:
throwParseException in interface Java.Locatable
Parameters:
message - The message to report
Throws:
Parser.ParseException

Web Site