HomeSort by relevance Sort by last modified time
    Searched refs:Constant (Results 1 - 25 of 150) sorted by null

1 2 3 4 5 6

  /dalvik/dx/src/com/android/dx/rop/cst/
ConstantPool.java 20 * Interface for constant pools, which are, more or less, just lists of
21 * {@link Constant} objects.
25 * Get the "size" of the constant pool. This corresponds to the
27 * always at least one more than the actual size of the constant pool,
35 * Get the {@code n}th entry in the constant pool, which must
38 * @param n {@code n >= 0, n < size();} the constant pool index
43 public Constant get(int n);
46 * Get the {@code n}th entry in the constant pool, which must
50 * @param n {@code n >= 0, n < size();} the constant pool index
55 public Constant get0Ok(int n)
    [all...]
Constant.java 24 public abstract class Constant
25 implements ToHuman, Comparable<Constant> {
27 * Returns {@code true} if this instance is a category-2 constant,
28 * meaning it takes up two slots in the constant pool, or
36 * Returns the human name for the particular type of constant
48 public final int compareTo(Constant other) {
67 protected abstract int compareTo0(Constant other);
StdConstantPool.java 25 * an array of {@link Constant} objects and can be made immutable.
30 private final Constant[] entries;
37 * always at least one more than the actual size of the constant pool,
47 entries = new Constant[size];
56 public Constant getOrNull(int n) {
66 public Constant get0Ok(int n) {
75 public Constant get(int n) {
77 Constant result = entries[n];
94 * @param cst {@code null-ok;} the constant to store
96 public void set(int n, Constant cst)
    [all...]
CstArray.java 23 * Constant type to represent a fixed array of other constants. The contents
26 public final class CstArray extends Constant {
63 protected int compareTo0(Constant other) {
100 * List of {@link Constant} instances.
121 Constant thisItem = (Constant) get0(i);
122 Constant otherItem = (Constant) other.get0(i);
146 public Constant get(int n) {
147 return (Constant) get0(n)
    [all...]
TypedConstant.java 25 extends Constant implements TypeBearer {
CstAnnotation.java 22 * Constant type that represents an annotation.
24 public final class CstAnnotation extends Constant {
61 protected int compareTo0(Constant other) {
  /dalvik/dx/src/com/android/dx/cf/attrib/
AttAnnotationDefault.java 19 import com.android.dx.rop.cst.Constant;
29 private final Constant value;
42 public AttAnnotationDefault(Constant value, int byteLength) {
64 public Constant getValue() {
  /dalvik/dx/src/com/android/dx/rop/code/
CstInsn.java 19 import com.android.dx.rop.cst.Constant;
22 * Instruction which contains an explicit reference to a constant.
26 /** {@code non-null;} the constant */
27 private final Constant cst;
36 * @param cst {@code non-null;} constant
39 RegisterSpecList sources, Constant cst) {
56 * Gets the constant.
58 * @return {@code non-null;} the constant
60 public Constant getConstant() {
FillArrayDataInsn.java 19 import com.android.dx.rop.cst.Constant;
28 * constant values.
34 private final ArrayList<Constant> initValues;
40 private final Constant arrayType;
53 ArrayList<Constant> initValues,
54 Constant cst) {
76 public ArrayList<Constant> getInitValues() {
84 public Constant getConstant() {
PlainInsn.java 23 import com.android.dx.rop.cst.Constant;
112 Constant cst = (Constant) lastType;
119 getResult(), newSources, (Constant)lastType);
  /external/proguard/src/proguard/classfile/editor/
ConstantPoolSorter.java 24 import proguard.classfile.constant.Constant;
31 * This ClassVisitor sorts the constant pool entries of the program classes
32 * that it visits. The sorting order is based on the types of the constant pool
43 private Constant[] newConstantPool = new Constant[ClassConstants.TYPICAL_CONSTANT_POOL_SIZE];
54 // Sort the constant pool and set up an index map.
59 newConstantPool = new Constant[constantPoolCount];
66 Constant constant = programClass.constantPool[oldIndex] local
92 Constant constant = comparableConstant.getConstant(); local
    [all...]
ConstantPoolEditor.java 24 import proguard.classfile.constant.*;
27 * This class can add constant pool entries to a given class.
49 * Finds or creates a IntegerConstant constant pool entry with the given
51 * @return the constant pool index of the Utf8Constant.
56 Constant[] constantPool = targetClass.constantPool;
61 Constant constant = constantPool[index]; local
63 if (constant != null &&
64 constant.getTag() == ClassConstants.CONSTANT_Integer)
66 IntegerConstant integerConstant = (IntegerConstant)constant;
90 Constant constant = constantPool[index]; local
120 Constant constant = constantPool[index]; local
150 Constant constant = constantPool[index]; local
182 Constant constant = constantPool[index]; local
287 Constant constant = constantPool[index]; local
394 Constant constant = constantPool[index]; local
501 Constant constant = constantPool[index]; local
546 Constant constant = constantPool[index]; local
579 Constant constant = constantPool[index]; local
610 Constant constant = constantPool[index]; local
    [all...]
  /dalvik/dx/src/com/android/dx/dex/file/
HeaderSection.java 19 import com.android.dx.rop.cst.Constant;
48 public IndexedItem get(Constant cst) {
  /dalvik/dx/src/com/android/dx/dex/code/
CstInsn.java 21 import com.android.dx.rop.cst.Constant;
24 * Instruction which has a single constant argument in addition
28 /** {@code non-null;} the constant argument for this instruction */
29 private final Constant constant; field in class:CstInsn
32 * {@code >= -1;} the constant pool index for {@link #constant}, or
38 * {@code >= -1;} the constant pool index for the class reference in
39 * {@link #constant} if any, or {@code -1} if not yet set
45 * initially unknown ({@code -1}) as is the constant pool index
    [all...]
ArrayData.java 38 private final ArrayList<Constant> values;
40 /** non-null: type of constant that initializes the array */
41 private final Constant arrayType;
59 ArrayList<Constant> values,
60 Constant arrayType) {
92 throw new IllegalArgumentException("Unexpected constant type");
121 Constant cst = values.get(i);
128 Constant cst = values.get(i);
135 Constant cst = values.get(i);
142 Constant cst = values.get(i)
    [all...]
  /dalvik/dx/src/com/android/dx/rop/annotation/
NameValuePair.java 19 import com.android.dx.rop.cst.Constant;
31 private final Constant value;
39 public NameValuePair(CstUtf8 name, Constant value) {
109 public Constant getValue() {
  /external/proguard/src/proguard/classfile/constant/
Constant.java 21 package proguard.classfile.constant;
24 import proguard.classfile.constant.visitor.ConstantVisitor;
32 public abstract class Constant implements VisitorAccepter
46 * Returns the constant pool info tag that specifies the entry type.
DoubleConstant.java 21 package proguard.classfile.constant;
24 import proguard.classfile.constant.visitor.ConstantVisitor;
27 * This Constant represents a double constant in the constant pool.
31 public class DoubleConstant extends Constant
71 // Implementations for Constant.
FloatConstant.java 21 package proguard.classfile.constant;
24 import proguard.classfile.constant.visitor.ConstantVisitor;
27 * This Constant represents a float constant in the constant pool.
31 public class FloatConstant extends Constant
71 // Implementations for Constant.
IntegerConstant.java 21 package proguard.classfile.constant;
24 import proguard.classfile.constant.visitor.ConstantVisitor;
27 * This Constant represents a integer constant in the constant pool.
31 public class IntegerConstant extends Constant
71 // Implementations for Constant.
LongConstant.java 21 package proguard.classfile.constant;
24 import proguard.classfile.constant.visitor.ConstantVisitor;
27 * This Constant represents a long constant in the constant pool.
31 public class LongConstant extends Constant
71 // Implementations for Constant.
  /external/proguard/src/proguard/optimize/peephole/
InstructionSequencesReplacer.java 23 import proguard.classfile.constant.Constant;
56 public InstructionSequencesReplacer(Constant[] patternConstants,
85 public InstructionSequencesReplacer(Constant[] patternConstants,
115 private static InstructionVisitor[] createInstructionSequenceReplacers(Constant[] patternConstants,
  /external/proguard/src/proguard/classfile/visitor/
ClassForNameClassVisitor.java 24 import proguard.classfile.constant.*;
25 import proguard.classfile.constant.visitor.ConstantVisitor;
31 * constant classes involved in any <code>Class.forName</code> constructs that
58 public void visitAnyConstant(Clazz clazz, Constant constant) {}
  /dalvik/dx/src/com/android/dx/cf/code/
Machine.java 19 import com.android.dx.rop.cst.Constant;
150 * argument, with the value based on the given constant.
153 * constant auxiliary arguments.</p>
155 * @param cst {@code non-null;} the constant containing / referencing
158 public void auxCstArg(Constant cst);
184 * @param initValues {@code non-null;} the list of constant values to initialize
187 public void auxInitValues(ArrayList<Constant> initValues);
  /external/proguard/src/proguard/obfuscate/
NameAndTypeShrinker.java 24 import proguard.classfile.constant.Constant;
30 * This ClassVisitor removes NameAndType constant pool entries
47 // Shift the used constant pool entries together, filling out the
54 // Remap all constant pool references.
69 * from the given constant pool.
72 private int shrinkConstantPool(Constant[] constantPool, int length)
84 // Shift the used constant pool entries together.
89 Constant constant = constantPool[index] local
    [all...]

Completed in 231 milliseconds

1 2 3 4 5 6