public class MethodModelImpl extends GenericModelImpl<MethodModel> implements MethodModel
| Constructor and Description |
|---|
MethodModelImpl(ModifiersModel modifiers,
String name,
List<VarModel> parameters,
boolean isConstructor) |
| Modifier and Type | Method and Description |
|---|---|
List<StatementModel> |
body() |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isConstructor() |
String |
name() |
TypeModel |
owner() |
MethodModel |
owner(TypeModel owner) |
List<VarModel> |
parameters() |
boolean |
returnsValue() |
TypeModel |
returnType() |
MethodModel |
returnType(TypeModel returnType) |
String |
toString() |
MethodModel |
typeParameters(List<TypeModel> typeParameters) |
typeParametersannotations, metadata, modifiersclone, finalize, getClass, notify, notifyAll, wait, wait, waittypeParametersannotations, metadata, modifierspublic MethodModelImpl(ModifiersModel modifiers, String name, List<VarModel> parameters, boolean isConstructor)
public TypeModel returnType()
returnType in interface MethodModelpublic MethodModel returnType(TypeModel returnType)
returnType in interface MethodModelpublic String name()
name in interface MethodModelpublic List<VarModel> parameters()
parameters in interface MethodModelpublic boolean returnsValue()
returnsValue in interface MethodModelpublic boolean isConstructor()
isConstructor in interface MethodModelpublic List<StatementModel> body()
body in interface MethodModelpublic TypeModel owner()
owner in interface MethodModelpublic MethodModel owner(TypeModel owner)
owner in interface MethodModelpublic MethodModel typeParameters(List<TypeModel> typeParameters)
typeParameters in interface GenericModel<MethodModel>Copyright © 2019. All rights reserved.