Home
last modified time | relevance | path

Searched refs:IClassReference (Results 1 – 22 of 22) sorted by relevance

/cts/tools/signature-tools/src/signature/model/impl/
DSigClassReference.java20 import signature.model.IClassReference;
25 public class SigClassReference implements IClassReference, Serializable {
42 public static boolean equals(IClassReference thiz, Object that) { in equals()
43 if (that instanceof IClassReference) { in equals()
45 ((IClassReference) that).getClassDefinition()); in equals()
55 public static int hashCode(IClassReference thiz) { in hashCode()
64 public static String toString(IClassReference thiz) { in toString()
DSigAnnotation.java21 import signature.model.IClassReference;
31 private IClassReference type;
37 public IClassReference getType() { in getType()
41 public void setType(IClassReference type) { in setType()
DSigParameterizedType.java19 import signature.model.IClassReference;
31 private IClassReference rawType;
35 IClassReference rawType, List<ITypeReference> typeArguments) { in SigParameterizedType()
52 public IClassReference getRawType() { in getRawType()
DUninitialized.java27 import signature.model.IClassReference;
45 IClassReference.class, ITypeVariableReference.class,
/cts/tools/signature-tools/src/signature/compare/model/impl/
DSigClassReferenceDelta.java20 import signature.model.IClassReference;
22 public class SigClassReferenceDelta extends SigDelta<IClassReference>
23 implements ITypeReferenceDelta<IClassReference> {
25 public SigClassReferenceDelta(IClassReference from, IClassReference to) { in SigClassReferenceDelta()
/cts/tools/signature-tools/src/signature/compare/model/subst/
DClassReferenceProjection.java20 import signature.model.IClassReference;
27 public class ClassReferenceProjection implements IClassReference {
29 private final IClassReference original;
32 public ClassReferenceProjection(IClassReference original, in ClassReferenceProjection()
DParameterizedTypeProjection.java19 import signature.model.IClassReference;
48 private IClassReference rawType = null;
55 public IClassReference getRawType() { in getRawType()
57 rawType = (IClassReference) ViewpointAdapter in getRawType()
DViewpointAdapter.java21 import signature.model.IClassReference;
86 if (type instanceof IClassReference) { in substitutedTypeReference()
87 return new ClassReferenceProjection((IClassReference) original, in substitutedTypeReference()
107 public static IClassReference getReferenceTo(IClassDefinition definition) { in getReferenceTo()
/cts/tools/signature-tools/test/signature/converter/
DConvertWildcardTest.java28 import signature.model.IClassReference;
64 assertTrue(upperBound instanceof IClassReference); in convertWildcardUpperBound()
66 assertEquals("Number", ((IClassReference)upperBound).getClassDefinition().getName()); in convertWildcardUpperBound()
93 assertTrue(upperBound instanceof IClassReference); in convertWildcardLowerBound()
94 assertEquals("Object", ((IClassReference)upperBound).getClassDefinition().getName()); in convertWildcardLowerBound()
97 assertTrue(lowerBound instanceof IClassReference); in convertWildcardLowerBound()
98 assertEquals("Number", ((IClassReference)lowerBound).getClassDefinition().getName()); in convertWildcardLowerBound()
DConvertClassTest.java38 import signature.model.IClassReference;
161 IClassReference bound = (IClassReference) variable.getUpperBounds().get(0); in convertGenericClass0()
180 IClassReference bound = (IClassReference) variable.getUpperBounds().get(0); in convertGenericClass00()
199 IClassReference boundS = (IClassReference) variableS.getUpperBounds().get(0); in convertGenericClass1()
206 IClassReference boundT = (IClassReference) variableT.getUpperBounds().get(0); in convertGenericClass1()
225 IClassReference boundS = (IClassReference) variableS.getUpperBounds().get(0); in convertGenericClass2()
247 …IClassDefinition clonable = ((IClassReference) sigClass.getInterfaces().iterator().next()).getClas… in convertClassImplementsInterface0()
271 IClassReference interfaze = (IClassReference) sigClass.getInterfaces().iterator().next(); in convertClassImplementsInterface1()
300 IClassReference string = (IClassReference) interfaze.getTypeArguments().get(0); in convertClassImplementsGenericInterface0()
413 IClassReference exception = (IClassReference) constructor.getExceptions().iterator().next(); in convertConstructorWithException()
[all …]
DConvertEnumTest.java38 import signature.model.IClassReference;
108 assertSame(c, ((IClassReference)field.getType()).getClassDefinition()); in testEnum2()
142 …assertSame(c, ((IClassReference)((IArrayType)values.getReturnType()).getComponentType()).getClassD… in testEnum3()
151 …assertEquals("java.lang.String", ((IClassReference)param.getType()).getClassDefinition().getQualif… in testEnum3()
152 assertSame(c, ((IClassReference)valueOf.getReturnType()).getClassDefinition()); in testEnum3()
185 …assertSame(c, ((IClassReference)((IArrayType)values.getReturnType()).getComponentType()).getClassD… in testEnum4()
DConvertAnnotationTest.java35 import signature.model.IClassReference;
68 assertEquals("String", ((IClassReference)field.getType()).getClassDefinition().getName()); in convertAnnotationDefinition1()
319 assertEquals("Kind", ((IClassReference)field.getType()).getClassDefinition().getName()); in testAnnotationDefaultsEnum1()
436 IClassReference fieldType = (IClassReference)field.getType(); in testAnnotationDefaultsAnnotation1()
536 assertTrue(field.getType() instanceof IClassReference); in testAnnotationDefaultsString1()
537 assertEquals("String", ((IClassReference)field.getType()).getClassDefinition().getName()); in testAnnotationDefaultsString1()
616 assertTrue(field.getType() instanceof IClassReference); in testAnnotationDefaultsClass1()
617 assertEquals("Class", ((IClassReference)field.getType()).getClassDefinition().getName()); in testAnnotationDefaultsClass1()
619 assertSame(aType, ((IClassReference)defaultValue).getClassDefinition()); in testAnnotationDefaultsClass1()
638 assertTrue(field.getType() instanceof IClassReference); in testAnnotationDefaultsClass2()
[all …]
/cts/tools/signature-tools/src/signature/model/util/
DITypeFactory.java19 import signature.model.IClassReference;
41 public IClassReference getClassReference(String packageName, in getClassReference()
65 IClassReference rawType, List<ITypeReference> typeArguments); in getParameterizedType()
DTypePool.java20 import signature.model.IClassReference;
65 public IClassReference getClassReference(String packageName, in getClassReference()
76 IClassReference rawType, List<ITypeReference> typeArguments) { in getParameterizedType()
/cts/tools/signature-tools/src/signature/io/html/
DExecutableMemberComparator.java22 import signature.model.IClassReference;
73 if (type instanceof IClassReference) { in getTypeName()
74 return getTypeName(((IClassReference) type).getClassDefinition()); in getTypeName()
/cts/tools/signature-tools/src/signature/model/
DIClassReference.java24 public interface IClassReference extends ITypeReference { interface
DIAnnotation.java32 IClassReference getType(); in getType()
DIParameterizedType.java49 IClassReference getRawType(); in getRawType()
/cts/tools/signature-tools/src/signature/converter/dex/
DGenericSignatureParser.java22 import signature.model.IClassReference;
400 IClassReference rawType = factory.getClassReference(packageName, in parseClassTypeSignature()
425 IClassReference rawType = factory.getClassReference( in parseClassTypeSignature()
DDexToSigConverter.java61 import signature.model.IClassReference;
660 String firstParameterTypeName = ((IClassReference) first in convertConstructor()
/cts/tools/signature-tools/src/signature/converter/doclet/
DDocletToSigConverter.java35 import signature.model.IClassReference;
281 IClassReference fieldClassRef = (IClassReference) fieldType; in convertAnnotationValue()
350 IClassReference rawType = new SigClassReference(convertClass(pType in convertTypeReference()
570 IClassReference annotationType = (IClassReference) convertTypeReference( in convertAnnotation()
/cts/tools/signature-tools/src/signature/compare/
DApiComparator.java71 import signature.model.IClassReference;
833 if (type instanceof IClassReference) {
834 returnValue = ((IClassReference) type).getClassDefinition();
1223 if (implementInterface(from, to, IClassReference.class)) {
1224 return sameClassDefinition(((IClassReference) from)
1225 .getClassDefinition(), ((IClassReference) to)
1283 if (implementInterface(from, to, IClassReference.class)) {
1284 return compareClassReference((IClassReference) from,
1285 (IClassReference) to);
1355 if (reference instanceof IClassReference) {
[all …]