Implemented annotation encoded values

git-svn-id: https://smali.googlecode.com/svn/trunk@165 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
JesusFreke@JesusFreke.com
2009-06-18 04:19:05 +00:00
parent 8c8cec655d
commit 1080561460
6 changed files with 123 additions and 5 deletions

View File

@ -56,4 +56,12 @@ public class AnnotationElement extends CompositeField<AnnotationElement>
public int compareTo(AnnotationElement annotationElement) {
return elementName.compareTo(annotationElement.elementName);
}
public StringIdItem getName() {
return elementName.getReference();
}
public EncodedValue getEncodedValue() {
return encodedValue;
}
}

View File

@ -80,4 +80,12 @@ public class AnnotationEncodedValueSubField extends CompositeField<AnnotationEnc
public ValueType getValueType() {
return ValueType.VALUE_ANNOTATION;
}
public TypeIdItem getAnnotationType() {
return annotationType.getReference();
}
public List<AnnotationElement> getAnnotationElements() {
return (List<AnnotationElement>)annotationElementList.clone();
}
}