|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.ext.typeinfo.JParameter
public class JParameter
Represents a parameter in a declaration.
Constructor Summary | |
---|---|
JParameter(JAbstractMethod enclosingMethod,
JType type,
java.lang.String name)
|
|
JParameter(JAbstractMethod enclosingMethod,
JType type,
java.lang.String name,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> declaredAnnotations)
|
|
JParameter(JAbstractMethod enclosingMethod,
JType type,
java.lang.String name,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> declaredAnnotations,
boolean argNameIsReal)
|
Method Summary | ||
---|---|---|
void |
addMetaData(java.lang.String tagName,
java.lang.String[] values)
Deprecated. |
|
|
getAnnotation(java.lang.Class<T> annotationClass)
Returns an instance of the specified annotation type if it is present on this element or null if it is not. |
|
JAbstractMethod |
getEnclosingMethod()
|
|
java.lang.String[][] |
getMetaData(java.lang.String tagName)
Deprecated. |
|
java.lang.String[] |
getMetaDataTags()
Deprecated. |
|
java.lang.String |
getName()
|
|
JType |
getType()
|
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
Returns true if this item has an annotation of the specified
type. |
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JParameter(JAbstractMethod enclosingMethod, JType type, java.lang.String name)
public JParameter(JAbstractMethod enclosingMethod, JType type, java.lang.String name, java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> declaredAnnotations)
public JParameter(JAbstractMethod enclosingMethod, JType type, java.lang.String name, java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> declaredAnnotations, boolean argNameIsReal)
Method Detail |
---|
@Deprecated public final void addMetaData(java.lang.String tagName, java.lang.String[] values)
HasMetaData
addMetaData
in interface HasMetaData
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
HasAnnotations
null
if it is not.
getAnnotation
in interface HasAnnotations
annotationClass
- annotation type to search for
null
if it is notpublic JAbstractMethod getEnclosingMethod()
@Deprecated public final java.lang.String[][] getMetaData(java.lang.String tagName)
HasMetaData
getMetaData
in interface HasMetaData
@Deprecated public final java.lang.String[] getMetaDataTags()
HasMetaData
getMetaDataTags
in interface HasMetaData
public java.lang.String getName()
public JType getType()
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
HasAnnotations
true
if this item has an annotation of the specified
type.
isAnnotationPresent
in interface HasAnnotations
true
if this item has an annotation of the specified
typepublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |