public class MethodImp extends Object implements IMethodReader, IMethodWriter, Comparable<MethodImp>
| Constructor and Description |
|---|
MethodImp(IMethodReader method) |
MethodImp(String name) |
public MethodImp(String name)
name - of the methodpublic MethodImp(IMethodReader method)
method - to be addedpublic IMethodWriter name(String name)
name in interface IMethodWritername - of the methodpublic IMethodWriter returnTypeAsVoid()
returnTypeAsVoid in interface IMethodWriterpublic IMethodWriter returnType(Class<?> clazz)
returnType in interface IMethodWriterclazz - of the returned type of the methodpublic IFieldWriter parameter(String name, Class<?> type)
parameter in interface IMethodWritername - of the parametertype - of the parameterpublic String name()
name in interface IMethodReaderpublic Class<?> returnType()
returnType in interface IMethodReaderpublic Collection<IFieldReader> parameters()
parameters in interface IMethodReaderpublic IMethodWriter modifiers(ModifierEnum... modifiers)
modifiers in interface IMethodWritermodifiers - to the methodpublic Collection<ModifierEnum> modifiers()
modifiers in interface IMethodReaderpublic IMethodWriter visibility(VisibilityEnum visibility)
visibility in interface IMethodWritervisibility - of the methodpublic VisibilityEnum visibility()
visibility in interface IMethodReaderpublic IAnnotationPropertyWriter annotation(Class<? extends Annotation> annotation)
annotation in interface IAnnotationWriterannotation - to associatepublic IAnnotationPropertyWriter annotation(Class<? extends Annotation> annotation, LocationEnum location)
annotation in interface IAnnotationWriterannotation - to associatelocation - to bepublic IAnnotationPropertyWriter annotation(IAnnotationReader annotation)
annotation in interface IAnnotationWriterannotation - to associatepublic Collection<IAnnotationReader> annotations()
annotations in interface IMethodReaderpublic IMethodWriter exceptions(Class<?>... exceptions)
exceptions in interface IMethodWriterexceptions - of the methodpublic Collection<Class<?>> exceptions()
exceptions in interface IMethodReaderpublic IMethodWriter value(Object value)
value in interface IMethodWritervalue - to be default (annotations only)public Object value()
IMethodReadervalue in interface IMethodReaderpublic int compareTo(MethodImp other)
compareTo in interface Comparable<MethodImp>Copyright © 2017 Esfinge Framework. All rights reserved.