public static final class Java.MethodDeclarator extends Java.FunctionDeclarator
Java.FunctionDeclarator.FormalParameter, Java.FunctionDeclarator.FormalParameters| Modifier and Type | Field and Description |
|---|---|
Java.ElementValue |
defaultValue
The optional "default value" of the declared method (only methods of annotation types can have a default
value).
|
Java.TypeParameter[] |
optionalTypeParameters
The type parameters declared for the method.
|
formalParameters, localVariables, modifiers, name, optionalStatements, thrownExceptions, typestatiCNOWHERE| Constructor and Description |
|---|
MethodDeclarator(Location location,
String optionalDocComment,
Java.Modifiers modifiers,
Java.TypeParameter[] optionalTypeParameters,
Java.Type type,
String name,
Java.FunctionDeclarator.FormalParameters formalParameters,
Java.Type[] thrownExceptions,
Java.ElementValue defaultValue,
List<? extends Java.BlockStatement> optionalStatements) |
| Modifier and Type | Method and Description |
|---|---|
<R,EX extends Throwable> |
accept(Visitor.FunctionDeclaratorVisitor<R,EX> visitor)
Invokes the "
visit...()" method of Visitor.FunctionDeclaratorVisitor for the concrete
Java.FunctionDeclarator type. |
void |
setDeclaringType(Java.TypeDeclaration declaringType)
Sets the type declaration that this declaration belongs to.
|
void |
setEnclosingScope(Java.Scope enclosingScope)
Forward-implements
Java.BlockStatement.setEnclosingScope(Java.Scope). |
String |
toString() |
accept, getAnnotations, getDocComment, getEnclosingScope, hasDeprecatedDocTaggetDeclaringType, isStaticgetLocation, throwCompileExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLocation, throwCompileException@Nullable public final Java.TypeParameter[] optionalTypeParameters
@Nullable public Java.ElementValue defaultValue
public MethodDeclarator(Location location, @Nullable String optionalDocComment, Java.Modifiers modifiers, @Nullable Java.TypeParameter[] optionalTypeParameters, Java.Type type, String name, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, @Nullable Java.ElementValue defaultValue, @Nullable List<? extends Java.BlockStatement> optionalStatements)
defaultValue - See defaultValuepublic void setDeclaringType(Java.TypeDeclaration declaringType)
Java.TypeBodyDeclarationsetDeclaringType in interface Java.TypeBodyDeclarationsetDeclaringType in class Java.FunctionDeclaratorpublic void setEnclosingScope(Java.Scope enclosingScope)
Java.AbstractTypeBodyDeclarationJava.BlockStatement.setEnclosingScope(Java.Scope).setEnclosingScope in class Java.FunctionDeclarator@Nullable public <R,EX extends Throwable> R accept(Visitor.FunctionDeclaratorVisitor<R,EX> visitor) throws EX extends Throwable
Java.FunctionDeclaratorvisit...()" method of Visitor.FunctionDeclaratorVisitor for the concrete
Java.FunctionDeclarator type.accept in class Java.FunctionDeclaratorEX extends ThrowableCopyright © 2019. All rights reserved.