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[] |
typeParameters
The type parameters declared for the method.
|
formalParameters, localVariables, name, statements, thrownExceptions, typemodifiersNOWHERE| Constructor and Description |
|---|
MethodDeclarator(Location location,
String docComment,
Java.Modifier[] modifiers,
Java.TypeParameter[] typeParameters,
Java.Type type,
String name,
Java.FunctionDeclarator.FormalParameters formalParameters,
Java.Type[] thrownExceptions,
Java.ElementValue defaultValue,
List<? extends Java.BlockStatement> statements) |
| 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. |
boolean |
isAbstract() |
boolean |
isDefault() |
boolean |
isFinal() |
boolean |
isNative() |
boolean |
isStatic() |
boolean |
isSynchronized() |
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, getAccess, getAnnotations, getDocComment, getEnclosingScope, hasDeprecatedDocTag, isStrictfpgetDeclaringType, getModifiersgetLocation, throwCompileExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLocation, throwCompileException@Nullable public final Java.TypeParameter[] typeParameters
@Nullable public Java.ElementValue defaultValue
public MethodDeclarator(Location location, @Nullable String docComment, Java.Modifier[] modifiers, @Nullable Java.TypeParameter[] typeParameters, Java.Type type, String name, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, @Nullable Java.ElementValue defaultValue, @Nullable List<? extends Java.BlockStatement> statements)
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 Throwablepublic boolean isStatic()
public boolean isDefault()
public boolean isAbstract()
public boolean isNative()
public boolean isFinal()
public boolean isSynchronized()
Copyright © 2022. All rights reserved.