Package org.jf.dexlib2.immutable
Class ImmutableAnnotationElement
- java.lang.Object
-
- org.jf.dexlib2.base.BaseAnnotationElement
-
- org.jf.dexlib2.immutable.ImmutableAnnotationElement
-
- All Implemented Interfaces:
java.lang.Comparable<AnnotationElement>,AnnotationElement
public class ImmutableAnnotationElement extends BaseAnnotationElement
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringnameprotected ImmutableEncodedValuevalue-
Fields inherited from class org.jf.dexlib2.base.BaseAnnotationElement
BY_NAME
-
-
Constructor Summary
Constructors Constructor Description ImmutableAnnotationElement(java.lang.String name, EncodedValue value)ImmutableAnnotationElement(java.lang.String name, ImmutableEncodedValue value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Gets the name of the element.EncodedValuegetValue()Gets the value of the element.static com.google.common.collect.ImmutableSet<ImmutableAnnotationElement>immutableSetOf(java.lang.Iterable<? extends AnnotationElement> list)static ImmutableAnnotationElementof(AnnotationElement annotationElement)-
Methods inherited from class org.jf.dexlib2.base.BaseAnnotationElement
compareTo, equals, hashCode
-
-
-
-
Field Detail
-
name
@Nonnull protected final java.lang.String name
-
value
@Nonnull protected final ImmutableEncodedValue value
-
-
Constructor Detail
-
ImmutableAnnotationElement
public ImmutableAnnotationElement(@Nonnull java.lang.String name, @Nonnull EncodedValue value)
-
ImmutableAnnotationElement
public ImmutableAnnotationElement(@Nonnull java.lang.String name, @Nonnull ImmutableEncodedValue value)
-
-
Method Detail
-
of
public static ImmutableAnnotationElement of(AnnotationElement annotationElement)
-
getName
@Nonnull public java.lang.String getName()
Description copied from interface:AnnotationElementGets the name of the element.- Returns:
- The name of the element.
-
getValue
@Nonnull public EncodedValue getValue()
Description copied from interface:AnnotationElementGets the value of the element.- Returns:
- The value of the element
-
immutableSetOf
@Nonnull public static com.google.common.collect.ImmutableSet<ImmutableAnnotationElement> immutableSetOf(@Nullable java.lang.Iterable<? extends AnnotationElement> list)
-
-