public interface Method extends Member
Declaration
subinterface for methods including abstract and class
methods.Access.AccessType
Modifier and Type | Method and Description |
---|---|
FormalParameter |
addParameter(Class type,
String name)
Adds a new
FormalParameter to this method signature with the
given type and name and returns the Method . |
FormalParameter |
addParameter(Type type,
String name)
Adds a new
FormalParameter to this method signature with the
given type and name and returns the Method . |
Method |
addThrows(String type)
Adds this string to the list of throws and returns the
Method . |
List<FormalParameter> |
getParameters()
Gets the list of formal parameter declarations as an list of
FormalParameter . |
List<String> |
getThrows()
Gets the list of throws clauses as an list of
String . |
Type |
getType()
Gets the (return) type of this method.
|
boolean |
isAbstract()
Accessor method for the isAbstract flag.
|
Method |
isAbstract(boolean value)
Mutator method for the isAbstract flag.
|
Method |
setType(Type type)
Sets the (return) type of this method.
|
addAnnotation, addAnnotation, getAnnotations, getName, isFinal, isFinal, isStatic, isStatic, setName
javadoc
applyStyle, cast, getComment, isActive, isBlockWithAbruptCompletion, setComment, toCode, visit, vm
FormalParameter addParameter(Class type, String name)
FormalParameter
to this method signature with the
given type and name and returns the Method
.FormalParameter addParameter(Type type, String name)
FormalParameter
to this method signature with the
given type and name and returns the Method
.Method addThrows(String type)
Method
.List<FormalParameter> getParameters()
FormalParameter
.Type getType()
boolean isAbstract()
Method isAbstract(boolean value)
Copyright © 2000–2018 jenesis4java. All rights reserved.