Package org.jf.dexlib2.immutable.value
Class ImmutableAnnotationEncodedValue
java.lang.Object
org.jf.dexlib2.base.value.BaseAnnotationEncodedValue
org.jf.dexlib2.immutable.value.ImmutableAnnotationEncodedValue
- All Implemented Interfaces:
Comparable<EncodedValue>,BasicAnnotation,AnnotationEncodedValue,EncodedValue,ImmutableEncodedValue
public class ImmutableAnnotationEncodedValue
extends BaseAnnotationEncodedValue
implements ImmutableEncodedValue
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.google.common.collect.ImmutableSet<? extends ImmutableAnnotationElement> protected final String -
Constructor Summary
ConstructorsConstructorDescriptionImmutableAnnotationEncodedValue(String type, com.google.common.collect.ImmutableSet<? extends ImmutableAnnotationElement> elements) ImmutableAnnotationEncodedValue(String type, Collection<? extends AnnotationElement> elements) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableSet<? extends ImmutableAnnotationElement> Gets a set of the name/value elements associated with this annotation.getType()Gets the type of this annotation.of(AnnotationEncodedValue annotationEncodedValue) Methods inherited from class org.jf.dexlib2.base.value.BaseAnnotationEncodedValue
compareTo, equals, getValueType, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jf.dexlib2.iface.value.EncodedValue
getValueType
-
Field Details
-
type
-
elements
@Nonnull protected final com.google.common.collect.ImmutableSet<? extends ImmutableAnnotationElement> elements
-
-
Constructor Details
-
ImmutableAnnotationEncodedValue
public ImmutableAnnotationEncodedValue(@Nonnull String type, @Nullable Collection<? extends AnnotationElement> elements) -
ImmutableAnnotationEncodedValue
public ImmutableAnnotationEncodedValue(@Nonnull String type, @Nullable com.google.common.collect.ImmutableSet<? extends ImmutableAnnotationElement> elements)
-
-
Method Details
-
of
-
getType
Description copied from interface:AnnotationEncodedValueGets the type of this annotation. This will be the type descriptor of the class that defines this annotation.- Specified by:
getTypein interfaceAnnotationEncodedValue- Specified by:
getTypein interfaceBasicAnnotation- Returns:
- The type of this annotation
-
getElements
@Nonnull public com.google.common.collect.ImmutableSet<? extends ImmutableAnnotationElement> getElements()Description copied from interface:AnnotationEncodedValueGets a set of the name/value elements associated with this annotation. The elements in the returned set will be unique by name.- Specified by:
getElementsin interfaceAnnotationEncodedValue- Specified by:
getElementsin interfaceBasicAnnotation- Returns:
- A set of AnnotationElements
-