Home
last modified time | relevance | path

Searched refs:targetClass (Results 1 – 25 of 51) sorted by relevance

123

/external/proguard/src/proguard/classfile/editor/
DClassEditor.java36 private ProgramClass targetClass; field in ClassEditor
43 public ClassEditor(ProgramClass targetClass) in ClassEditor() argument
45 this.targetClass = targetClass; in ClassEditor()
54 int interfacesCount = targetClass.u2interfacesCount; in addInterface()
55 int[] interfaces = targetClass.u2interfaces; in addInterface()
60 targetClass.u2interfaces = new int[interfacesCount+1]; in addInterface()
62 targetClass.u2interfaces, 0, in addInterface()
64 interfaces = targetClass.u2interfaces; in addInterface()
69 …System.out.println(targetClass.getName()+": adding interface ["+targetClass.getClassName(interface… in addInterface()
73 interfaces[targetClass.u2interfacesCount++] = interfaceConstantIndex; in addInterface()
[all …]
DConstantPoolEditor.java35 private ProgramClass targetClass; field in ConstantPoolEditor
42 public ConstantPoolEditor(ProgramClass targetClass) in ConstantPoolEditor() argument
44 this.targetClass = targetClass; in ConstantPoolEditor()
55 int constantPoolCount = targetClass.u2constantPoolCount; in addIntegerConstant()
56 Constant[] constantPool = targetClass.constantPool; in addIntegerConstant()
84 int constantPoolCount = targetClass.u2constantPoolCount; in addLongConstant()
85 Constant[] constantPool = targetClass.constantPool; in addLongConstant()
114 int constantPoolCount = targetClass.u2constantPoolCount; in addFloatConstant()
115 Constant[] constantPool = targetClass.constantPool; in addFloatConstant()
144 int constantPoolCount = targetClass.u2constantPoolCount; in addDoubleConstant()
[all …]
DAttributesEditor.java36 private final ProgramClass targetClass; field in AttributesEditor
46 public AttributesEditor(ProgramClass targetClass, in AttributesEditor() argument
49 this(targetClass, null, null, replaceAttributes); in AttributesEditor()
57 public AttributesEditor(ProgramClass targetClass, in AttributesEditor() argument
61 this(targetClass, targetMember, null, replaceAttributes); in AttributesEditor()
69 public AttributesEditor(ProgramClass targetClass, in AttributesEditor() argument
74 this.targetClass = targetClass; in AttributesEditor()
96 findAttribute(targetClass.u2attributesCount, in findAttribute()
97 targetClass.attributes, in findAttribute()
146 !replaceAttribute(targetClass.u2attributesCount, in addAttribute()
[all …]
DMemberAdder.java49 private final ProgramClass targetClass; field in MemberAdder
64 public MemberAdder(ProgramClass targetClass) in MemberAdder() argument
66 this(targetClass, null); in MemberAdder()
81 public MemberAdder(ProgramClass targetClass, in MemberAdder() argument
85 this.targetClass = targetClass; in MemberAdder()
89 constantAdder = new ConstantAdder(targetClass); in MemberAdder()
90 classEditor = new ClassEditor(targetClass); in MemberAdder()
91 constantPoolEditor = new ConstantPoolEditor(targetClass); in MemberAdder()
150 …e(programClass)+" "+programField.getDescriptor(programClass)+"] into ["+targetClass.getName()+"]"); in visitProgramField()
169 new AttributeAdder(targetClass, in visitProgramField()
[all …]
DAnnotationAdder.java42 private final ProgramClass targetClass; field in AnnotationAdder
54 public AnnotationAdder(ProgramClass targetClass, in AnnotationAdder() argument
57 this.targetClass = targetClass; in AnnotationAdder()
62 constantAdder = new ConstantAdder(targetClass); in AnnotationAdder()
70 public AnnotationAdder(ProgramClass targetClass, in AnnotationAdder() argument
73 this.targetClass = targetClass; in AnnotationAdder()
78 constantAdder = new ConstantAdder(targetClass); in AnnotationAdder()
86 public AnnotationAdder(ProgramClass targetClass, in AnnotationAdder() argument
89 this.targetClass = targetClass; in AnnotationAdder()
94 constantAdder = new ConstantAdder(targetClass); in AnnotationAdder()
[all …]
DInterfacesEditor.java34 private final ProgramClass targetClass; field in InterfacesEditor
41 public InterfacesEditor(ProgramClass targetClass) in InterfacesEditor() argument
43 this.targetClass = targetClass; in InterfacesEditor()
56 targetClass.u2interfaces = in addInterface()
57 ArrayUtil.add(targetClass.u2interfaces, in addInterface()
58 targetClass.u2interfacesCount++, in addInterface()
73 int interfacesCount = --targetClass.u2interfacesCount; in deleteInterface()
74 int[] interfaces = targetClass.u2interfaces; in deleteInterface()
96 int interfacesCount = targetClass.u2interfacesCount; in findInterfaceIndex()
97 int[] interfaces = targetClass.u2interfaces; in findInterfaceIndex()
DElementValueAdder.java39 private final ProgramClass targetClass; field in ElementValueAdder
50 public ElementValueAdder(ProgramClass targetClass, in ElementValueAdder() argument
54 this.targetClass = targetClass; in ElementValueAdder()
57 constantAdder = new ConstantAdder(targetClass); in ElementValueAdder()
66 public ElementValueAdder(ProgramClass targetClass, in ElementValueAdder() argument
70 this.targetClass = targetClass; in ElementValueAdder()
73 constantAdder = new ConstantAdder(targetClass); in ElementValueAdder()
74 elementValuesEditor = new ElementValuesEditor(targetClass, in ElementValueAdder()
84 public ElementValueAdder(ProgramClass targetClass, in ElementValueAdder() argument
88 this.targetClass = targetClass; in ElementValueAdder()
[all …]
DAttributeAdder.java50 private final ProgramClass targetClass; field in AttributeAdder
63 public AttributeAdder(ProgramClass targetClass, in AttributeAdder() argument
66 this(targetClass, null, null, replaceAttributes); in AttributeAdder()
74 public AttributeAdder(ProgramClass targetClass, in AttributeAdder() argument
78 this(targetClass, targetMember, null, replaceAttributes); in AttributeAdder()
86 public AttributeAdder(ProgramClass targetClass, in AttributeAdder() argument
91 this.targetClass = targetClass; in AttributeAdder()
96 constantAdder = new ConstantAdder(targetClass); in AttributeAdder()
97 attributesEditor = new AttributesEditor(targetClass, in AttributeAdder()
232 … new ParameterInfoAdder(targetClass, newMethodParametersAttribute)); in visitMethodParametersAttribute()
[all …]
DBootstrapMethodsAttributeAdder.java34 private final ProgramClass targetClass; field in BootstrapMethodsAttributeAdder
43 public BootstrapMethodsAttributeAdder(ProgramClass targetClass) in BootstrapMethodsAttributeAdder() argument
45 this.targetClass = targetClass; in BootstrapMethodsAttributeAdder()
46 this.constantPoolEditor = new ConstantPoolEditor(targetClass); in BootstrapMethodsAttributeAdder()
68 new AttributesEditor(targetClass, false); in visitBootstrapMethodInfo()
84 bootstrapMethodInfoAdder = new BootstrapMethodInfoAdder(targetClass, in visitBootstrapMethodInfo()
DSubclassToAdder.java35 private final Clazz targetClass; field in SubclassToAdder
42 public SubclassToAdder(Clazz targetClass) in SubclassToAdder() argument
44 this.targetClass = targetClass; in SubclassToAdder()
52 targetClass.addSubClass(programClass); in visitProgramClass()
58 targetClass.addSubClass(libraryClass); in visitLibraryClass()
DElementValuesEditor.java36 private final ProgramClass targetClass; field in ElementValuesEditor
46 public ElementValuesEditor(ProgramClass targetClass, in ElementValuesEditor() argument
50 this.targetClass = targetClass; in ElementValuesEditor()
61 public ElementValuesEditor(ProgramClass targetClass, in ElementValuesEditor() argument
65 this.targetClass = targetClass; in ElementValuesEditor()
153 elementValue.getMethodName(targetClass)); in replaceElementValue()
230 if (elementValues[index].getMethodName(targetClass).equals(elementValueName)) in findElementValue()
DInterfaceAdder.java46 public InterfaceAdder(ProgramClass targetClass) in InterfaceAdder() argument
48 constantAdder = new ConstantAdder(targetClass); in InterfaceAdder()
49 interfacesEditor = new InterfacesEditor(targetClass); in InterfaceAdder()
/external/proguard/src/proguard/optimize/peephole/
DClassMerger.java60 private final ProgramClass targetClass; field in ClassMerger
79 public ClassMerger(ProgramClass targetClass, in ClassMerger() argument
83 this(targetClass, allowAccessModification, mergeInterfacesAggressively, null); in ClassMerger()
100 public ClassMerger(ProgramClass targetClass, in ClassMerger() argument
105 this.targetClass = targetClass; in ClassMerger()
130 System.err.println(" Target class = ["+targetClass.getName()+"]"); in visitProgramClass()
136 targetClass.accept(new ClassPrinter()); in visitProgramClass()
145 if (!programClass.equals(targetClass) && in visitProgramClass0()
149 !KeepMarker.isKept(targetClass) && in visitProgramClass0()
153 getTargetClass(targetClass) == null && in visitProgramClass0()
[all …]
DMethodInliner.java72 private ProgramClass targetClass; field in MethodInliner
150 System.err.println(" Target class = ["+targetClass.getName()+"]"); in visitCodeAttribute()
151 …rintln(" Target method = ["+targetMethod.getName(targetClass)+targetMethod.getDescriptor(targetC… in visitCodeAttribute()
164 targetMethod.accept(targetClass, new ClassPrinter()); in visitCodeAttribute()
184 targetClass = (ProgramClass)clazz; in visitCodeAttribute0()
186 constantAdder = new ConstantAdder(targetClass); in visitCodeAttribute0()
187 … exceptionInfoAdder = new ExceptionInfoAdder(targetClass, codeAttributeComposer); in visitCodeAttribute0()
198 targetClass = null; in visitCodeAttribute0()
228targetClass.getName()+"."+targetMethod.getName(targetClass)+targetMethod.getDescriptor(targetClass in visitCodeAttribute0()
515 !programClass.equals(targetClass)) && in visitProgramMethod()
[all …]
/external/proguard/src/proguard/classfile/visitor/
DSimilarMemberVisitor.java35 private final Clazz targetClass; field in SimilarMemberVisitor
61 public SimilarMemberVisitor(Clazz targetClass, in SimilarMemberVisitor() argument
68 this.targetClass = targetClass; in SimilarMemberVisitor()
81 targetClass.hierarchyAccept(visitThisMember, in visitProgramField()
93 targetClass.hierarchyAccept(visitThisMember, in visitLibraryField()
105 targetClass.hierarchyAccept(visitThisMember, in visitProgramMethod()
117 targetClass.hierarchyAccept(visitThisMember, in visitLibraryMethod()
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/
DProxyMaker.java43 public <T> T createProxy(Class<T> targetClass, T target) { in createProxy() argument
44 return factories.get(targetClass).createProxy(targetClass, target); in createProxy()
47 <T> Factory createProxyFactory(Class<T> targetClass) { in createProxyFactory() argument
48 Type targetType = Type.getType(targetClass); in createProxyFactory()
57 for (java.lang.reflect.Method method : targetClass.getMethods()) { in createProxyFactory()
65 String targetMethod = methodMapper.getName(targetClass.getName(), method.getName()); in createProxyFactory()
77 … final Class<?> proxyClass = UNSAFE.defineAnonymousClass(targetClass, writer.toByteArray(), null); in createProxyFactory()
82 @Override public <E> E createProxy(Class<E> targetClass, E target) { in createProxyFactory()
88 return targetClass.cast(proxy); in createProxyFactory()
110 <T> T createProxy(Class<T> targetClass, T target);
/external/proguard/src/proguard/optimize/info/
DClassOptimizationInfo.java41 private Clazz targetClass; field in ClassOptimizationInfo
140 public void setTargetClass(Clazz targetClass) in setTargetClass() argument
142 this.targetClass = targetClass; in setTargetClass()
148 return targetClass; in getTargetClass()
/external/jacoco/org.jacoco.core.test.validation.java5/src/org/jacoco/core/test/validation/java5/
DAnnotationInitializerTest.java29 protected void run(Class<?> targetClass) throws Exception { in run() argument
33 assertEquals(1, targetClass.getDeclaredFields().length); in run()
34 assertEquals(1, targetClass.getDeclaredMethods().length); in run()
37 targetClass.getField("CONST").get(null); in run()
DInterfaceClassInitializerTest.java27 protected void run(final Class<?> targetClass) throws Exception { in run() argument
29 targetClass.getField("CONST1").get(null); in run()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/cfg/
DCoercionConfigs.java163 Class<?> targetClass, CoercionInputShape inputShape) in findCoercion() argument
166 if ((_perClassCoercions != null) && (targetClass != null)) { in findCoercion()
167 MutableCoercionConfig cc = _perClassCoercions.get(targetClass); in findCoercion()
258 Class<?> targetClass, in findCoercionFromBlankString() argument
265 if ((_perClassCoercions != null) && (targetClass != null)) { in findCoercionFromBlankString()
266 MutableCoercionConfig cc = _perClassCoercions.get(targetClass); in findCoercionFromBlankString()
/external/javassist/src/main/javassist/compiler/
DMemberCodeGen.java483 CtClass targetClass = null; in atCallExpr() local
493 targetClass = thisClass; in atCallExpr()
504 targetClass = thisClass; in atCallExpr()
510 targetClass = MemberResolver.getSuperclass(targetClass); in atCallExpr()
517 targetClass in atCallExpr()
526 targetClass = MemberResolver.getSuperInterface(thisClass, in atCallExpr()
555 targetClass = resolver.lookupClass(javaLangObject, true); in atCallExpr()
557 targetClass = resolver.lookupClassByJvmName(className); in atCallExpr()
568 atMethodCallCore(targetClass, mname, args, isStatic, isSpecial, in atCallExpr()
582 public void atMethodCallCore(CtClass targetClass, String mname, in atMethodCallCore() argument
[all …]
/external/universal-tween-engine/java/api/src/aurelienribon/tweenengine/
DTween.java341 private Class<?> targetClass; field in Tween
375 targetClass = null; in reset()
397 this.targetClass = target != null ? findTargetClass() : null; in setup()
455 public Tween cast(Class<?> targetClass) { in cast() argument
457 this.targetClass = targetClass; in cast()
773 return targetClass; in getTargetClass()
784 accessor = (TweenAccessor<Object>) registeredAccessors.get(targetClass); in build()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/
DDeserializationContext.java490 Class<?> targetClass, CoercionInputShape inputShape) in findCoercionAction() argument
492 return _config.findCoercionAction(targetType, targetClass, inputShape); in findCoercionAction()
512 Class<?> targetClass, in findCoercionFromBlankString() argument
515 … return _config.findCoercionFromBlankString(targetType, targetClass, actionIfBlankNotAllowed); in findCoercionFromBlankString()
1058 public Object handleWeirdStringValue(Class<?> targetClass, String value, in handleWeirdStringValue() argument
1067 Object instance = h.value().handleWeirdStringValue(this, targetClass, value, msg); in handleWeirdStringValue()
1070 if (_isCompatible(targetClass, instance)) { in handleWeirdStringValue()
1073 throw weirdStringException(value, targetClass, String.format( in handleWeirdStringValue()
1075 ClassUtil.getClassDescription(targetClass), in handleWeirdStringValue()
1081 throw weirdStringException(value, targetClass, msg); in handleWeirdStringValue()
[all …]
/external/testng/src/main/java/org/testng/internal/
DPropertyUtils.java46 private static PropertyDescriptor getPropertyDescriptor(Class targetClass, String propertyName) { in getPropertyDescriptor() argument
48 if (targetClass == null) { in getPropertyDescriptor()
52 BeanInfo beanInfo = Introspector.getBeanInfo(targetClass); in getPropertyDescriptor()
/external/jacoco/org.jacoco.core.test.validation.java8/src/org/jacoco/core/test/validation/java8/
DLambdaInInterfaceTest.java27 protected void run(final Class<?> targetClass) throws Exception { in run() argument
28 ((Runnable) targetClass.getField("RUN").get(null)).run(); in run()

123