com.fasterxml.classmate.members
Class ResolvedMember

java.lang.Object
  extended by com.fasterxml.classmate.members.ResolvedMember
Direct Known Subclasses:
ResolvedConstructor, ResolvedField, ResolvedMethod

public abstract class ResolvedMember
extends Object

Fully type-resolved equivalent of RawMember. Only members "that matter" (ones not overridden, or filtered out) are resolved, since resolution process can add non-trivial overhead.


Field Summary
protected  Annotations _annotations
           
protected  ResolvedType _declaringType
          ResolvedType (class with generic type parameters) that declared this member
 
Constructor Summary
protected ResolvedMember(ResolvedType context, Annotations ann)
           
 
Method Summary
 void applyDefault(Annotation override)
           
 void applyOverride(Annotation override)
           
 void applyOverrides(Annotations overrides)
           
<A extends Annotation>
A
get(Class<A> cls)
           
 ResolvedType getDeclaringType()
           
protected  int getModifiers()
           
 String getName()
           
abstract  Member getRawMember()
          Returns JDK object that represents member.
abstract  ResolvedType getType()
          Returns type of this member; if it has one, for methods this is the return type, for fields field type, and for constructors null.
 boolean isFinal()
           
 boolean isPrivate()
           
 boolean isProtected()
           
 boolean isPublic()
           
 boolean isStatic()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_declaringType

protected final ResolvedType _declaringType
ResolvedType (class with generic type parameters) that declared this member


_annotations

protected final Annotations _annotations
Constructor Detail

ResolvedMember

protected ResolvedMember(ResolvedType context,
                         Annotations ann)
Method Detail

applyOverride

public void applyOverride(Annotation override)

applyOverrides

public void applyOverrides(Annotations overrides)

applyDefault

public void applyDefault(Annotation override)

get

public <A extends Annotation> A get(Class<A> cls)

getDeclaringType

public final ResolvedType getDeclaringType()

getType

public abstract ResolvedType getType()
Returns type of this member; if it has one, for methods this is the return type, for fields field type, and for constructors null.


getRawMember

public abstract Member getRawMember()
Returns JDK object that represents member.


getName

public String getName()

isStatic

public boolean isStatic()

isFinal

public boolean isFinal()

isPrivate

public boolean isPrivate()

isProtected

public boolean isProtected()

isPublic

public boolean isPublic()

toString

public String toString()
Overrides:
toString in class Object

getModifiers

protected final int getModifiers()


Copyright © 2012 fasterxml.com. All Rights Reserved.