/external/icu/tools/srcgen/src/main/java/com/android/icu4j/srcgen/ |
D | CaptureDeprecatedElements.java | 145 for (BodyDeclaration bodyDeclaration in trackDeprecationsRecursively() 147 if (isApiVisible(matchedType, bodyDeclaration) && isDeprecated(bodyDeclaration)) { in trackDeprecationsRecursively() 148 deprecatedElements.addAll(BodyDeclarationLocators.toLocatorStringForms(bodyDeclaration)); in trackDeprecationsRecursively() 149 if (bodyDeclaration instanceof AbstractTypeDeclaration) { in trackDeprecationsRecursively() 150 trackDeprecationsRecursively((AbstractTypeDeclaration) bodyDeclaration); in trackDeprecationsRecursively() 157 AbstractTypeDeclaration matchedType, BodyDeclaration bodyDeclaration) { in isApiVisible() argument 167 if (bodyDeclaration instanceof EnumConstantDeclaration) { in isApiVisible() 171 return (bodyDeclaration.getModifiers() & (Modifier.PROTECTED | Modifier.PUBLIC)) > 0; in isApiVisible() 174 private static boolean isDeprecated(BodyDeclaration bodyDeclaration) { in isDeprecated() argument 175 Javadoc doc = bodyDeclaration.getJavadoc(); in isDeprecated()
|
D | TagMatchingDeclarations.java | 60 BodyDeclaration bodyDeclaration = locatorTag.locator.find(cu); in process() local 61 if (bodyDeclaration != null) { in process() 62 matchingNodes.add(new DeclarationTag(bodyDeclaration, locatorTag.tagComment)); in process()
|
D | HideNonAllowlistedDeclarations.java | 112 for (BodyDeclaration bodyDeclaration : Lists.reverse(matchingNodes)) { in process() 113 JavadocUtils.addJavadocTag(rewrite, bodyDeclaration, tagComment); in process()
|
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/process/ast/ |
D | BodyDeclarationLocators.java | 57 public static List<String> toLocatorStringForms(BodyDeclaration bodyDeclaration) { in toLocatorStringForms() argument 58 List<BodyDeclarationLocator> locators = createLocators(bodyDeclaration); in toLocatorStringForms() 70 public static List<BodyDeclarationLocator> createLocators(BodyDeclaration bodyDeclaration) { in createLocators() argument 71 AbstractTypeDeclaration typeDeclaration = TypeLocator.findTypeDeclarationNode(bodyDeclaration); in createLocators() 77 int nodeType = bodyDeclaration.getNodeType(); in createLocators() 80 List<String> fieldNames = FieldLocator.getFieldNames((FieldDeclaration) bodyDeclaration); in createLocators() 87 MethodDeclaration methodDeclaration = (MethodDeclaration) bodyDeclaration; in createLocators() 96 EnumConstantDeclaration enumConstantDeclaration = (EnumConstantDeclaration) bodyDeclaration; in createLocators()
|
D | TypeLocator.java | 225 for (BodyDeclaration bodyDeclaration : bodyDeclarations) { in findNested() 226 if (bodyDeclaration instanceof AbstractTypeDeclaration) { in findNested() 227 AbstractTypeDeclaration subTypeDeclaration = (AbstractTypeDeclaration) bodyDeclaration; in findNested() 278 public static AbstractTypeDeclaration findTypeDeclarationNode(BodyDeclaration bodyDeclaration) { in findTypeDeclarationNode() argument 279 if (bodyDeclaration instanceof AbstractTypeDeclaration) { in findTypeDeclarationNode() 280 return (AbstractTypeDeclaration) bodyDeclaration; in findTypeDeclarationNode() 282 ASTNode parentNode = bodyDeclaration.getParent(); in findTypeDeclarationNode()
|
D | MethodLocator.java | 74 for (BodyDeclaration bodyDeclaration in find() 76 if (bodyDeclaration instanceof MethodDeclaration) { in find() 77 MethodDeclaration methodDeclaration = (MethodDeclaration) bodyDeclaration; in find()
|
D | FieldLocator.java | 81 for (BodyDeclaration bodyDeclaration in find() 83 if (bodyDeclaration instanceof FieldDeclaration) { in find() 84 FieldDeclaration fieldDeclaration = (FieldDeclaration) bodyDeclaration; in find()
|
D | ChangeLog.java | 70 return (annotationInfo, locator, bodyDeclaration) -> changed( in asAddAnnotationListener()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/ |
D | ModifierVisitorTest.java | 108 final BodyDeclaration<?> bodyDeclaration = parseBodyDeclaration("int x=1;"); in fieldDeclarationCantSurviveWithoutVariables() local 110 final Visitable result = bodyDeclaration.accept(new ModifierVisitor<Void>() { in fieldDeclarationCantSurviveWithoutVariables() 121 final BodyDeclaration<?> bodyDeclaration = parseBodyDeclaration("void x() {int x=1;}"); in variableDeclarationCantSurviveWithoutVariables() local 123 final Visitable result = bodyDeclaration.accept(new ModifierVisitor<Void>() { in variableDeclarationCantSurviveWithoutVariables()
|
D | CloneVisitorTest.java | 95 BodyDeclaration<?> bodyDeclaration = bodyItr.next(); in cloneJavaDocTest() local 96 assertEquals("javadoc", bodyDeclaration.getComment().get().getContent()); in cloneJavaDocTest()
|
/external/javaparser/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/ |
D | SharedSteps.java | 152 for (BodyDeclaration<?> bodyDeclaration : type.getMembers()) { in getMethodByPositionAndClassPosition() 153 if (bodyDeclaration instanceof MethodDeclaration) { in getMethodByPositionAndClassPosition()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/ |
D | NodeListTest.java | 226 cd.getMembers().replaceAll(bodyDeclaration -> { 227 FieldDeclaration clone = (FieldDeclaration) bodyDeclaration.clone();
|
/external/google-java-format/core/src/main/java/com/google/googlejavaformat/java/ |
D | JavaInputAstVisitor.java | 3500 Tree bodyDeclaration = it.next(); 3504 bodyDeclaration.getKind() != VARIABLE || hasJavaDoc(bodyDeclaration); 3512 if (bodyDeclaration.getKind() == VARIABLE) { 3514 variableFragments(it, bodyDeclaration), 3516 fieldAnnotationDirection(((VariableTree) bodyDeclaration).getModifiers())); 3518 scan(bodyDeclaration, null); 3558 private boolean hasJavaDoc(Tree bodyDeclaration) { 3559 int position = ((JCTree) bodyDeclaration).getStartPosition();
|
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/processors/ |
D | AddAnnotation.java | 290 BodyDeclaration bodyDeclaration); in onAddAnnotation() argument
|