org.eclipse.jdt.internal.core
Class MemberValuePair
java.lang.Object
org.eclipse.jdt.internal.core.MemberValuePair
- All Implemented Interfaces:
- IMemberValuePair
public class MemberValuePair
- extends java.lang.Object
- implements IMemberValuePair
| Fields inherited from interface org.eclipse.jdt.core.IMemberValuePair |
K_ANNOTATION, K_BOOLEAN, K_BYTE, K_CHAR, K_CLASS, K_DOUBLE, K_FLOAT, K_INT, K_LONG, K_QUALIFIED_NAME, K_SHORT, K_SIMPLE_NAME, K_STRING, K_UNKNOWN |
|
Method Summary |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getMemberName()
Returns the member's name of this member-value pair. |
java.lang.Object |
getValue()
Returns the value of this member-value pair. |
int |
getValueKind()
Returns the value kind of this member-value pair. |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
public java.lang.Object value
valueKind
public int valueKind
MemberValuePair
public MemberValuePair(java.lang.String memberName)
MemberValuePair
public MemberValuePair(java.lang.String memberName,
java.lang.Object value,
int valueKind)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
getMemberName
public java.lang.String getMemberName()
- Description copied from interface:
IMemberValuePair
- Returns the member's name of this member-value pair.
- Specified by:
getMemberName in interface IMemberValuePair
- Returns:
- the member's name of this member-value pair.
getValue
public java.lang.Object getValue()
- Description copied from interface:
IMemberValuePair
- Returns the value of this member-value pair. The type of this value
is function of this member-value pair's
value kind. It is an
instance of Object[] if the value is an array.
If the value kind is IMemberValuePair.K_UNKNOWN and the value is not an array, then the
value is null.
If the value kind is IMemberValuePair.K_UNKNOWN and the value is an array, then the
value is an array containing Objects and/or nulls for
unknown elements.
See IMemberValuePair.K_UNKNOWN for more details.
- Specified by:
getValue in interface IMemberValuePair
- Returns:
- the value of this member-value pair.
getValueKind
public int getValueKind()
- Description copied from interface:
IMemberValuePair
- Returns the value kind of this member-value pair. This indicates the instance of
the returned
value, or the instance of the elements if the value
is an array. The value kind is one of the following constants:
IMemberValuePair.K_ANNOTATION, IMemberValuePair.K_BOOLEAN, IMemberValuePair.K_BYTE, IMemberValuePair.K_CHAR,
IMemberValuePair.K_CLASS, IMemberValuePair.K_DOUBLE, IMemberValuePair.K_FLOAT, IMemberValuePair.K_INT, IMemberValuePair.K_LONG,
IMemberValuePair.K_QUALIFIED_NAME, IMemberValuePair.K_SIMPLE_NAME, IMemberValuePair.K_SHORT, IMemberValuePair.K_STRING,
IMemberValuePair.K_UNKNOWN.
- Specified by:
getValueKind in interface IMemberValuePair
- Returns:
- the value kind of this member-value pair