com.jrockit.memleak.value
Class FieldInfo

java.lang.Object
  extended by com.jrockit.memleak.value.FieldInfo
All Implemented Interfaces:
IAccessibleInfo, IFieldInfo, IMemberInfo, IClassInfoHolder
Direct Known Subclasses:
StaticField

public class FieldInfo
extends java.lang.Object
implements IFieldInfo, IClassInfoHolder

Value class representing an instance field in a class.


Field Summary
 
Fields inherited from interface com.jrockit.memleak.IAccessibleInfo
SYNTHETIC, UNKNOWN_MODIFIERS
 
Constructor Summary
FieldInfo(IClassInfo declaringClassInfo, java.lang.String fieldName, int modifiers)
           
 
Method Summary
protected  boolean equals(FieldInfo that)
           
 boolean equals(java.lang.Object obj)
           
 IClassInfo getClassInfo()
           
 IClassInfo getDeclaringClassInfo()
           
 int getModifiers()
           
 java.lang.String getName()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldInfo

public FieldInfo(IClassInfo declaringClassInfo,
                 java.lang.String fieldName,
                 int modifiers)
Parameters:
declaringClassInfo -
fieldName -
modifiers -
Method Detail

getDeclaringClassInfo

public IClassInfo getDeclaringClassInfo()
Specified by:
getDeclaringClassInfo in interface IMemberInfo
Returns:
the IClassInfo of the member's declaring class.

getName

public java.lang.String getName()
Specified by:
getName in interface IMemberInfo
Returns:
the name of the member

getModifiers

public int getModifiers()
Specified by:
getModifiers in interface IAccessibleInfo
Returns:
access modifiers for the entity
See Also:
Modifier

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

equals

protected boolean equals(FieldInfo that)
Parameters:
that - another FieldInfo
Returns:
true if the given FieldInfo is equal to this one.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getClassInfo

public IClassInfo getClassInfo()
Specified by:
getClassInfo in interface IClassInfoHolder
Returns:
a IClassInfo, never null.


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.