|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.janino.Java.Located
org.codehaus.janino.Java.AbstractTypeBodyDeclaration
org.codehaus.janino.Java.FunctionDeclarator
public abstract static class Java.FunctionDeclarator
Abstract base class for Java.ConstructorDeclarator and Java.MethodDeclarator.
| Nested Class Summary | |
|---|---|
static class |
Java.FunctionDeclarator.FormalParameter
Representation of a (formal) function parameter. |
static class |
Java.FunctionDeclarator.FormalParameters
Representation of the (formal) function parameters. |
| Field Summary | |
|---|---|
Java.FunctionDeclarator.FormalParameters |
formalParameters
The parameters of the function. |
Map<String,Java.LocalVariable> |
localVariables
Mapping of variable names to Java.LocalVariables. |
Java.Modifiers |
modifiers
The Java.Modifiers of this declarator. |
String |
name
The name of the function (" |
List<? extends Java.BlockStatement> |
optionalStatements
The statements that comprise the function; null for abstract method declarations. |
Java.Type[] |
thrownExceptions
The types of the declared exceptions. |
Java.Type |
type
The return type of the function (VOID for constructors). |
| Fields inherited from class org.codehaus.janino.Java.AbstractTypeBodyDeclaration |
|---|
statiC |
| Fields inherited from class org.codehaus.janino.Java.Located |
|---|
NOWHERE |
| Constructor Summary | |
|---|---|
Java.FunctionDeclarator(Location location,
String optionalDocComment,
Java.Modifiers modifiers,
Java.Type type,
String name,
Java.FunctionDeclarator.FormalParameters parameters,
Java.Type[] thrownExceptions,
List<? extends Java.BlockStatement> optionalStatements)
|
|
| Method Summary | |
|---|---|
abstract void |
accept(Visitor.FunctionDeclaratorVisitor visitor)
Invokes the ' visit...()' method of Visitor.FunctionDeclaratorVisitor for the concrete
Java.FunctionDeclarator type. |
Java.Annotation[] |
getAnnotations()
|
String |
getDocComment()
|
Java.Scope |
getEnclosingScope()
|
boolean |
hasDeprecatedDocTag()
Returns true if the object has a doc comment and
the @deprecated tag appears in the doc
comment. |
void |
setDeclaringType(Java.TypeDeclaration declaringType)
Sets the type declaration that this declaration belongs to. |
| 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.TypeBodyDeclaration |
|---|
accept |
| Methods inherited from interface org.codehaus.janino.Java.Locatable |
|---|
getLocation, throwCompileException |
| Field Detail |
|---|
public final Java.Modifiers modifiers
Java.Modifiers of this declarator.
public final Java.Type type
public final String name
public final Java.FunctionDeclarator.FormalParameters formalParameters
public final Java.Type[] thrownExceptions
public final List<? extends Java.BlockStatement> optionalStatements
null for abstract method declarations.
public Map<String,Java.LocalVariable> localVariables
Java.LocalVariables.
| Constructor Detail |
|---|
public Java.FunctionDeclarator(Location location,
String optionalDocComment,
Java.Modifiers modifiers,
Java.Type type,
String name,
Java.FunctionDeclarator.FormalParameters parameters,
Java.Type[] thrownExceptions,
List<? extends Java.BlockStatement> optionalStatements)
| Method Detail |
|---|
public Java.Annotation[] getAnnotations()
public abstract void accept(Visitor.FunctionDeclaratorVisitor visitor)
visit...()' method of Visitor.FunctionDeclaratorVisitor for the concrete
Java.FunctionDeclarator type.
public void setDeclaringType(Java.TypeDeclaration declaringType)
Java.TypeBodyDeclaration
setDeclaringType in interface Java.TypeBodyDeclarationsetDeclaringType in class Java.AbstractTypeBodyDeclarationpublic Java.Scope getEnclosingScope()
getEnclosingScope in interface Java.ScopegetEnclosingScope in class Java.AbstractTypeBodyDeclarationnullpublic String getDocComment()
getDocComment in interface Java.DocCommentablenullpublic boolean hasDeprecatedDocTag()
Java.DocCommentabletrue if the object has a doc comment and
the @deprecated tag appears in the doc
comment.
hasDeprecatedDocTag in interface Java.DocCommentable
|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||