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 for
Java.ConstructorDeclarator
and
Java.MethodDeclarator
.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.codehaus.janino.Java.AbstractTypeBodyDeclaration
statiC
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
Constructor Summary
ConstructorsConstructorDescriptionFunctionDeclarator
(Location location, String optionalDocComment, Java.ModifiersAndAnnotations modifiersAndAnnotations, Java.Type type, String name, Java.FunctionDeclarator.FormalParameter[] formalParameters, Java.Type[] thrownExceptions, List optionalStatements) -
Method Summary
Modifier and TypeMethodDescriptionReturns the doc comment of the object ornull
.boolean
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 Details
-
modifiersAndAnnotations
-
type
-
name
-
formalParameters
-
thrownExceptions
-
optionalStatements
-
localVariables
-
-
Constructor Details
-
FunctionDeclarator
public FunctionDeclarator(Location location, String optionalDocComment, Java.ModifiersAndAnnotations modifiersAndAnnotations, Java.Type type, String name, Java.FunctionDeclarator.FormalParameter[] formalParameters, Java.Type[] thrownExceptions, List optionalStatements)
-
-
Method Details
-
setDeclaringType
- Specified by:
setDeclaringType
in interfaceJava.TypeBodyDeclaration
- Overrides:
setDeclaringType
in classJava.AbstractTypeBodyDeclaration
-
getEnclosingScope
- Specified by:
getEnclosingScope
in interfaceJava.Scope
- Overrides:
getEnclosingScope
in classJava.AbstractTypeBodyDeclaration
-
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
-