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.String
name
protected ImmutableEncodedValue
value
-
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.String
getName()
Gets the name of the element.EncodedValue
getValue()
Gets the value of the element.static com.google.common.collect.ImmutableSet<ImmutableAnnotationElement>
immutableSetOf(java.lang.Iterable<? extends AnnotationElement> list)
static ImmutableAnnotationElement
of(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:AnnotationElement
Gets the name of the element.- Returns:
- The name of the element.
-
getValue
@Nonnull public EncodedValue getValue()
Description copied from interface:AnnotationElement
Gets 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)
-
-