|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.errai.codegen.meta.MetaMethod
org.jboss.errai.codegen.meta.impl.build.BuildMetaMethod
public class BuildMetaMethod
Constructor Summary | |
---|---|
BuildMetaMethod(BuildMetaClass declaringClass,
BlockStatement body,
Scope scope,
DefModifiers modifiers,
String name,
MetaClass returnType,
DefParameters defParameters,
ThrowsDeclaration throwsDeclaration)
|
Method Summary | |
---|---|
void |
addAnnotations(Annotation... annotations)
|
void |
addAnnotations(Collection<Annotation> annotations)
|
Annotation[] |
getAnnotations()
|
BlockStatement |
getBody()
|
MetaClass[] |
getCheckedExceptions()
|
MetaClass |
getDeclaringClass()
|
MetaType[] |
getGenericParameterTypes()
|
MetaType |
getGenericReturnType()
Returns the MetaType representing the return type of the method. |
String |
getName()
|
MetaParameter[] |
getParameters()
|
MetaMethod |
getReifiedFormOf()
|
MetaClass |
getReturnType()
Returns the MetaClass representing this method's return type. |
MetaTypeVariable[] |
getTypeParameters()
Returns the array of type variables declared on this generic declaration site, in the order they were declared in the source code. |
boolean |
isAbstract()
|
boolean |
isFinal()
|
boolean |
isPrivate()
|
boolean |
isProtected()
|
boolean |
isPublic()
|
boolean |
isReifiedForm()
|
boolean |
isStatic()
|
boolean |
isSynchronized()
|
boolean |
isSynthetic()
|
boolean |
isTransient()
|
boolean |
isVarArgs()
|
boolean |
isVolatile()
|
void |
setBody(BlockStatement body)
|
void |
setDeclaringClass(BuildMetaClass declaringClass)
|
void |
setDefParameters(DefParameters defParameters)
|
void |
setGenericParameterTypes(List<MetaType> genericParameterTypes)
|
void |
setGenericReturnType(MetaType genericReturnType)
|
void |
setMethodComment(String methodComment)
|
void |
setName(String name)
|
void |
setReifiedFormOf(MetaMethod reifiedFormOf)
|
void |
setReturnType(MetaClass returnType)
|
void |
setScope(Scope scope)
|
void |
setThrowsDeclaration(ThrowsDeclaration throwsDeclaration)
|
String |
toJavaString()
Validates the statement and generates the String representation. |
String |
toString()
|
Methods inherited from class org.jboss.errai.codegen.meta.MetaMethod |
---|
asMethod, equals, getAnnotation, getParametersAnnotatedWith, hashCode, hashString, isAnnotationPresent |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BuildMetaMethod(BuildMetaClass declaringClass, BlockStatement body, Scope scope, DefModifiers modifiers, String name, MetaClass returnType, DefParameters defParameters, ThrowsDeclaration throwsDeclaration)
Method Detail |
---|
public String getName()
getName
in interface MetaClassMember
getName
in class MetaMethod
public MetaClass getReturnType()
MetaMethod
getReturnType
in class MetaMethod
public MetaType getGenericReturnType()
MetaMethod
MetaClass
equivalent to the one returned by
MetaMethod.getReturnType()
. Other possible types could be
MetaWildcardType
, MetaParameterizedType
, and
MetaTypeVariable
.
As of Errai 2.2, some implementations of this method are incomplete and will return null if they cannot make sense of the method's return type.
getGenericReturnType
in class MetaMethod
public MetaType[] getGenericParameterTypes()
getGenericParameterTypes
in class MetaMethod
public MetaParameter[] getParameters()
getParameters
in class MetaMethod
public MetaClass getDeclaringClass()
getDeclaringClass
in interface MetaClassMember
public boolean isAbstract()
isAbstract
in interface MetaClassMember
public boolean isPublic()
isPublic
in interface MetaClassMember
public boolean isPrivate()
isPrivate
in interface MetaClassMember
public boolean isProtected()
isProtected
in interface MetaClassMember
public boolean isFinal()
isFinal
in interface MetaClassMember
public boolean isStatic()
isStatic
in interface MetaClassMember
public boolean isTransient()
isTransient
in interface MetaClassMember
public boolean isSynthetic()
isSynthetic
in interface MetaClassMember
public boolean isVolatile()
isVolatile
in interface MetaClassMember
public boolean isSynchronized()
isSynchronized
in interface MetaClassMember
public void addAnnotations(Annotation... annotations)
public void addAnnotations(Collection<Annotation> annotations)
public Annotation[] getAnnotations()
getAnnotations
in interface HasAnnotations
public MetaTypeVariable[] getTypeParameters()
MetaGenericDeclaration
getTypeParameters
in interface MetaGenericDeclaration
public MetaClass[] getCheckedExceptions()
getCheckedExceptions
in class MetaMethod
public void setDeclaringClass(BuildMetaClass declaringClass)
public void setScope(Scope scope)
public void setName(String name)
public void setReturnType(MetaClass returnType)
public void setGenericReturnType(MetaType genericReturnType)
public void setGenericParameterTypes(List<MetaType> genericParameterTypes)
public void setBody(BlockStatement body)
public void setDefParameters(DefParameters defParameters)
public void setThrowsDeclaration(ThrowsDeclaration throwsDeclaration)
public BlockStatement getBody()
public boolean isVarArgs()
isVarArgs
in class MetaMethod
public boolean isReifiedForm()
public MetaMethod getReifiedFormOf()
public void setReifiedFormOf(MetaMethod reifiedFormOf)
public void setMethodComment(String methodComment)
public String toJavaString()
Builder
toJavaString
in interface Builder
public String toString()
toString
in class Object
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |