|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ValueProperty>
com.jrockit.memleak.util.ValueProperty
public enum ValueProperty
An enum of properties in value objects that may be set if not set already.
| Enum Constant Summary | |
|---|---|
ARRAY_LENGTH
Length of array, for IArrayInfo. |
|
MODIFIERS
Access modifiers, typically for IMemberInfo and
IClassInfo. |
|
NUM_DECLARED_STATIC_FIELDS
The number of declared static fields, for a IClassInfo. |
|
NUM_INSTANCE_FIELDS
The number of instance fields, for a IClassInfo, including all
inherited instance fields from super classes. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getDefaultValue()
|
boolean |
isAcceptable(java.lang.Object existingValue,
java.lang.Object newValue)
Check if the given existingValue is the default value, and
the given newValue is a different value of the right type,
so that a change from the former to the latter would be acceptable. |
static ValueProperty |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ValueProperty[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ValueProperty MODIFIERS
IMemberInfo and
IClassInfo.
Modifierpublic static final ValueProperty ARRAY_LENGTH
IArrayInfo.
public static final ValueProperty NUM_DECLARED_STATIC_FIELDS
IClassInfo.
public static final ValueProperty NUM_INSTANCE_FIELDS
IClassInfo, including all
inherited instance fields from super classes.
| Method Detail |
|---|
public static ValueProperty[] values()
for (ValueProperty c : ValueProperty.values()) System.out.println(c);
public static ValueProperty valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
public boolean isAcceptable(java.lang.Object existingValue,
java.lang.Object newValue)
existingValue is the default value, and
the given newValue is a different value of the right type,
so that a change from the former to the latter would be acceptable.
existingValue - newValue -
existingValue to newValue.public java.lang.Object getDefaultValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||