com.jrockit.memleak.value
Class FieldInfo
java.lang.Object
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.
Constructor Summary |
FieldInfo(IClassInfo declaringClassInfo,
java.lang.String fieldName,
int modifiers)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
FieldInfo
public FieldInfo(IClassInfo declaringClassInfo,
java.lang.String fieldName,
int modifiers)
- Parameters:
declaringClassInfo
- fieldName
- modifiers
-
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.