org.jboss.errai.ioc.rebind.ioc.codegen
Class Parameter
java.lang.Object
org.jboss.errai.ioc.rebind.ioc.codegen.AbstractStatement
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Parameter
public Parameter(MetaClass type,
String name)
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.