Errai 3.0.1-SNAPSHOT

org.jboss.errai.codegen.meta.impl.gwt
Class GWTConstructor

java.lang.Object
  extended by org.jboss.errai.codegen.meta.MetaMethod
      extended by org.jboss.errai.codegen.meta.MetaConstructor
          extended by org.jboss.errai.codegen.meta.impl.gwt.GWTConstructor
All Implemented Interfaces:
HasAnnotations, MetaClassMember, MetaGenericDeclaration

public class GWTConstructor
extends MetaConstructor

Author:
Mike Brock

Constructor Summary
GWTConstructor(com.google.gwt.core.ext.typeinfo.TypeOracle oracle, com.google.gwt.core.ext.typeinfo.JConstructor c)
           
 
Method Summary
 boolean equals(Object o)
           
 Annotation[] getAnnotations()
           
 MetaClass[] getCheckedExceptions()
           
 MetaClass getDeclaringClass()
           
 MetaType[] getGenericParameterTypes()
           
 MetaType getGenericReturnType()
          Returns the MetaType representing the return type of the method.
 String getName()
           
 MetaParameter[] getParameters()
           
 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 isStatic()
           
 boolean isSynchronized()
           
 boolean isSynthetic()
           
 boolean isTransient()
           
 boolean isVarArgs()
           
 boolean isVolatile()
           
 
Methods inherited from class org.jboss.errai.codegen.meta.MetaConstructor
asConstructor
 
Methods inherited from class org.jboss.errai.codegen.meta.MetaMethod
asMethod, getAnnotation, getParametersAnnotatedWith, hashCode, hashString, isAnnotationPresent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.errai.codegen.meta.HasAnnotations
getAnnotation, isAnnotationPresent
 

Constructor Detail

GWTConstructor

public GWTConstructor(com.google.gwt.core.ext.typeinfo.TypeOracle oracle,
                      com.google.gwt.core.ext.typeinfo.JConstructor c)
Method Detail

getParameters

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

getName

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

getReturnType

public MetaClass getReturnType()
Description copied from class: MetaMethod
Returns the MetaClass representing this method's return type. The returned MetaClass may have had its generic information erased.

Specified by:
getReturnType in class MetaMethod
Returns:

getGenericReturnType

public MetaType getGenericReturnType()
Description copied from class: MetaMethod
Returns the MetaType representing the return type of the method. In the case of a plain, non-parameterized return type, this will return a 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.

Specified by:
getGenericReturnType in class MetaMethod
Returns:

getDeclaringClass

public MetaClass getDeclaringClass()

getAnnotations

public Annotation[] getAnnotations()

getGenericParameterTypes

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

getCheckedExceptions

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

isVarArgs

public boolean isVarArgs()
Specified by:
isVarArgs in class MetaConstructor

isAbstract

public boolean isAbstract()

isPublic

public boolean isPublic()

isPrivate

public boolean isPrivate()

isProtected

public boolean isProtected()

isFinal

public boolean isFinal()

isStatic

public boolean isStatic()

isTransient

public boolean isTransient()

isSynthetic

public boolean isSynthetic()

isVolatile

public boolean isVolatile()

isSynchronized

public boolean isSynchronized()

getTypeParameters

public MetaTypeVariable[] getTypeParameters()
Description copied from interface: MetaGenericDeclaration
Returns the array of type variables declared on this generic declaration site, in the order they were declared in the source code.

Returns:
the type variables declared at this site. The returned array is never null, but it will be empty if no type variable are declared at this site.

equals

public boolean equals(Object o)
Overrides:
equals in class MetaMethod

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.