Class ElementValuePair
- java.lang.Object
-
- com.tonic.parser.attribute.annotation.ElementValuePair
-
public class ElementValuePair extends Object
An annotation element-value pair: the element name and its value.
-
-
Constructor Summary
Constructors Constructor Description ElementValuePair(int nameIndex, String elementName, ElementValue value)Creates an element-value pair.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetElementName()intgetNameIndex()ElementValuegetValue()StringtoString()
-
-
-
Constructor Detail
-
ElementValuePair
public ElementValuePair(int nameIndex, String elementName, ElementValue value)Creates an element-value pair.- Parameters:
nameIndex- constant-pool index of the element name Utf8elementName- the resolved element namevalue- the element value
-
-
Method Detail
-
getNameIndex
public int getNameIndex()
- Returns:
- the name index
-
getElementName
public String getElementName()
- Returns:
- the element name
-
getValue
public ElementValue getValue()
- Returns:
- the value
-
-