com.google.gwt.core.ext.typeinfo
Class JConstructor
java.lang.Object
com.google.gwt.core.ext.typeinfo.JAbstractMethod
com.google.gwt.core.ext.typeinfo.JConstructor
- All Implemented Interfaces:
- HasAnnotations, HasMetaData, HasTypeParameters
public class JConstructor
- extends JAbstractMethod
Represents a constructor declaration.
Constructor Summary |
JConstructor(JClassType enclosingType,
java.lang.String name)
|
JConstructor(JClassType enclosingType,
java.lang.String name,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> declaredAnnotations,
JTypeParameter[] jtypeParameters)
|
Methods inherited from class com.google.gwt.core.ext.typeinfo.JAbstractMethod |
addMetaData, addModifierBits, addThrows, findParameter, getAnnotation, getMetaData, getMetaDataTags, getModifierBits, getName, getParameters, getThrows, getTypeParameters, isAnnotationMethod, isAnnotationPresent, isDefaultAccess, isPrivate, isProtected, isPublic, isVarArgs, setVarArgs, toStringParamsAndThrows, toStringTypeParams |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JConstructor
public JConstructor(JClassType enclosingType,
java.lang.String name)
JConstructor
public JConstructor(JClassType enclosingType,
java.lang.String name,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> declaredAnnotations,
JTypeParameter[] jtypeParameters)
getEnclosingType
public JClassType getEnclosingType()
- Description copied from class:
JAbstractMethod
- Gets the type in which this method or constructor was declared.
- Specified by:
getEnclosingType
in class JAbstractMethod
getJsniSignature
public java.lang.String getJsniSignature()
- Description copied from class:
JAbstractMethod
- Returns a string contating a JSNI reference to the method.
- Specified by:
getJsniSignature
in class JAbstractMethod
- Returns:
@package.Class::method(Lpackage/Param;...)
getReadableDeclaration
public java.lang.String getReadableDeclaration()
- Specified by:
getReadableDeclaration
in class JAbstractMethod
isConstructor
public JConstructor isConstructor()
- Specified by:
isConstructor
in class JAbstractMethod
isMethod
public JMethod isMethod()
- Specified by:
isMethod
in class JAbstractMethod
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object