Home
last modified time | relevance | path

Searched refs:ancestor (Results 1 – 25 of 150) sorted by relevance

123456

/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionClassDeclarationTest.java345 ResolvedReferenceType ancestor; in testGetAllSuperclassesWithTypeParameters() local
347 ancestor = constructorDeclaration.getAllSuperClasses().get(0); in testGetAllSuperclassesWithTypeParameters()
348 … assertEquals("com.github.javaparser.ast.body.CallableDeclaration", ancestor.getQualifiedName()); in testGetAllSuperclassesWithTypeParameters()
349 …assertEquals("com.github.javaparser.ast.body.ConstructorDeclaration", ancestor.typeParametersMap()… in testGetAllSuperclassesWithTypeParameters()
351 ancestor = constructorDeclaration.getAllSuperClasses().get(1); in testGetAllSuperclassesWithTypeParameters()
352 assertEquals("com.github.javaparser.ast.body.BodyDeclaration", ancestor.getQualifiedName()); in testGetAllSuperclassesWithTypeParameters()
353 …assertEquals("com.github.javaparser.ast.body.ConstructorDeclaration", ancestor.typeParametersMap()… in testGetAllSuperclassesWithTypeParameters()
355 ancestor = constructorDeclaration.getAllSuperClasses().get(2); in testGetAllSuperclassesWithTypeParameters()
356 assertEquals("com.github.javaparser.ast.Node", ancestor.getQualifiedName()); in testGetAllSuperclassesWithTypeParameters()
358 ancestor = constructorDeclaration.getAllSuperClasses().get(3); in testGetAllSuperclassesWithTypeParameters()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/
DJavassistClassDeclarationTest.java281 ResolvedReferenceType ancestor; in testGetAllSuperclassesWithTypeParameters() local
283 ancestor = constructorDeclaration.getAllSuperClasses().get(0); in testGetAllSuperclassesWithTypeParameters()
284 assertEquals("com.github.javaparser.ast.body.BodyDeclaration", ancestor.getQualifiedName()); in testGetAllSuperclassesWithTypeParameters()
285 …assertEquals("com.github.javaparser.ast.body.ConstructorDeclaration", ancestor.typeParametersMap()… in testGetAllSuperclassesWithTypeParameters()
287 ancestor = constructorDeclaration.getAllSuperClasses().get(1); in testGetAllSuperclassesWithTypeParameters()
288 assertEquals("com.github.javaparser.ast.Node", ancestor.getQualifiedName()); in testGetAllSuperclassesWithTypeParameters()
290 ancestor = constructorDeclaration.getAllSuperClasses().get(2); in testGetAllSuperclassesWithTypeParameters()
291 assertEquals("java.lang.Object", ancestor.getQualifiedName()); in testGetAllSuperclassesWithTypeParameters()
401 ResolvedReferenceType ancestor; in testGetAncestorsWithTypeParameters() local
403 ancestor = constructorDeclaration.getAncestors().get(0); in testGetAncestorsWithTypeParameters()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/ttml/
DTtmlStyle.java197 public TtmlStyle chain(@Nullable TtmlStyle ancestor) { in chain() argument
198 return inherit(ancestor, true); in chain()
208 public TtmlStyle inherit(@Nullable TtmlStyle ancestor) { in inherit() argument
209 return inherit(ancestor, false); in inherit()
212 private TtmlStyle inherit(@Nullable TtmlStyle ancestor, boolean chaining) { in inherit() argument
213 if (ancestor != null) { in inherit()
214 if (!hasFontColor && ancestor.hasFontColor) { in inherit()
215 setFontColor(ancestor.fontColor); in inherit()
218 bold = ancestor.bold; in inherit()
221 italic = ancestor.italic; in inherit()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/
DJavaParserInterfaceDeclarationTest.java194 ResolvedReferenceType ancestor = null; in testGetAllSuperclassesWithTypeParameters() local
196 ancestor = constructorDeclaration.getAllSuperClasses().get(0); in testGetAllSuperclassesWithTypeParameters()
197 assertEquals("com.github.javaparser.ast.body.BodyDeclaration", ancestor.getQualifiedName()); in testGetAllSuperclassesWithTypeParameters()
198 …assertEquals("com.github.javaparser.ast.body.ConstructorDeclaration", ancestor.typeParametersMap()… in testGetAllSuperclassesWithTypeParameters()
200 ancestor = constructorDeclaration.getAllSuperClasses().get(1); in testGetAllSuperclassesWithTypeParameters()
201 assertEquals("com.github.javaparser.ast.Node", ancestor.getQualifiedName()); in testGetAllSuperclassesWithTypeParameters()
203 ancestor = constructorDeclaration.getAllSuperClasses().get(2); in testGetAllSuperclassesWithTypeParameters()
204 assertEquals("java.lang.Object", ancestor.getQualifiedName()); in testGetAllSuperclassesWithTypeParameters()
307 ResolvedReferenceType ancestor; in testGetAncestorsWithTypeParameters() local
309 ancestor = constructorDeclaration.getAncestors().get(0); in testGetAncestorsWithTypeParameters()
[all …]
DJavaParserEnumDeclarationTest.java192 ResolvedReferenceType ancestor; in testGetAllSuperclassesWithTypeParameters() local
194 ancestor = constructorDeclaration.getAllSuperClasses().get(0); in testGetAllSuperclassesWithTypeParameters()
195 assertEquals("com.github.javaparser.ast.body.BodyDeclaration", ancestor.getQualifiedName()); in testGetAllSuperclassesWithTypeParameters()
196 …assertEquals("com.github.javaparser.ast.body.ConstructorDeclaration", ancestor.typeParametersMap()… in testGetAllSuperclassesWithTypeParameters()
198 ancestor = constructorDeclaration.getAllSuperClasses().get(1); in testGetAllSuperclassesWithTypeParameters()
199 assertEquals("com.github.javaparser.ast.Node", ancestor.getQualifiedName()); in testGetAllSuperclassesWithTypeParameters()
201 ancestor = constructorDeclaration.getAllSuperClasses().get(2); in testGetAllSuperclassesWithTypeParameters()
202 assertEquals("java.lang.Object", ancestor.getQualifiedName()); in testGetAllSuperclassesWithTypeParameters()
305 ResolvedReferenceType ancestor; in testGetAncestorsWithTypeParameters() local
307 ancestor = constructorDeclaration.getAncestors().get(0); in testGetAncestorsWithTypeParameters()
[all …]
DJavaParserClassDeclarationTest.java195 ResolvedReferenceType ancestor; in testGetAllSuperclassesWithTypeParameters() local
197 ancestor = constructorDeclaration.getAllSuperClasses().get(0); in testGetAllSuperclassesWithTypeParameters()
198 assertEquals("com.github.javaparser.ast.body.BodyDeclaration", ancestor.getQualifiedName()); in testGetAllSuperclassesWithTypeParameters()
199 …assertEquals("com.github.javaparser.ast.body.ConstructorDeclaration", ancestor.typeParametersMap()… in testGetAllSuperclassesWithTypeParameters()
201 ancestor = constructorDeclaration.getAllSuperClasses().get(1); in testGetAllSuperclassesWithTypeParameters()
202 assertEquals("com.github.javaparser.ast.Node", ancestor.getQualifiedName()); in testGetAllSuperclassesWithTypeParameters()
204 ancestor = constructorDeclaration.getAllSuperClasses().get(2); in testGetAllSuperclassesWithTypeParameters()
205 assertEquals("java.lang.Object", ancestor.getQualifiedName()); in testGetAllSuperclassesWithTypeParameters()
308 ResolvedReferenceType ancestor; in testGetAncestorsWithTypeParameters() local
310 ancestor = constructorDeclaration.getAncestors().get(0); in testGetAncestorsWithTypeParameters()
[all …]
/external/apache-xml/src/main/java/org/apache/xalan/processor/
DProcessorExsltFuncResult.java52 ElemTemplateElement ancestor = handler.getElemTemplateElement().getParentElem(); in startElement() local
53 while (ancestor != null && !(ancestor instanceof ElemExsltFunction)) in startElement()
55 if (ancestor instanceof ElemVariable in startElement()
56 || ancestor instanceof ElemParam in startElement()
57 || ancestor instanceof ElemExsltFuncResult) in startElement()
62 ancestor = ancestor.getParentElem(); in startElement()
64 if (ancestor == null) in startElement()
/external/tensorflow/tensorflow/compiler/xla/service/
Dtuple_simplifier.cc87 auto ancestor = instruction->LatestNonGteAncestorAndIndex(); in Run() local
88 if (ancestor.first == instruction) { in Run()
105 if (ShapeUtil::Compatible(ancestor.first->shape(), in Run()
109 computation->ReplaceInstruction(instruction, ancestor.first)); in Run()
110 } else if (ancestor.first->opcode() == HloOpcode::kTuple) { in Run()
114 ancestor.first->mutable_operand(ancestor.second[0]))); in Run()
/external/guava/guava-tests/test/com/google/common/collect/
DFauxveridesTest.java107 private void doHasAllFauxveridesTest(Class<?> descendant, Class<?> ancestor) { in doHasAllFauxveridesTest() argument
108 Set<MethodSignature> required = getAllRequiredToFauxveride(ancestor); in doHasAllFauxveridesTest()
109 Set<MethodSignature> found = getAllFauxveridden(descendant, ancestor); in doHasAllFauxveridesTest()
115 descendant.getSimpleName(), ancestor.getSimpleName(), missing)); in doHasAllFauxveridesTest()
119 private static Set<MethodSignature> getAllRequiredToFauxveride(Class<?> ancestor) { in getAllRequiredToFauxveride() argument
120 return getPublicStaticMethodsBetween(ancestor, Object.class); in getAllRequiredToFauxveride()
123 private static Set<MethodSignature> getAllFauxveridden(Class<?> descendant, Class<?> ancestor) { in getAllFauxveridden() argument
124 return getPublicStaticMethodsBetween(descendant, ancestor); in getAllFauxveridden()
128 Class<?> descendant, Class<?> ancestor) { in getPublicStaticMethodsBetween() argument
130 for (Class<?> clazz : getClassesBetween(descendant, ancestor)) { in getPublicStaticMethodsBetween()
[all …]
/external/guava/android/guava-tests/test/com/google/common/collect/
DFauxveridesTest.java107 private void doHasAllFauxveridesTest(Class<?> descendant, Class<?> ancestor) { in doHasAllFauxveridesTest() argument
108 Set<MethodSignature> required = getAllRequiredToFauxveride(ancestor); in doHasAllFauxveridesTest()
109 Set<MethodSignature> found = getAllFauxveridden(descendant, ancestor); in doHasAllFauxveridesTest()
115 descendant.getSimpleName(), ancestor.getSimpleName(), missing)); in doHasAllFauxveridesTest()
119 private static Set<MethodSignature> getAllRequiredToFauxveride(Class<?> ancestor) { in getAllRequiredToFauxveride() argument
120 return getPublicStaticMethodsBetween(ancestor, Object.class); in getAllRequiredToFauxveride()
123 private static Set<MethodSignature> getAllFauxveridden(Class<?> descendant, Class<?> ancestor) { in getAllFauxveridden() argument
124 return getPublicStaticMethodsBetween(descendant, ancestor); in getAllFauxveridden()
128 Class<?> descendant, Class<?> ancestor) { in getPublicStaticMethodsBetween() argument
130 for (Class<?> clazz : getClassesBetween(descendant, ancestor)) { in getPublicStaticMethodsBetween()
[all …]
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionClassAdapter.java77 ResolvedReferenceType ancestor = ancestors.get(i); in getAncestors() local
78 … if (ancestor.hasName() && ancestor.getQualifiedName().equals(Object.class.getCanonicalName())) { in getAncestors()
92 for (ResolvedReferenceType ancestor : typeDeclaration.getAllAncestors()) { in getField()
93 if (ancestor.getTypeDeclaration().hasField(name)) { in getField()
94 …ldDeclaration reflectionFieldDeclaration = (ReflectionFieldDeclaration) ancestor.getTypeDeclaratio… in getField()
95 return reflectionFieldDeclaration.replaceType(ancestor.getFieldType(name).get()); in getField()
107 for (ResolvedReferenceType ancestor : typeDeclaration.getAllAncestors()) { in hasField()
108 if (ancestor.getTypeDeclaration().hasField(name)) { in hasField()
120 for (ResolvedReferenceType ancestor : typeDeclaration.getAllAncestors()) { in getAllFields()
121 fields.addAll(ancestor.getTypeDeclaration().getAllFields()); in getAllFields()
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/
DChunkedIntArray.java141 int ancestor = startPos; in specialFind() local
142 while(ancestor > 0) in specialFind()
145 ancestor*=slotsize; in specialFind()
146 int chunkpos = ancestor >> lowbits; in specialFind()
147 int slotpos = ancestor & lowmask; in specialFind()
153 ancestor = chunk[slotpos + 1]; in specialFind()
155 if(ancestor == position) in specialFind()
159 if (ancestor <= 0) in specialFind()
/external/testng/eclipse-projects/beust.com/web/
Dsite.xsl28 <xsl:sort select="ancestor::feature//@version" order="ascending"/>
29 <xsl:sort select="ancestor::feature//@id" order="ascending" case-order="upper-first"/>
41 <xsl:when test="ancestor::feature//@label">
42 <a href="{ancestor::feature//@url}"><xsl:value-of select="ancestor::feature//@label"/></a>
45 …(<xsl:value-of select="ancestor::feature//@id"/> - <xsl:value-of select="ancestor::feature//@versi…
49 …<a href="{ancestor::feature//@url}"><xsl:value-of select="ancestor::feature//@id"/> - <xsl:value-o…
56 <xsl:if test="ancestor::feature//@os">
58 <td class="log-text" id="indent"><xsl:value-of select="ancestor::feature//@os"/></td>
61 <xsl:if test="ancestor::feature//@ws">
63 <td class="log-text" id="indent"><xsl:value-of select="ancestor::feature//@ws"/></td>
[all …]
/external/dagger2/java/dagger/internal/codegen/
DComponentTreeTraverser.java157 protected final ComponentPath pathFromRootToAncestor(TypeElement ancestor) { in pathFromRootToAncestor() argument
159 if (componentPath.currentComponent().equals(ancestor)) { in pathFromRootToAncestor()
164 String.format("%s is not in the current path: %s", ancestor.getQualifiedName(), this)); in pathFromRootToAncestor()
171 protected final BindingGraph graphForAncestor(TypeElement ancestor) { in graphForAncestor() argument
173 if (graph.componentTypeElement().equals(ancestor)) { in graphForAncestor()
178 String.format("%s is not in the current path: %s", ancestor.getQualifiedName(), this)); in graphForAncestor()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionClassAdapter.java77 ReferenceType ancestor = ancestors.get(i); in getAncestors() local
78 … if (ancestor.hasName() && ancestor.getQualifiedName().equals(Object.class.getCanonicalName())) { in getAncestors()
92 for (ReferenceType ancestor : typeDeclaration.getAllAncestors()) { in getField()
93 if (ancestor.getTypeDeclaration().hasField(name)) { in getField()
94 …ldDeclaration reflectionFieldDeclaration = (ReflectionFieldDeclaration) ancestor.getTypeDeclaratio… in getField()
95 return reflectionFieldDeclaration.replaceType(ancestor.getFieldType(name).get()); in getField()
120 for (ReferenceType ancestor : typeDeclaration.getAllAncestors()) { in getAllFields()
121 fields.addAll(ancestor.getTypeDeclaration().getAllFields()); in getAllFields()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/
DJavaParserClassDeclaration.java106 … getAncestors(true).forEach(ancestor -> ancestor.getTypeDeclaration().getAllFields().forEach(f -> { in getAllFields()
121 return ancestor.useThisTypeParametersOnTheGivenType(f.getType()); in getAllFields()
251 …ResolvedReferenceTypeDeclaration ancestor = (ResolvedReferenceTypeDeclaration) new SymbolSolver(ty… in canBeAssignedTo() local
252 if (ancestor.canBeAssignedTo(other)) { in canBeAssignedTo()
318 ResolvedReferenceType ancestor; in getAncestors() local
320 ancestor = toReferenceType(implemented); in getAncestors()
326 ancestor = null; in getAncestors()
331 if (ancestor != null) { in getAncestors()
332 ancestors.add(ancestor); in getAncestors()
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/process/ast/
DBodyDeclarationLocators.java153 ASTNode ancestor = node; in findDeclarationNode() local
154 while (ancestor != null && !(ancestor instanceof BodyDeclaration)) { in findDeclarationNode()
155 ancestor = ancestor.getParent(); in findDeclarationNode()
158 return ancestor instanceof BodyDeclaration ? (BodyDeclaration) ancestor : null; in findDeclarationNode()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/
DJavaParserTypeDeclarationAdapter.java82 for (ResolvedReferenceType ancestor : declaration.getAncestors(true)) { in checkAncestorsForType()
84 …for (ResolvedTypeDeclaration internalTypeDeclaration : ancestor.getTypeDeclaration().internalTypes… in checkAncestorsForType()
101 …ResolvedTypeDeclaration ancestorDeclaration = checkAncestorsForType(name, ancestor.getTypeDeclarat… in checkAncestorsForType()
119 for (ResolvedReferenceType ancestor : typeDeclaration.getAncestors(true)) { in solveMethod()
121 if (typeDeclaration != ancestor.getTypeDeclaration()) { in solveMethod()
122 candidateMethods.addAll(ancestor.getAllMethodsVisibleToInheritors() in solveMethod()
127 … .solveMethodInType(ancestor.getTypeDeclaration(), name, argumentsTypes, staticOnly); in solveMethod()
DAnonymousClassDeclarationContext.java53 for (ResolvedReferenceType ancestor : myDeclaration.getAncestors()) { in solveMethod()
55 MethodResolutionLogic.solveMethodInType(ancestor.getTypeDeclaration(), in solveMethod()
150 for (ResolvedReferenceType ancestor : myDeclaration.getAncestors()) { in solveType()
152 if (ancestor.getTypeDeclaration().getName().equals(name)) { in solveType()
153 return SymbolReference.solved(ancestor.getTypeDeclaration()); in solveType()
157 …for (ResolvedTypeDeclaration internalTypeDeclaration : ancestor.getTypeDeclaration().internalTypes… in solveType()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DLocaleData.java63 int ancestor = packed_locale; in findAncestors() local
67 out[count] = ancestor; in findAncestors()
71 if (stop_list[i] == ancestor) { in findAncestors()
76 ancestor = findParent(ancestor, script); in findAncestors()
77 } while (ancestor != PACKED_ROOT); in findAncestors()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_reflectionmodel_ReflectionClassAdapter.txt29 …Line 78) ancestor.hasName() ==> com.github.javaparser.symbolsolver.model.typesystem.ReferenceType.…
30 …Line 78) ancestor.getQualifiedName().equals(Object.class.getCanonicalName()) ==> java.lang.String.…
31 …Line 78) ancestor.getQualifiedName() ==> com.github.javaparser.symbolsolver.model.typesystem.Refer…
38 …Line 93) ancestor.getTypeDeclaration().hasField(name) ==> com.github.javaparser.symbolsolver.model…
39 …Line 93) ancestor.getTypeDeclaration() ==> com.github.javaparser.symbolsolver.model.typesystem.Ref…
40 …Line 94) ancestor.getTypeDeclaration().getField(name) ==> com.github.javaparser.symbolsolver.model…
41 …Line 94) ancestor.getTypeDeclaration() ==> com.github.javaparser.symbolsolver.model.typesystem.Ref…
42 …Line 95) reflectionFieldDeclaration.replaceType(ancestor.getFieldType(name).get()) ==> com.github.…
43 Line 95) ancestor.getFieldType(name).get() ==> java.util.Optional.get()
44 …Line 95) ancestor.getFieldType(name) ==> com.github.javaparser.symbolsolver.model.typesystem.Refer…
[all …]
/external/guava/guava/src/com/google/common/collect/
DAbstractMapBasedMultimap.java302 final List<V> wrapList(@Nullable K key, List<V> list, @Nullable WrappedCollection ancestor) { in wrapList() argument
304 ? new RandomAccessWrappedList(key, list, ancestor) in wrapList()
305 : new WrappedList(key, list, ancestor); in wrapList()
327 final @Nullable WrappedCollection ancestor; field in AbstractMapBasedMultimap.WrappedCollection
331 @Nullable K key, Collection<V> delegate, @Nullable WrappedCollection ancestor) { in WrappedCollection() argument
334 this.ancestor = ancestor; in WrappedCollection()
335 this.ancestorDelegate = (ancestor == null) ? null : ancestor.getDelegate(); in WrappedCollection()
346 if (ancestor != null) { in refreshIfEmpty()
347 ancestor.refreshIfEmpty(); in refreshIfEmpty()
348 if (ancestor.getDelegate() != ancestorDelegate) { in refreshIfEmpty()
[all …]
/external/guava/android/guava/src/com/google/common/collect/
DAbstractMapBasedMultimap.java301 @NullableDecl K key, List<V> list, @NullableDecl WrappedCollection ancestor) { in wrapList() argument
303 ? new RandomAccessWrappedList(key, list, ancestor) in wrapList()
304 : new WrappedList(key, list, ancestor); in wrapList()
326 @NullableDecl final WrappedCollection ancestor; field in AbstractMapBasedMultimap.WrappedCollection
330 @NullableDecl K key, Collection<V> delegate, @NullableDecl WrappedCollection ancestor) { in WrappedCollection() argument
333 this.ancestor = ancestor; in WrappedCollection()
334 this.ancestorDelegate = (ancestor == null) ? null : ancestor.getDelegate(); in WrappedCollection()
345 if (ancestor != null) { in refreshIfEmpty()
346 ancestor.refreshIfEmpty(); in refreshIfEmpty()
347 if (ancestor.getDelegate() != ancestorDelegate) { in refreshIfEmpty()
[all …]
/external/libxml2/test/XPath/tests/
Dsimplebase12 /child::EXAMPLE/attribute::prop1/ancestor-or-self::node()
13 /child::EXAMPLE/attribute::prop1/ancestor-or-self::*
15 /descendant::p/ancestor::chapter
/external/guava/android/guava/src/com/google/common/net/
DInternetDomainName.java353 return hasPublicSuffix() ? ancestor(publicSuffixIndex) : null; in publicSuffix()
409 return ancestor(publicSuffixIndex - 1); in topPrivateDomain()
461 return hasRegistrySuffix() ? ancestor(registrySuffixIndex) : null; in registrySuffix()
511 return ancestor(registrySuffixIndex - 1); in topDomainUnderRegistrySuffix()
528 return ancestor(1); in parent()
538 private InternetDomainName ancestor(int levels) { in ancestor() method in InternetDomainName

123456