Home
last modified time | relevance | path

Searched refs:getExtendedTypes (Results 1 – 25 of 33) sorted by relevance

12

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/
DNodeWithExtends.java34 NodeList<ClassOrInterfaceType> getExtendedTypes(); in getExtendedTypes() method
38 default ClassOrInterfaceType getExtendedTypes(int i) { in getExtendedTypes() method
39 return getExtendedTypes().get(i); in getExtendedTypes()
46 getExtendedTypes().set(i, extend); in setExtendedType()
52 getExtendedTypes().add(extend); in addExtendedType()
89 getExtendedTypes().add(parseClassOrInterfaceType(name)); in addExtendedType()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DDefaultPackageTest.java140 ClassOrInterfaceType jpType = parse(code).getClassByName("A").get().getExtendedTypes(0); in aClassInDefaultPackageCanBeAccessedFromTheDefaultPackage()
151 ClassOrInterfaceType jpType = parse(code).getClassByName("A").get().getExtendedTypes(0); in aClassInDefaultPackageCanBeAccessedFromOutsideTheDefaultPackageImportingIt()
164 …de.get(memoryTypeSolver).convertToUsage(parse(code).getClassByName("A").get().getExtendedTypes(0)); in aClassInDefaultPackageCanBeAccessedFromOutsideTheDefaultPackageWithoutImportingIt()
DTypeResolutionWithSameNameTest.java42 assumeTrue(extendingTypeClass.getExtendedTypes().size() > 0); in testTypesWithSameNameInPackageAndNested_directExtends()
43 ClassOrInterfaceType extendedType = extendingTypeClass.getExtendedTypes(0); in testTypesWithSameNameInPackageAndNested_directExtends()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/builders/
DClassOrInterfaceDeclarationBuildersTest.java56 assertEquals(1, testClass.getExtendedTypes().size()); in testAddExtends()
57 assertEquals(List.class.getSimpleName(), testClass.getExtendedTypes(0).getNameAsString()); in testAddExtends()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/
DJavaParserInterfaceDeclaration.java122 for (ClassOrInterfaceType t : wrappedNode.getExtendedTypes()) { in getInterfacesExtended()
160 if (this.wrappedNode.getExtendedTypes() != null) { in canBeAssignedTo()
161 for (ClassOrInterfaceType type : wrappedNode.getExtendedTypes()) { in canBeAssignedTo()
272 if (wrappedNode.getExtendedTypes() != null) { in getAncestors()
273 for (ClassOrInterfaceType extended : wrappedNode.getExtendedTypes()) { in getAncestors()
DJavaParserClassDeclaration.java174 if (wrappedNode.getExtendedTypes().isEmpty()) { in getSuperClass()
177 return toReferenceType(wrappedNode.getExtendedTypes().get(0)); in getSuperClass()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/validator/chunks/
DCommonValidators.java21 n -> !n.isInterface() && n.getExtendedTypes().size() > 1, in CommonValidators()
22 …(n, reporter) -> reporter.report(n.getExtendedTypes(1), "A class cannot extend more than one other… in CommonValidators()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/javaparsermodel/declarations/
DJavaParserInterfaceDeclaration.java163 if (this.wrappedNode.getExtendedTypes() != null) { in canBeAssignedTo()
164 for (ClassOrInterfaceType type : wrappedNode.getExtendedTypes()) { in canBeAssignedTo()
239 if (wrappedNode.getExtendedTypes() != null) { in getAncestors()
240 for (ClassOrInterfaceType extended : wrappedNode.getExtendedTypes()) { in getAncestors()
DJavaParserClassDeclaration.java152 if (wrappedNode.getExtendedTypes().isEmpty()) { in getSuperClass()
155 return toReferenceType(wrappedNode.getExtendedTypes().get(0)); in getSuperClass()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_javaparsermodel_declarations_JavaParserInterfaceDeclaration.txt34 …Line 163) this.wrappedNode.getExtendedTypes() ==> com.github.javaparser.ast.body.ClassOrInterfaceD…
35 …Line 164) wrappedNode.getExtendedTypes() ==> com.github.javaparser.ast.body.ClassOrInterfaceDeclar…
71 …Line 239) wrappedNode.getExtendedTypes() ==> com.github.javaparser.ast.body.ClassOrInterfaceDeclar…
72 …Line 240) wrappedNode.getExtendedTypes() ==> com.github.javaparser.ast.body.ClassOrInterfaceDeclar…
Dcom_github_javaparser_symbolsolver_javaparsermodel_JavaParserFacade.txt43 …Line 166) JavaParserFacade.get(typeSolver).convert(classNode.getExtendedTypes(0), classNode) ==> c…
45 …Line 166) classNode.getExtendedTypes(0) ==> com.github.javaparser.ast.nodeTypes.NodeWithExtends.ge…
207 Line 459) wildcardType.getExtendedTypes().isPresent() ==> java.util.Optional.isPresent()
208 …Line 459) wildcardType.getExtendedTypes() ==> com.github.javaparser.ast.type.WildcardType.getExten…
211 …Line 460) Wildcard.extendsBound(convertToUsage(wildcardType.getExtendedTypes().get(), context)) ==…
212 …Line 460) convertToUsage(wildcardType.getExtendedTypes().get(), context) ==> com.github.javaparser…
213 Line 460) wildcardType.getExtendedTypes().get() ==> java.util.Optional.get()
214 …Line 460) wildcardType.getExtendedTypes() ==> com.github.javaparser.ast.type.WildcardType.getExten…
215 Line 461) wildcardType.getExtendedTypes().isPresent() ==> java.util.Optional.isPresent()
216 …Line 461) wildcardType.getExtendedTypes() ==> com.github.javaparser.ast.type.WildcardType.getExten…
[all …]
Dcom_github_javaparser_symbolsolver_javaparsermodel_declarations_JavaParserClassDeclaration.txt28 …Line 152) wrappedNode.getExtendedTypes().isEmpty() ==> com.github.javaparser.ast.NodeList.isEmpty()
29 …Line 152) wrappedNode.getExtendedTypes() ==> com.github.javaparser.ast.body.ClassOrInterfaceDeclar…
31 …Line 155) toReferenceType(wrappedNode.getExtendedTypes().get(0)) ==> com.github.javaparser.symbols…
32 Line 155) wrappedNode.getExtendedTypes().get(0) ==> com.github.javaparser.ast.NodeList.get(int)
33 …Line 155) wrappedNode.getExtendedTypes() ==> com.github.javaparser.ast.body.ClassOrInterfaceDeclar…
Dcom_github_javaparser_symbolsolver_javaparsermodel_declarations_JavaParserClassDeclaration_J9.txt28 …Line 152) wrappedNode.getExtendedTypes().isEmpty() ==> com.github.javaparser.ast.NodeList.isEmpty()
29 …Line 152) wrappedNode.getExtendedTypes() ==> com.github.javaparser.ast.body.ClassOrInterfaceDeclar…
31 …Line 155) toReferenceType(wrappedNode.getExtendedTypes().get(0)) ==> com.github.javaparser.symbols…
32 Line 155) wrappedNode.getExtendedTypes().get(0) ==> com.github.javaparser.ast.NodeList.get(int)
33 …Line 155) wrappedNode.getExtendedTypes() ==> com.github.javaparser.ast.body.ClassOrInterfaceDeclar…
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/
DClassOrInterfaceDeclarationTransformationsTest.java109 cid.getExtendedTypes().remove(0); in removingExtendedTypes()
116 cid.getExtendedTypes().set(0, parseClassOrInterfaceType("Bar")); in replacingExtendedTypes()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/
DClassOrInterfaceDeclarationContext.java100 for (ClassOrInterfaceType extendedType : wrappedNode.getExtendedTypes()) { in solveType()
122 …this.wrappedNode.getExtendedTypes().forEach(i -> fields.addAll(i.resolve().getAllFieldsVisibleToIn… in fieldsExposedToChild()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/javaparsermodel/
DJavaParserFacade.java166 …Type classDecl = JavaParserFacade.get(typeSolver).convert(classNode.getExtendedTypes(0), classNode… in solve()
459 … if (wildcardType.getExtendedTypes().isPresent() && !wildcardType.getSuperTypes().isPresent()) { in convertToUsage()
460 …return Wildcard.extendsBound(convertToUsage(wildcardType.getExtendedTypes().get(), context)); // r… in convertToUsage()
461 …} else if (!wildcardType.getExtendedTypes().isPresent() && wildcardType.getSuperTypes().isPresent(… in convertToUsage()
463 …} else if (!wildcardType.getExtendedTypes().isPresent() && !wildcardType.getSuperTypes().isPresent… in convertToUsage()
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/
DExpandedNameTable.java365 public ExtendedType[] getExtendedTypes() in getExtendedTypes() method in ExpandedNameTable
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/body/
DClassOrInterfaceDeclaration.java107 public NodeList<ClassOrInterfaceType> getExtendedTypes() { in getExtendedTypes() method in ClassOrInterfaceDeclaration
/external/javaparser/javaparser-core-testing/src/test/test_sourcecode/com/github/javaparser/printer/
DPrettyPrintVisitor.java228 if (!n.getExtendedTypes().isEmpty()) { in visit()
230 … for (final Iterator<ClassOrInterfaceType> i = n.getExtendedTypes().iterator(); i.hasNext(); ) { in visit()
380 if (n.getExtendedTypes().isPresent()) { in visit()
382 n.getExtendedTypes().get().accept(this, arg); in visit()
/external/javaparser/javaparser-core-testing/src/test/resources/com/github/javaparser/printer/
DPrettyPrintVisitor_prettyprinted215 if (!n.getExtendedTypes().isEmpty()) {
217 … for (final Iterator<ClassOrInterfaceType> i = n.getExtendedTypes().iterator(); i.hasNext(); ) {
359 if (n.getExtendedTypes().isPresent()) {
361 n.getExtendedTypes().get().accept(this, arg);
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/naming/
DNameLogic.java113 …if (whenParentIs(ClassOrInterfaceDeclaration.class, name, (p, c) -> p.getExtendedTypes().contains(… in classifyRole()
719 p.getExtendedTypes().contains(c) || p.getImplementedTypes().contains(c))) { in isSyntacticallyATypeName()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/
DNoCommentEqualsVisitor.java140 if (!nodesEquals(n.getExtendedTypes(), n2.getExtendedTypes())) in visit()
DEqualsVisitor.java197 if (!nodesEquals(n.getExtendedTypes(), n2.getExtendedTypes())) in visit()
DNoCommentHashCodeVisitor.java114 …return (n.getExtendedTypes().accept(this, arg)) * 31 + (n.getImplementedTypes().accept(this, arg))… in visit()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/
DJavaParserFacade.java149 …Type classDecl = JavaParserFacade.get(typeSolver).convert(classNode.getExtendedTypes(0), classNode… in solve()

12