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.ConstructorDeclaratorandJava.MethodDeclarator.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJava.FunctionDeclarator.FormalParameter
-
Field Summary
Fields Modifier and Type Field Description Java.FunctionDeclarator.FormalParameter[]formalParametersjava.util.MaplocalVariablesJava.ModifiersAndAnnotationsmodifiersAndAnnotationsjava.lang.Stringnamejava.util.ListoptionalStatementsJava.Type[]thrownExceptionsJava.Typetype-
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.StringgetDocComment()Returns the doc comment of the object ornull.Java.ScopegetEnclosingScope()booleanhasDeprecatedDocTag()Returnstrueif 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, 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:
setDeclaringTypein interfaceJava.TypeBodyDeclaration- Overrides:
setDeclaringTypein classJava.AbstractTypeBodyDeclaration
-
getEnclosingScope
public Java.Scope getEnclosingScope()
- Specified by:
getEnclosingScopein interfaceJava.Scope- Overrides:
getEnclosingScopein classJava.AbstractTypeBodyDeclaration
-
getDocComment
public java.lang.String 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
-
-