org.jboss.errai.ioc.rebind.ioc.codegen.meta.impl.build
Class BuildMetaMethod

java.lang.Object
  extended by org.jboss.errai.ioc.rebind.ioc.codegen.meta.MetaMethod
      extended by org.jboss.errai.ioc.rebind.ioc.codegen.meta.impl.build.BuildMetaMethod
All Implemented Interfaces:
Builder, HasAnnotations, MetaClassMember, MetaGenericDeclaration, MetaType

public class BuildMetaMethod
extends MetaMethod
implements Builder

Author:
Mike Brock

Constructor Summary
BuildMetaMethod(BuildMetaClass declaringClass, Statement body, Scope scope, DefModifiers modifiers, String name, MetaClass returnType, DefParameters defParameters, ThrowsDeclaration throwsDeclaration)
           
 
Method Summary
<A extends Annotation>
A
getAnnotation(Class<A> annotation)
           
 Annotation[] getAnnotations()
           
 MetaClass getDeclaringClass()
           
 MetaType[] getGenericParameterTypes()
           
 MetaType getGenericReturnType()
           
 String getName()
           
 MetaParameter[] getParameters()
           
 MetaClass getReturnType()
           
 MetaTypeVariable[] getTypeParameters()
           
 boolean isAbstract()
           
 boolean isAnnotationPresent(Class<? extends Annotation> annotation)
           
 boolean isFinal()
           
 boolean isPrivate()
           
 boolean isProtected()
           
 boolean isPublic()
           
 boolean isStatic()
           
 boolean isSynchronized()
           
 boolean isSynthetic()
           
 boolean isTransient()
           
 void setBody(Statement body)
           
 void setContext(Context context)
           
 void setDeclaringClass(BuildMetaClass declaringClass)
           
 void setDefParameters(DefParameters defParameters)
           
 void setGenericParameterTypes(List<MetaType> genericParameterTypes)
           
 void setGenericReturnType(MetaType genericReturnType)
           
 void setName(String name)
           
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BuildMetaMethod

public BuildMetaMethod(BuildMetaClass declaringClass,
                       Statement body,
                       Scope scope,
                       DefModifiers modifiers,
                       String name,
                       MetaClass returnType,
                       DefParameters defParameters,
                       ThrowsDeclaration throwsDeclaration)
Method Detail

getName

public String getName()
Specified by:
getName in class MetaMethod

getReturnType

public MetaClass getReturnType()
Specified by:
getReturnType in class MetaMethod

getGenericReturnType

public MetaType getGenericReturnType()
Specified by:
getGenericReturnType in class MetaMethod

getGenericParameterTypes

public MetaType[] getGenericParameterTypes()
Specified by:
getGenericParameterTypes in class MetaMethod

getParameters

public MetaParameter[] getParameters()
Specified by:
getParameters in class MetaMethod

getDeclaringClass

public MetaClass getDeclaringClass()
Specified by:
getDeclaringClass in interface MetaClassMember

isAbstract

public boolean isAbstract()
Specified by:
isAbstract in interface MetaClassMember

isPublic

public boolean isPublic()
Specified by:
isPublic in interface MetaClassMember

isPrivate

public boolean isPrivate()
Specified by:
isPrivate in interface MetaClassMember

isProtected

public boolean isProtected()
Specified by:
isProtected in interface MetaClassMember

isFinal

public boolean isFinal()
Specified by:
isFinal in interface MetaClassMember

isStatic

public boolean isStatic()
Specified by:
isStatic in interface MetaClassMember

isTransient

public boolean isTransient()
Specified by:
isTransient in interface MetaClassMember

isSynthetic

public boolean isSynthetic()
Specified by:
isSynthetic in interface MetaClassMember

isSynchronized

public boolean isSynchronized()
Specified by:
isSynchronized in interface MetaClassMember

getAnnotations

public Annotation[] getAnnotations()
Specified by:
getAnnotations in interface HasAnnotations

isAnnotationPresent

public boolean isAnnotationPresent(Class<? extends Annotation> annotation)
Specified by:
isAnnotationPresent in interface HasAnnotations

getAnnotation

public <A extends Annotation> A getAnnotation(Class<A> annotation)
Specified by:
getAnnotation in interface HasAnnotations

getTypeParameters

public MetaTypeVariable[] getTypeParameters()
Specified by:
getTypeParameters in interface MetaGenericDeclaration

setContext

public void setContext(Context context)

setDeclaringClass

public void setDeclaringClass(BuildMetaClass declaringClass)

setScope

public void setScope(Scope scope)

setName

public void setName(String name)

setReturnType

public void setReturnType(MetaClass returnType)

setGenericReturnType

public void setGenericReturnType(MetaType genericReturnType)

setGenericParameterTypes

public void setGenericParameterTypes(List<MetaType> genericParameterTypes)

setBody

public void setBody(Statement body)

setDefParameters

public void setDefParameters(DefParameters defParameters)

setThrowsDeclaration

public void setThrowsDeclaration(ThrowsDeclaration throwsDeclaration)

toJavaString

public String toJavaString()
Description copied from interface: Builder
Validates the statement and generates the String representation.

Specified by:
toJavaString in interface Builder
Returns:
Java String representation

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.