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
statiCFields 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.booleanReturnstrueif the object has a doc comment and the@deprecatedtag appears in the doc comment.voidsetDeclaringType(Java.TypeDeclaration declaringType) Methods inherited from class org.codehaus.janino.Java.AbstractTypeBodyDeclaration
getDeclaringType, isStatic, setEnclosingScopeMethods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileExceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwCompileExceptionMethods 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:
setDeclaringTypein interfaceJava.TypeBodyDeclaration- Overrides:
setDeclaringTypein classJava.AbstractTypeBodyDeclaration
-
getEnclosingScope
- Specified by:
getEnclosingScopein interfaceJava.Scope- Overrides:
getEnclosingScopein classJava.AbstractTypeBodyDeclaration
-
getDocComment
Description copied from interface:Java.DocCommentableReturns the doc comment of the object ornull.- Specified by:
getDocCommentin interfaceJava.DocCommentable
-
hasDeprecatedDocTag
public boolean hasDeprecatedDocTag()Description copied from interface:Java.DocCommentableReturnstrueif the object has a doc comment and the@deprecatedtag appears in the doc comment.- Specified by:
hasDeprecatedDocTagin interfaceJava.DocCommentable
-