Package org.codehaus.janino
Class Java.FunctionDeclarator
- java.lang.Object
-
- org.codehaus.janino.Java.Located
-
- org.codehaus.janino.Java.AbstractTypeBodyDeclaration
-
- org.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 forJava.ConstructorDeclarator
andJava.MethodDeclarator
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Java.FunctionDeclarator.FormalParameter
-
Field Summary
Fields Modifier and Type Field Description Java.FunctionDeclarator.FormalParameter[]
formalParameters
java.util.Map
localVariables
Java.ModifiersAndAnnotations
modifiersAndAnnotations
java.lang.String
name
java.util.List
optionalStatements
Java.Type[]
thrownExceptions
Java.Type
type
-
Fields inherited from class org.codehaus.janino.Java.AbstractTypeBodyDeclaration
statiC
-
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
-
Constructor Summary
Constructors Constructor Description FunctionDeclarator(Location location, java.lang.String optionalDocComment, Java.ModifiersAndAnnotations modifiersAndAnnotations, Java.Type type, java.lang.String name, Java.FunctionDeclarator.FormalParameter[] formalParameters, Java.Type[] thrownExceptions, java.util.List optionalStatements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDocComment()
Returns the doc comment of the object ornull
.Java.Scope
getEnclosingScope()
boolean
hasDeprecatedDocTag()
Returnstrue
if the object has a doc comment and the@deprecated
tag appears in the doc comment.void
setDeclaringType(Java.TypeDeclaration declaringType)
-
Methods inherited from class org.codehaus.janino.Java.AbstractTypeBodyDeclaration
getDeclaringType, isStatic, setEnclosingScope
-
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
-
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.Locatable
getLocation, throwCompileException
-
Methods inherited from interface org.codehaus.janino.Java.TypeBodyDeclaration
accept
-
-
-
-
Field Detail
-
modifiersAndAnnotations
public final Java.ModifiersAndAnnotations modifiersAndAnnotations
-
type
public final Java.Type type
-
name
public final java.lang.String name
-
formalParameters
public final Java.FunctionDeclarator.FormalParameter[] formalParameters
-
thrownExceptions
public final Java.Type[] thrownExceptions
-
optionalStatements
public final java.util.List optionalStatements
-
localVariables
public java.util.Map localVariables
-
-
Constructor Detail
-
FunctionDeclarator
public FunctionDeclarator(Location location, java.lang.String optionalDocComment, Java.ModifiersAndAnnotations modifiersAndAnnotations, Java.Type type, java.lang.String name, Java.FunctionDeclarator.FormalParameter[] formalParameters, Java.Type[] thrownExceptions, java.util.List optionalStatements)
-
-
Method Detail
-
setDeclaringType
public void setDeclaringType(Java.TypeDeclaration declaringType)
- Specified by:
setDeclaringType
in interfaceJava.TypeBodyDeclaration
- Overrides:
setDeclaringType
in classJava.AbstractTypeBodyDeclaration
-
getEnclosingScope
public Java.Scope getEnclosingScope()
- Specified by:
getEnclosingScope
in interfaceJava.Scope
- Overrides:
getEnclosingScope
in classJava.AbstractTypeBodyDeclaration
-
getDocComment
public java.lang.String getDocComment()
Description copied from interface:Java.DocCommentable
Returns the doc comment of the object ornull
.- Specified by:
getDocComment
in interfaceJava.DocCommentable
-
hasDeprecatedDocTag
public boolean hasDeprecatedDocTag()
Description copied from interface:Java.DocCommentable
Returnstrue
if the object has a doc comment and the@deprecated
tag appears in the doc comment.- Specified by:
hasDeprecatedDocTag
in interfaceJava.DocCommentable
-
-