public class ExecutableModel extends Object implements MethodModel
| Constructor and Description |
|---|
ExecutableModel(ExecutableElement element,
ExecutableType type,
ModelFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Map<String,Object>> |
annotations() |
TypeModel |
declaringClass() |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isConstructor() |
boolean |
isFinal() |
boolean |
isPublic() |
boolean |
isStatic() |
String |
name()
Get name of the method (simple string).
|
List<VarModel> |
parameters()
Get list of parameter (variable) models.
|
List<TypeModel> |
parameterTypes() |
String |
propertyName()
Get property name using standard prefixes - setX/getX/isX.
|
String |
toProperty(String regexPrefix,
String group)
Convert method name to property name by replacement using regular expression end replacement group.
|
String |
toString() |
TypeModel |
type()
Get type model representing the return type.
|
List<TypeModel> |
typeVariables() |
public ExecutableModel(ExecutableElement element, ExecutableType type, ModelFactory factory)
public String name()
MethodModelname in interface MethodModelpublic TypeModel type()
ElementModeltype in interface ElementModelpublic String propertyName()
MethodModelpropertyName in interface MethodModelpublic String toProperty(String regexPrefix, String group)
MethodModeltoProperty in interface MethodModelregexPrefix - Regular expression to match property name part of the method name.group - Which group identifies the name.public List<VarModel> parameters()
MethodModelparameters in interface MethodModelpublic List<TypeModel> typeVariables()
typeVariables in interface MethodModelpublic TypeModel declaringClass()
declaringClass in interface MethodModelpublic boolean isConstructor()
isConstructor in interface MethodModelpublic List<TypeModel> parameterTypes()
parameterTypes in interface MethodModelpublic boolean isStatic()
isStatic in interface ElementModelpublic boolean isPublic()
isPublic in interface ElementModelpublic boolean isFinal()
isFinal in interface ElementModelpublic Map<String,Map<String,Object>> annotations()
annotations in interface ElementModelCopyright © 2019. All rights reserved.