Class ClassFileMethodDeclaration
java.lang.Object
org.jd.core.v1.model.javasyntax.declaration.MethodDeclaration
org.jd.core.v1.service.converter.classfiletojavasyntax.model.javasyntax.declaration.ClassFileMethodDeclaration
- All Implemented Interfaces:
Iterable<MemberDeclaration>, BaseMemberDeclaration, Declaration, MemberDeclaration, ClassFileConstructorOrMethodDeclaration, ClassFileMemberDeclaration, Base<MemberDeclaration>
public class ClassFileMethodDeclaration
extends MethodDeclaration
implements ClassFileConstructorOrMethodDeclaration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String, TypeArgument> protected ClassFileBodyDeclarationprotected ClassFileprotected intprotected Methodprotected BaseTypeFields inherited from class MethodDeclaration
annotationReferences, defaultAnnotationValue, descriptor, exceptionTypes, flags, formalParameters, name, returnedType, statements, typeParametersFields inherited from interface 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
ConstructorsConstructorDescriptionClassFileMethodDeclaration(ClassFileBodyDeclaration bodyDeclaration, ClassFile classFile, Method method, String name, Type returnedType, BaseType parameterTypes, Map<String, TypeArgument> bindings, Map<String, BaseType> typeBounds) ClassFileMethodDeclaration(ClassFileBodyDeclaration bodyDeclaration, ClassFile classFile, Method method, String name, Type returnedType, BaseType parameterTypes, Map<String, TypeArgument> bindings, Map<String, BaseType> typeBounds, int firstLineNumber) ClassFileMethodDeclaration(ClassFileBodyDeclaration bodyDeclaration, ClassFile classFile, Method method, BaseAnnotationReference annotationReferences, String name, BaseTypeParameter typeParameters, Type returnedType, BaseType parameterTypes, BaseType exceptionTypes, ElementValue defaultAnnotationValue, Map<String, TypeArgument> bindings, Map<String, BaseType> typeBounds, int firstLineNumber) -
Method Summary
Modifier and TypeMethodDescriptionintvoidsetFlags(int flags) voidsetFormalParameters(BaseFormalParameter formalParameters) voidsetStatements(BaseStatement statements) toString()Methods inherited from class MethodDeclaration
accept, getAnnotationReferences, getDefaultAnnotationValue, getDescriptor, getExceptionTypes, getFlags, getFormalParameters, getName, getReturnedType, getStatements, getTypeParametersMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ClassFileConstructorOrMethodDeclaration
getFlags, getReturnedType, getStatements, getTypeParametersMethods inherited from interface Declaration
acceptMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
bodyDeclaration
-
classFile
-
method
-
parameterTypes
-
bindings
-
typeBounds
-
firstLineNumber
protected int firstLineNumber
-
-
Constructor Details
-
ClassFileMethodDeclaration
-
ClassFileMethodDeclaration
-
ClassFileMethodDeclaration
public ClassFileMethodDeclaration(ClassFileBodyDeclaration bodyDeclaration, ClassFile classFile, Method method, BaseAnnotationReference annotationReferences, String name, BaseTypeParameter typeParameters, Type returnedType, BaseType parameterTypes, BaseType exceptionTypes, ElementValue defaultAnnotationValue, Map<String, TypeArgument> bindings, Map<String, BaseType> typeBounds, int firstLineNumber)
-
-
Method Details
-
setFlags
public void setFlags(int flags) - Specified by:
setFlagsin interfaceClassFileConstructorOrMethodDeclaration
-
setFormalParameters
- Specified by:
setFormalParametersin interfaceClassFileConstructorOrMethodDeclaration
-
setStatements
- Specified by:
setStatementsin interfaceClassFileConstructorOrMethodDeclaration
-
getBodyDeclaration
- Specified by:
getBodyDeclarationin interfaceClassFileConstructorOrMethodDeclaration
-
getClassFile
- Specified by:
getClassFilein interfaceClassFileConstructorOrMethodDeclaration
-
getMethod
- Specified by:
getMethodin interfaceClassFileConstructorOrMethodDeclaration
-
getParameterTypes
- Specified by:
getParameterTypesin interfaceClassFileConstructorOrMethodDeclaration
-
getBindings
- Specified by:
getBindingsin interfaceClassFileConstructorOrMethodDeclaration
-
getTypeBounds
- Specified by:
getTypeBoundsin interfaceClassFileConstructorOrMethodDeclaration
-
getFirstLineNumber
public int getFirstLineNumber()- Specified by:
getFirstLineNumberin interfaceClassFileMemberDeclaration
-
toString
- Overrides:
toStringin classMethodDeclaration
-