|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.inject.rebind.reflect.MemberLiteral<T,M>
public abstract class MemberLiteral<T,M extends java.lang.reflect.Member & java.lang.reflect.AnnotatedElement>
Generic member representation preserving the member's type parameters.
TypeLiteral
Constructor Summary | |
---|---|
protected |
MemberLiteral(M member,
TypeLiteral<T> declaringType)
|
Method Summary | ||
---|---|---|
|
getAnnotation(java.lang.Class<T> type)
Returns this member's annotation of the passed type or null if no
matching annotation is present. |
|
java.lang.annotation.Annotation[] |
getAnnotations()
Returns this member's annotations. |
|
java.lang.annotation.Annotation |
getBindingAnnotation()
Returns this member's binding annotation or null if no such
annotation is present. |
|
protected java.lang.annotation.Annotation |
getBindingAnnotation(java.lang.annotation.Annotation[] annotations)
|
|
TypeLiteral<T> |
getDeclaringType()
Returns the type declaring this member. |
|
protected M |
getMember()
|
|
int |
getModifiers()
Returns this member's modifiers. |
|
java.lang.String |
getName()
Returns this member's name. |
|
java.lang.Class<?> |
getRawDeclaringType()
Returns this member's raw (i.e. |
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> type)
Returns true if an annotation of the passed type is present on
this member. |
|
boolean |
isDefaultAccess()
Returns true if this member is declared as default access. |
|
boolean |
isPrivate()
Returns true if this member is declared private. |
|
boolean |
isPublic()
Returns true if this member is declared public. |
|
boolean |
isStatic()
Returns true if this member is declared static. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected MemberLiteral(M member, TypeLiteral<T> declaringType)
Method Detail |
---|
public TypeLiteral<T> getDeclaringType()
public java.lang.String getName()
public java.lang.Class<?> getRawDeclaringType()
public int getModifiers()
public java.lang.annotation.Annotation[] getAnnotations()
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> type)
null
if no
matching annotation is present.
type
- annotation type
null
if no matching annotation
existspublic boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> type)
true
if an annotation of the passed type is present on
this member.
type
- annotation type to check for
true
if the annotation is presentpublic java.lang.annotation.Annotation getBindingAnnotation()
null
if no such
annotation is present.
null
public boolean isDefaultAccess()
true
if this member is declared as default access.
true
if default accesspublic boolean isPublic()
true
if this member is declared public.
true
if publicpublic boolean isPrivate()
true
if this member is declared private.
true
if privatepublic boolean isStatic()
true
if this member is declared static.
true
if staticprotected java.lang.annotation.Annotation getBindingAnnotation(java.lang.annotation.Annotation[] annotations)
protected M getMember()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |