Class MemberValuePair
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.MemberValuePair
- All Implemented Interfaces:
IMemberValuePair
-
Field Summary
FieldsFields inherited from interface 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_UNKNOWNModifier and TypeFieldDescriptionstatic final intConstant indicating that the value kind is an annotation represented by an instance ofIAnnotation.static final intConstant indicating that the value kind is abooleanrepresented by an instance ofBoolean.static final intConstant indicating that the value kind is abyterepresented by an instance ofByte.static final intConstant indicating that the value kind is acharrepresented by an instance ofCharacter.static final intConstant indicating that the value kind is aClassrepresented by the name of the class (i.e.static final intConstant indicating that the value kind is adoublerepresented by an instance ofDouble.static final intConstant indicating that the value kind is afloatrepresented by an instance ofFloat.static final intConstant indicating that the value kind is anintrepresented by an instance ofInteger.static final intConstant indicating that the value kind is alongrepresented by an instance ofLong.static final intConstant indicating that the value is a qualified name represented by aString.static final intConstant indicating that the value kind is ashortrepresented by an instance ofShort.static final intConstant indicating that the value is a simple name represented by aString.static final intstatic final intConstant indicating that the value kind is unknown at this stage. -
Constructor Summary
ConstructorsConstructorDescriptionMemberValuePair(String memberName) MemberValuePair(String memberName, Object value, int valueKind) -
Method Summary
-
Field Details
-
value
-
valueKind
public int valueKind
-
-
Constructor Details
-
MemberValuePair
-
MemberValuePair
-
-
Method Details
-
equals
-
getMemberName
Description copied from interface:IMemberValuePairReturns the member's name of this member-value pair.- Specified by:
getMemberNamein interfaceIMemberValuePair- Returns:
- the member's name of this member-value pair.
-
getValue
Description copied from interface:IMemberValuePairReturns the value of this member-value pair. The type of this value is function of this member-value pair'svalue kind. It is an instance ofObject[] if the value is an array.If the value kind is
IMemberValuePair.K_UNKNOWNand the value is not an array, then the value isnull. If the value kind isIMemberValuePair.K_UNKNOWNand the value is an array, then the value is an array containingObjects and/ornulls for unknown elements. SeeIMemberValuePair.K_UNKNOWNfor more details.- Specified by:
getValuein interfaceIMemberValuePair- Returns:
- the value of this member-value pair.
-
getValueKind
public int getValueKind()Description copied from interface:IMemberValuePairReturns the value kind of this member-value pair. This indicates the instance of the returnedvalue, 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:
getValueKindin interfaceIMemberValuePair- Returns:
- the value kind of this member-value pair
-
hashCode
-