org.glassfish.pfl.dynamic.codegen.impl
Class MemberInfoBase

java.lang.Object
  extended by org.glassfish.pfl.dynamic.codegen.impl.MemberInfoBase
All Implemented Interfaces:
MemberInfo
Direct Known Subclasses:
FieldInfoImpl, MethodInfoBase

public class MemberInfoBase
extends Object
implements MemberInfo


Constructor Summary
MemberInfoBase(ClassInfo myClassInfo, int modifiers, String name)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 boolean isAccessibleInContext(ClassInfo definingClass, ClassInfo accessClass)
          Returns true iff this member is accessible in the context defined by definingClass (the class containing the reference to the member) and accessClass (the type of the expression used to access this member).
 int modifiers()
          Return the modifiers on this member
 ClassInfo myClassInfo()
          Return the ClassInfo of the class that contains this member.
 String name()
          Return the name of this member.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MemberInfoBase

public MemberInfoBase(ClassInfo myClassInfo,
                      int modifiers,
                      String name)
Method Detail

myClassInfo

public ClassInfo myClassInfo()
Description copied from interface: MemberInfo
Return the ClassInfo of the class that contains this member.

Specified by:
myClassInfo in interface MemberInfo

modifiers

public int modifiers()
Description copied from interface: MemberInfo
Return the modifiers on this member

Specified by:
modifiers in interface MemberInfo

name

public String name()
Description copied from interface: MemberInfo
Return the name of this member.

Specified by:
name in interface MemberInfo

isAccessibleInContext

public boolean isAccessibleInContext(ClassInfo definingClass,
                                     ClassInfo accessClass)
Description copied from interface: MemberInfo
Returns true iff this member is accessible in the context defined by definingClass (the class containing the reference to the member) and accessClass (the type of the expression used to access this member). This works as follows:

Specified by:
isAccessibleInContext in interface MemberInfo
Parameters:
definingClass - the ClassInfo of the class in which the access occurs.
accessClass - the ClassInfo of the class used to access the member.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Oracle. All Rights Reserved.