Web Site

org.codehaus.janino
Class Java.PackageDeclaration

java.lang.Object
  extended byorg.codehaus.janino.Java.Located
      extended byorg.codehaus.janino.Java.PackageDeclaration
All Implemented Interfaces:
Java.Locatable
Enclosing class:
Java

public static class Java.PackageDeclaration
extends org.codehaus.janino.Java.Located

Represents a package declaration like

     package com.acme.tools;


Constructor Summary
Java.PackageDeclaration(Location location, String packageName)
           
 
Method Summary
 Location getLocation()
           
 String getPackageName()
           
 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
 

Constructor Detail

Java.PackageDeclaration

public Java.PackageDeclaration(Location location,
                               String packageName)
Method Detail

getPackageName

public String getPackageName()

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