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

java.lang.Object
  extended by org.jboss.errai.ioc.rebind.ioc.codegen.meta.MetaClass
      extended by org.jboss.errai.ioc.rebind.ioc.codegen.meta.impl.AbstractMetaClass<Object>
          extended by org.jboss.errai.ioc.rebind.ioc.codegen.meta.impl.build.BuildMetaClass
All Implemented Interfaces:
Builder, HasAnnotations, MetaGenericDeclaration, MetaType

public class BuildMetaClass
extends AbstractMetaClass<Object>
implements Builder

Author:
Mike Brock

Field Summary
 
Fields inherited from class org.jboss.errai.ioc.rebind.ioc.codegen.meta.impl.AbstractMetaClass
parameterizedType
 
Constructor Summary
BuildMetaClass(Context context)
           
 
Method Summary
 void addConstructor(BuildMetaConstructor constructor)
           
 void addField(BuildMetaField field)
           
 void addInterface(MetaClass interfaceClass)
           
 void addMethod(BuildMetaMethod method)
           
 void addTypeVariable(MetaTypeVariable typeVariable)
           
 Annotation[] getAnnotations()
           
 String getCanonicalName()
           
 MetaClass getComponentType()
           
 MetaConstructor[] getConstructors()
           
 Context getContext()
           
 MetaConstructor[] getDeclaredConstructors()
           
 MetaField getDeclaredField(String name)
           
 MetaField[] getDeclaredFields()
           
 MetaMethod[] getDeclaredMethods()
           
 MetaField getField(String name)
           
 MetaField[] getFields()
           
 String getFullyQualifiedName()
           
 MetaClass[] getInterfaces()
           
 String getInternalName()
           
 MetaMethod[] getMethods()
           
 String getName()
           
 String getPackageName()
           
 MetaClass getSuperClass()
           
 MetaTypeVariable[] getTypeParameters()
           
 boolean isAbstract()
           
 boolean isAnnotation()
           
 boolean isArray()
           
 boolean isEnum()
           
 boolean isFinal()
           
 boolean isInterface()
           
 boolean isPrimitive()
           
 boolean isPrivate()
           
 boolean isProtected()
           
 boolean isPublic()
           
 boolean isStatic()
           
 boolean isVoid()
           
 void setAbstract(boolean anAbstract)
           
 void setClassName(String className)
           
 void setContext(Context context)
           
 void setFinal(boolean aFinal)
           
 void setInterface(boolean anInterface)
           
 void setInterfaces(List<MetaClass> interfaces)
           
 void setScope(Scope scope)
           
 void setStatic(boolean aStatic)
           
 void setSuperClass(MetaClass superClass)
           
 String toJavaString()
          Validates the statement and generates the String representation.
 
Methods inherited from class org.jboss.errai.ioc.rebind.ioc.codegen.meta.impl.AbstractMetaClass
_getConstructor, _getMethod, asBoxed, asClass, asUnboxed, equals, getAnnotation, getBestMatchingConstructor, getBestMatchingConstructor, getBestMatchingMethod, getBestMatchingMethod, getBestMatchingStaticMethod, getBestMatchingStaticMethod, getConstructor, getConstructor, getDeclaredConstructor, getDeclaredMethod, getDeclaredMethod, getEnclosedMetaObject, getErased, getFullyQualifiedNameWithTypeParms, getMethod, getMethod, getParameterizedType, hashCode, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isAssignableFrom, isAssignableTo, isAssignableTo, isAssignableTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildMetaClass

public BuildMetaClass(Context context)
Method Detail

getName

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

getFullyQualifiedName

public String getFullyQualifiedName()
Specified by:
getFullyQualifiedName in class MetaClass

getCanonicalName

public String getCanonicalName()
Specified by:
getCanonicalName in class MetaClass

getInternalName

public String getInternalName()
Overrides:
getInternalName in class AbstractMetaClass<Object>

getPackageName

public String getPackageName()
Specified by:
getPackageName in class MetaClass

getMethods

public MetaMethod[] getMethods()
Specified by:
getMethods in class MetaClass

getDeclaredMethods

public MetaMethod[] getDeclaredMethods()
Specified by:
getDeclaredMethods in class MetaClass

getFields

public MetaField[] getFields()
Specified by:
getFields in class MetaClass

getDeclaredFields

public MetaField[] getDeclaredFields()
Specified by:
getDeclaredFields in class MetaClass

getField

public MetaField getField(String name)
Specified by:
getField in class MetaClass

getDeclaredField

public MetaField getDeclaredField(String name)
Specified by:
getDeclaredField in class MetaClass

getConstructors

public MetaConstructor[] getConstructors()
Specified by:
getConstructors in class MetaClass

getDeclaredConstructors

public MetaConstructor[] getDeclaredConstructors()
Specified by:
getDeclaredConstructors in class MetaClass

getInterfaces

public MetaClass[] getInterfaces()
Specified by:
getInterfaces in class MetaClass

getSuperClass

public MetaClass getSuperClass()
Specified by:
getSuperClass in class MetaClass

getComponentType

public MetaClass getComponentType()
Specified by:
getComponentType in class MetaClass

isPrimitive

public boolean isPrimitive()
Specified by:
isPrimitive in class MetaClass

isVoid

public boolean isVoid()
Specified by:
isVoid in class MetaClass

isInterface

public boolean isInterface()
Specified by:
isInterface in class MetaClass

isAbstract

public boolean isAbstract()
Specified by:
isAbstract in class MetaClass

isArray

public boolean isArray()
Specified by:
isArray in class MetaClass

isEnum

public boolean isEnum()
Specified by:
isEnum in class MetaClass

isAnnotation

public boolean isAnnotation()
Specified by:
isAnnotation in class MetaClass

isPublic

public boolean isPublic()
Specified by:
isPublic in class MetaClass

isPrivate

public boolean isPrivate()
Specified by:
isPrivate in class MetaClass

isProtected

public boolean isProtected()
Specified by:
isProtected in class MetaClass

isFinal

public boolean isFinal()
Specified by:
isFinal in class MetaClass

isStatic

public boolean isStatic()
Specified by:
isStatic in class MetaClass

getAnnotations

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

getTypeParameters

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

setClassName

public void setClassName(String className)

setSuperClass

public void setSuperClass(MetaClass superClass)

setInterfaces

public void setInterfaces(List<MetaClass> interfaces)

setInterface

public void setInterface(boolean anInterface)

setAbstract

public void setAbstract(boolean anAbstract)

setFinal

public void setFinal(boolean aFinal)

setStatic

public void setStatic(boolean aStatic)

setScope

public void setScope(Scope scope)

setContext

public void setContext(Context context)

getContext

public Context getContext()

addInterface

public void addInterface(MetaClass interfaceClass)

addConstructor

public void addConstructor(BuildMetaConstructor constructor)

addMethod

public void addMethod(BuildMetaMethod method)

addField

public void addField(BuildMetaField field)

addTypeVariable

public void addTypeVariable(MetaTypeVariable typeVariable)

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


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