Web Site

org.codehaus.janino
Class Java.FunctionDeclarator

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

public abstract static class Java.FunctionDeclarator
extends Java.AbstractTypeBodyDeclaration
implements Java.DocCommentable

Abstract base class for Java.ConstructorDeclarator and Java.MethodDeclarator.


Field Summary
protected  short modifiers
           
protected  Java.Type[] thrownExceptions
           
 
Constructor Summary
Java.FunctionDeclarator(Location location, Java.TypeDeclaration declaringType, String optionalDocComment, short modifiers, Java.Type type, String name, Java.FormalParameter[] formalParameters, Java.Type[] thrownExceptions)
           
 
Method Summary
 String getDocComment()
          Returns the doc comment of the object or null.
 Java.Scope getEnclosingScope()
           
 Java.FormalParameter[] getFormalParameters()
           
 short getModifiers()
           
 String getName()
           
 boolean hasDeprecatedDocTag()
          Returns true if the object has a doc comment and the @#deprecated tag appears in the doc comment.
 void setBody(Java.Block body)
           
 
Methods inherited from class org.codehaus.janino.Java.AbstractTypeBodyDeclaration
getDeclaringType, getLocation, isStatic, throwParseException
 
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
 

Field Detail

modifiers

protected final short modifiers

thrownExceptions

protected final Java.Type[] thrownExceptions
Constructor Detail

Java.FunctionDeclarator

public Java.FunctionDeclarator(Location location,
                               Java.TypeDeclaration declaringType,
                               String optionalDocComment,
                               short modifiers,
                               Java.Type type,
                               String name,
                               Java.FormalParameter[] formalParameters,
                               Java.Type[] thrownExceptions)
Method Detail

setBody

public void setBody(Java.Block body)

getEnclosingScope

public Java.Scope getEnclosingScope()
Specified by:
getEnclosingScope in interface Java.Scope
Overrides:
getEnclosingScope in class Java.AbstractTypeBodyDeclaration

getModifiers

public short getModifiers()

getName

public String getName()

getFormalParameters

public Java.FormalParameter[] getFormalParameters()

getDocComment

public String getDocComment()
Description copied from interface: Java.DocCommentable
Returns the doc comment of the object or null.

Specified by:
getDocComment in interface Java.DocCommentable

hasDeprecatedDocTag

public boolean hasDeprecatedDocTag()
Description copied from interface: Java.DocCommentable
Returns true if the object has a doc comment and the @#deprecated tag appears in the doc comment.

Specified by:
hasDeprecatedDocTag in interface Java.DocCommentable

Web Site