Class Method
- java.lang.Object
-
- org.apache.camel.tooling.util.srcgen.Method
-
public class Method extends Object
-
-
Constructor Summary
Constructors Constructor Description Method()
-
Method Summary
-
-
-
Method Detail
-
setPublic
public Method setPublic()
-
setProtected
public Method setProtected()
-
setPrivate
public Method setPrivate()
-
setStatic
public Method setStatic()
-
setDefault
public Method setDefault()
-
setAbstract
public Method setAbstract()
-
getName
public String getName()
-
getReturnTypeLiteral
public String getReturnTypeLiteral()
-
getReturnType
public GenericType getReturnType()
-
setReturnType
public Method setReturnType(GenericType returnType)
-
addParameter
public Method addParameter(GenericType type, String name)
-
addParameter
public Method addParameter(GenericType type, String name, boolean vararg)
-
getBody
public String getBody()
-
addThrows
public Method addThrows(GenericType type)
-
addAnnotation
public Annotation addAnnotation(Class<? extends Annotation> clazz)
-
hasAnnotation
public boolean hasAnnotation(Class<? extends Annotation> clazz)
-
getAnnotation
public Annotation getAnnotation(Class<? extends Annotation> clazz)
-
getJavaDoc
public Javadoc getJavaDoc()
-
setConstructor
public Method setConstructor(boolean cns)
-
hasJavaDoc
public boolean hasJavaDoc()
-
copy
public Method copy()
-
-