Home
last modified time | relevance | path

Searched refs:ElementValue (Results 1 – 25 of 54) sorted by relevance

123

/external/proguard/src/proguard/classfile/editor/
DElementValuesEditor.java75 public void addElementValue(ElementValue elementValue) in addElementValue()
147 ElementValue[] elementValues, in replaceElementValue()
148 ElementValue elementValue) in replaceElementValue()
169 private ElementValue[] addElementValue(int elementValuesCount, in addElementValue()
170 ElementValue[] elementValues, in addElementValue()
171 ElementValue elementValue) in addElementValue()
177 ElementValue[] newElementValues = new ElementValue[elementValuesCount + 1]; in addElementValue()
196 ElementValue[] elementValues, in deleteElementValue()
225 ElementValue[] elementValues, in findElementValue()
DAnnotationAdder.java39 private static final ElementValue[] EMPTY_ELEMENT_VALUES = new ElementValue[0];
106 new ElementValue[annotation.u2elementValuesCount] : in visitAnnotation()
138 new ElementValue[annotation.u2elementValuesCount] : in visitAnnotation()
DElementValueAdder.java36 private static final ElementValue[] EMPTY_ELEMENT_VALUES = new ElementValue[0];
184 new ElementValue[arrayElementValue.u2elementValuesCount] : in visitArrayElementValue()
203 private void addElementValue(ElementValue newElementValue) in addElementValue()
/external/turbine/java/com/google/turbine/bytecode/
DClassFile.java22 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue;
236 private final AnnotationInfo.@Nullable ElementValue defaultValue;
248 @Nullable ElementValue defaultValue, in MethodInfo()
292 public AnnotationInfo.@Nullable ElementValue defaultValue() { in defaultValue()
343 private final Map<String, ElementValue> elementValuePairs;
346 String typeName, boolean runtimeVisible, Map<String, ElementValue> elementValuePairs) { in AnnotationInfo()
363 public Map<String, ElementValue> elementValuePairs() { in elementValuePairs()
368 public interface ElementValue { interface in ClassFile.AnnotationInfo
371 ElementValue.Kind kind(); in kind()
383 class EnumConstValue implements ElementValue {
[all …]
DAnnotationWriter.java22 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue;
23 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ArrayValue;
24 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstTurbineAnnotationValu…
25 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstTurbineClassValue;
26 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstValue;
27 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.EnumConstValue;
53 for (Entry<String, ElementValue> entry : annotation.elementValuePairs().entrySet()) { in writeAnnotation()
59 void writeElementValue(ElementValue value) { in writeElementValue()
132 for (ElementValue elementValue : value.elements()) { in writeArrayElementValue()
DClassReader.java24 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue;
25 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstTurbineAnnotationValu…
26 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstTurbineClassValue;
27 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstValue;
28 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.EnumConstValue;
313 ImmutableMap.Builder<String, ElementValue> values = ImmutableMap.builder(); in readAnnotation()
317 ElementValue value = readElementValue(constantPool); in readAnnotation()
328 private ElementValue readElementValue(ConstantPoolReader constantPool) { in readElementValue()
368 ImmutableList.Builder<ElementValue> elements = ImmutableList.builder(); in readElementValue()
372 return new ElementValue.ArrayValue(elements.build()); in readElementValue()
[all …]
DAttribute.java164 private final AnnotationInfo.ElementValue value;
166 public AnnotationDefault(AnnotationInfo.ElementValue value) { in AnnotationDefault()
175 public AnnotationInfo.ElementValue value() { in value()
/external/apache-commons-bcel/src/main/java/org/apache/bcel/generic/
DArrayElementValueGen.java26 import org.apache.bcel.classfile.ElementValue;
43 public ArrayElementValueGen(final int type, final ElementValue[] datums, in ArrayElementValueGen()
52 for (final ElementValue datum : datums) { in ArrayElementValueGen()
61 public ElementValue getElementValue() in getElementValue()
63 final ElementValue[] immutableData = new ElementValue[evalues.size()]; in getElementValue()
82 final ElementValue[] in = value.getElementValuesArray(); in ArrayElementValueGen()
83 for (final ElementValue element : in) { in ArrayElementValueGen()
DElementValueGen.java28 import org.apache.bcel.classfile.ElementValue;
58 public abstract ElementValue getElementValue(); in getElementValue()
141 final ElementValue[] evalues = new ElementValue[numArrayVals]; in readElementValue()
144 evalues[j] = ElementValue.readElementValue(dis, cpGen in readElementValue()
162 public static ElementValueGen copy(final ElementValue value, in copy()
DAnnotationElementValueGen.java24 import org.apache.bcel.classfile.ElementValue;
75 public ElementValue getElementValue() in getElementValue()
DClassElementValueGen.java25 import org.apache.bcel.classfile.ElementValue;
54 public ElementValue getElementValue() in getElementValue()
DElementValuePairGen.java24 import org.apache.bcel.classfile.ElementValue;
66 final ElementValue immutableValue = value.getElementValue(); in getElementNameValuePair()
DEnumElementValueGen.java24 import org.apache.bcel.classfile.ElementValue;
58 public ElementValue getElementValue() in getElementValue()
/external/apache-commons-bcel/src/main/java/org/apache/bcel/classfile/
DAnnotationDefault.java34 private ElementValue default_value;
43 this(name_index, length, (ElementValue) null, constant_pool); in AnnotationDefault()
44 default_value = ElementValue.readElementValue(input, constant_pool); in AnnotationDefault()
53 …public AnnotationDefault(final int name_index, final int length, final ElementValue defaultValue, … in AnnotationDefault()
73 public final void setDefaultValue(final ElementValue defaultValue) { in setDefaultValue()
80 public final ElementValue getDefaultValue() { in getDefaultValue()
DElementValue.java28 public abstract class ElementValue class
48 protected ElementValue(final int type, final ConstantPool cpool) in ElementValue() method in ElementValue
77 …public static ElementValue readElementValue(final DataInput input, final ConstantPool cpool) throw… in readElementValue()
105 final ElementValue[] evalues = new ElementValue[numArrayVals]; in readElementValue()
108 evalues[j] = ElementValue.readElementValue(input, cpool); in readElementValue()
DArrayElementValue.java26 public class ArrayElementValue extends ElementValue
29 private final ElementValue[] evalues;
47 public ArrayElementValue(final int type, final ElementValue[] datums, final ConstantPool cpool) in ArrayElementValue()
62 for (final ElementValue evalue : evalues) { in dump()
83 public ElementValue[] getElementValuesArray() in getElementValuesArray()
DElementValuePair.java33 private final ElementValue elementValue;
39 public ElementValuePair(final int elementNameIndex, final ElementValue elementValue, in ElementValuePair()
54 public final ElementValue getValue() in getValue()
/external/turbine/java/com/google/turbine/binder/bytecode/
DBytecodeBinder.java30 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue;
31 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ArrayValue;
32 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstTurbineClassValue;
33 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstValue;
34 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.EnumConstValue;
110 public static Const bindValue(ElementValue value) { in bindValue()
126 return bindAnnotationValue(((ElementValue.ConstTurbineAnnotationValue) value).annotation()); in bindValue()
134 for (Map.Entry<String, ElementValue> e : value.elementValuePairs().entrySet()) { in bindAnnotationValue()
163 for (ElementValue element : value.elements()) { in bindArrayValue()
DBytecodeBoundClass.java39 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue;
40 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ArrayValue;
41 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstTurbineClassValue;
42 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.EnumConstValue;
43 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.Kind;
512 ElementValue val = annotation.elementValuePairs().get("value"); in bindRetention()
525 ElementValue val = annotation.elementValuePairs().get("value"); in bindTarget()
528 for (ElementValue element : ((ArrayValue) val).elements()) { in bindTarget()
551 ElementValue val = annotation.elementValuePairs().get("value"); in bindRepeatable()
/external/proguard/src/proguard/classfile/attribute/annotation/
DArrayElementValue.java31 public class ArrayElementValue extends ElementValue
34 public ElementValue[] elementValues;
50 ElementValue[] elementValues) in ArrayElementValue()
DElementValue.java34 public abstract class ElementValue implements VisitorAccepter class
65 protected ElementValue() in ElementValue() method in ElementValue
73 protected ElementValue(int u2elementNameIndex) in ElementValue() method in ElementValue
DAnnotationDefaultAttribute.java35 public ElementValue defaultValue;
50 ElementValue defaultValue) in AnnotationDefaultAttribute()
DAnnotation.java36 public ElementValue[] elementValues;
66 ElementValue[] elementValues) in Annotation()
/external/apache-commons-bcel/src/test/java/org/apache/bcel/
DAnnotationDefaultAttributeTestCase.java22 import org.apache.bcel.classfile.ElementValue;
42 .getElementValueType() == ElementValue.STRING); in testMethodAnnotations()
/external/turbine/java/com/google/turbine/lower/
DLower.java50 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue;
302 ElementValue defaultValue = m.defaultValue() != null ? annotationValue(m.defaultValue()) : null; in lowerMethod()
531 private ImmutableMap<String, ElementValue> annotationValues(ImmutableMap<String, Const> values) { in annotationValues()
532 ImmutableMap.Builder<String, ElementValue> result = ImmutableMap.builder(); in annotationValues()
539 private ElementValue annotationValue(Const value) { in annotationValue()
544 return new ElementValue.ConstTurbineClassValue( in annotationValue()
550 return new ElementValue.EnumConstValue( in annotationValue()
556 List<ElementValue> values = new ArrayList<>(); in annotationValue()
560 return new ElementValue.ArrayValue(values); in annotationValue()
569 return new ElementValue.ConstTurbineAnnotationValue( in annotationValue()
[all …]

123