org.jboss.errai.ioc.rebind.ioc.codegen
Class Parameter

java.lang.Object
  extended by org.jboss.errai.ioc.rebind.ioc.codegen.AbstractStatement
      extended by org.jboss.errai.ioc.rebind.ioc.codegen.Parameter
All Implemented Interfaces:
HasAnnotations, MetaParameter, Statement

public class Parameter
extends AbstractStatement
implements MetaParameter

Author:
Mike Brock , Christian Sadilek

Constructor Summary
Parameter(MetaClass type, String name)
           
 
Method Summary
 String generate(Context context)
           
<A extends Annotation>
A
getAnnotation(Class<A> annotation)
           
 Annotation[] getAnnotations()
           
 MetaClassMember getDeclaringMember()
           
 String getName()
           
 MetaClass getType()
           
 boolean isAnnotationPresent(Class<? extends Annotation> annotation)
           
static Parameter of(Class<?> type, String name)
           
static Parameter of(MetaClass type, String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parameter

public Parameter(MetaClass type,
                 String name)
Method Detail

of

public static Parameter of(MetaClass type,
                           String name)

of

public static Parameter of(Class<?> type,
                           String name)

generate

public String generate(Context context)
Specified by:
generate in interface Statement

getType

public MetaClass getType()
Specified by:
getType in interface MetaParameter
Specified by:
getType in interface Statement
Overrides:
getType in class AbstractStatement

getName

public String getName()
Specified by:
getName in interface MetaParameter

getDeclaringMember

public MetaClassMember getDeclaringMember()
Specified by:
getDeclaringMember in interface MetaParameter

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


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