Class MethodDeclaration
java.lang.Object
org.jd.core.v1.model.javasyntax.declaration.MethodDeclaration
- All Implemented Interfaces:
Iterable<MemberDeclaration>
,BaseMemberDeclaration
,Declaration
,MemberDeclaration
,Base<MemberDeclaration>
- Direct Known Subclasses:
ClassFileMethodDeclaration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BaseAnnotationReference
protected ElementValue
protected String
protected BaseType
protected int
protected BaseFormalParameter
protected String
protected Type
protected BaseStatement
protected BaseTypeParameter
Fields inherited from interface org.jd.core.v1.model.javasyntax.declaration.Declaration
FLAG_ABSTRACT, FLAG_ANNOTATION, FLAG_BRIDGE, FLAG_DEFAULT, FLAG_ENUM, FLAG_FINAL, FLAG_INTERFACE, FLAG_MANDATED, FLAG_MODULE, FLAG_NATIVE, FLAG_OPEN, FLAG_PRIVATE, FLAG_PROTECTED, FLAG_PUBLIC, FLAG_STATIC, FLAG_STATIC_PHASE, FLAG_STRICT, FLAG_SUPER, FLAG_SYNCHRONIZED, FLAG_SYNTHETIC, FLAG_TRANSIENT, FLAG_TRANSITIVE, FLAG_VARARGS, FLAG_VOLATILE
-
Constructor Summary
ConstructorsConstructorDescriptionMethodDeclaration
(int flags, String name, Type returnedType, String descriptor) MethodDeclaration
(int flags, String name, Type returnedType, String descriptor, ElementValue defaultAnnotationValue) MethodDeclaration
(int flags, String name, Type returnedType, String descriptor, BaseStatement statements) MethodDeclaration
(int flags, String name, Type returnedType, BaseFormalParameter formalParameters, String descriptor, ElementValue defaultAnnotationValue) MethodDeclaration
(int flags, String name, Type returnedType, BaseFormalParameter formalParameters, String descriptor, BaseStatement statements) MethodDeclaration
(BaseAnnotationReference annotationReferences, int flags, String name, BaseTypeParameter typeParameters, Type returnedType, BaseFormalParameter formalParameters, BaseType exceptionTypes, String descriptor, BaseStatement statements, ElementValue defaultAnnotationValue) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(DeclarationVisitor visitor) int
getFlags()
getName()
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jd.core.v1.util.Base
getFirst, getLast, getList, isList, iterator, size
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
annotationReferences
-
flags
protected int flags -
name
-
typeParameters
-
returnedType
-
formalParameters
-
exceptionTypes
-
descriptor
-
statements
-
defaultAnnotationValue
-
-
Constructor Details
-
MethodDeclaration
-
MethodDeclaration
public MethodDeclaration(int flags, String name, Type returnedType, String descriptor, BaseStatement statements) -
MethodDeclaration
public MethodDeclaration(int flags, String name, Type returnedType, String descriptor, ElementValue defaultAnnotationValue) -
MethodDeclaration
public MethodDeclaration(int flags, String name, Type returnedType, BaseFormalParameter formalParameters, String descriptor, BaseStatement statements) -
MethodDeclaration
public MethodDeclaration(int flags, String name, Type returnedType, BaseFormalParameter formalParameters, String descriptor, ElementValue defaultAnnotationValue) -
MethodDeclaration
public MethodDeclaration(BaseAnnotationReference annotationReferences, int flags, String name, BaseTypeParameter typeParameters, Type returnedType, BaseFormalParameter formalParameters, BaseType exceptionTypes, String descriptor, BaseStatement statements, ElementValue defaultAnnotationValue)
-
-
Method Details
-
getAnnotationReferences
-
getFlags
public int getFlags() -
getName
-
getTypeParameters
-
getReturnedType
-
getFormalParameters
-
getExceptionTypes
-
getDescriptor
-
getStatements
-
getDefaultAnnotationValue
-
accept
- Specified by:
accept
in interfaceDeclaration
-
toString
-