public class Method extends GraphMember
| Modifier and Type | Field and Description |
|---|---|
static StringFilter<Method> |
NAME |
static java.lang.String |
PROPERTY_ANNOTATIONS |
static java.lang.String |
PROPERTY_MODIFIER |
static java.lang.String |
PROPERTY_NODE |
static java.lang.String |
PROPERTY_PARAMETER |
static java.lang.String |
PROPERTY_RETURNTYPE |
children, name, parentNode, PROPERTY_NAME| Constructor and Description |
|---|
Method() |
Method(java.lang.String name) |
Method(java.lang.String name,
DataType returnType,
Parameter... parameters) |
Method(java.lang.String name,
Parameter... parameters) |
| Modifier and Type | Method and Description |
|---|---|
Parameter |
create(Clazz type) |
Parameter |
create(DataType type) |
Annotation |
getAnnotation() |
java.lang.String |
getBody() |
Clazz |
getClazz() |
Modifier |
getModifier() |
java.lang.String |
getName(boolean shortName) |
ParameterSet |
getParameter(Condition<?>... filters)
get All Parameter
|
DataType |
getReturnType() |
SimpleSet<Throws> |
getThrows() |
boolean |
isValidReturn() |
java.lang.String |
toString() |
Method |
with(Annotation value) |
Method |
with(Clazz returnType) |
Method |
with(DataType returnType) |
Method |
with(Modifier... modifiers) |
Method |
with(Parameter... values) |
Method |
with(java.lang.String name)
Set the name of Element
|
Method |
with(Throws... values) |
Method |
withBody(java.lang.String value) |
Method |
without(Annotation... values) |
Method |
without(Parameter... values) |
Method |
withParameter(java.lang.String paramName,
Clazz dataType) |
Method |
withParameter(java.lang.String paramName,
DataType dataType) |
Method |
withParent(Clazz value) |
check, getName, setParentNode, withAnnotaion, withChildren, withoutpublic static final StringFilter<Method> NAME
public static final java.lang.String PROPERTY_RETURNTYPE
public static final java.lang.String PROPERTY_PARAMETER
public static final java.lang.String PROPERTY_NODE
public static final java.lang.String PROPERTY_MODIFIER
public static final java.lang.String PROPERTY_ANNOTATIONS
public Method()
public Method(java.lang.String name)
public Method(java.lang.String name,
Parameter... parameters)
public Method with(java.lang.String name)
GraphMemberwith in class GraphMembername - The Name of Elementpublic java.lang.String getName(boolean shortName)
public Modifier getModifier()
getModifier in class GraphMemberpublic DataType getReturnType()
public Clazz getClazz()
public java.lang.String getBody()
public Method withBody(java.lang.String value)
public ParameterSet getParameter(Condition<?>... filters)
filters - Can Filter the List of ParameterMethod --------------------- Parameter one many
public Method without(Annotation... values)
public Annotation getAnnotation()
getAnnotation in class GraphMemberpublic Method with(Annotation value)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isValidReturn()