Home
last modified time | relevance | path

Searched refs:bodyDeclaration (Results 1 – 16 of 16) sorted by relevance

/external/icu/tools/srcgen/src/main/java/com/android/icu4j/srcgen/
DCaptureDeprecatedElements.java145 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()
DTagMatchingDeclarations.java48 BodyDeclaration bodyDeclaration = locator.find(cu); in process() local
49 if (bodyDeclaration != null) { in process()
50 matchingNodes.add(bodyDeclaration); in process()
56 for (BodyDeclaration bodyDeclaration : Lists.reverse(matchingNodes)) { in process()
57 JavadocUtils.addJavadocTag(rewrite, bodyDeclaration, tagComment); in process()
DHideNonWhitelistedDeclarations.java112 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/
DBodyDeclarationLocators.java57 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()
DTypeLocator.java225 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()
DMethodLocator.java74 for (BodyDeclaration bodyDeclaration in find()
76 if (bodyDeclaration instanceof MethodDeclaration) { in find()
77 MethodDeclaration methodDeclaration = (MethodDeclaration) bodyDeclaration; in find()
DFieldLocator.java81 for (BodyDeclaration bodyDeclaration in find()
83 if (bodyDeclaration instanceof FieldDeclaration) { in find()
84 FieldDeclaration fieldDeclaration = (FieldDeclaration) bodyDeclaration; in find()
DChangeLog.java70 return (annotationInfo, locator, bodyDeclaration) -> changed( in asAddAnnotationListener()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/visitor/
DModifierVisitorTest.java104 final BodyDeclaration<?> bodyDeclaration = JavaParser.parseBodyDeclaration("int x=1;"); in fieldDeclarationCantSurviveWithoutVariables() local
106 final Visitable result = bodyDeclaration.accept(new ModifierVisitor<Void>() { in fieldDeclarationCantSurviveWithoutVariables()
117 … final BodyDeclaration<?> bodyDeclaration = JavaParser.parseBodyDeclaration("void x() {int x=1;}"); in variableDeclarationCantSurviveWithoutVariables() local
119 final Visitable result = bodyDeclaration.accept(new ModifierVisitor<Void>() { in variableDeclarationCantSurviveWithoutVariables()
DCloneVisitorTest.java94 BodyDeclaration<?> bodyDeclaration = bodyItr.next(); in cloneJavaDocTest() local
95 assertEquals(bodyDeclaration.getComment().get().getContent(), " javadoc"); in cloneJavaDocTest()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/bdd/steps/
DSharedSteps.java152 for (BodyDeclaration<?> bodyDeclaration : type.getMembers()) { in getMethodByPositionAndClassPosition()
153 if (bodyDeclaration instanceof MethodDeclaration) { in getMethodByPositionAndClassPosition()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/
DNodeListTest.java229 cd.getMembers().replaceAll(bodyDeclaration -> {
230 FieldDeclaration clone = (FieldDeclaration) bodyDeclaration.clone();
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/processors/
DAddAnnotation.java236 BodyDeclaration bodyDeclaration); in onAddAnnotation() argument
/external/guice/extensions/struts2/lib/
Dcore-3.1.1.jarMETA-INF/ org/ org/eclipse/ org/eclipse/jdt/ org/eclipse ...
/external/icu/tools/srcgen/currysrc/libs/
Dorg.eclipse.jdt.core_3.14.0.v20180528-0519.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSE_.SF META-INF/ECLIPSE_ ...
/external/dagger2/lib/
Dgoogle-java-format-0.1-20151017.042846-2.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...