Home
last modified time | relevance | path

Searched refs:FieldDeclaration (Results 1 – 25 of 121) sorted by relevance

12345

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/body/
DFieldDeclaration.java70FieldDeclaration extends BodyDeclaration<FieldDeclaration> implements NodeWithJavadoc<FieldDeclara… class
77 public FieldDeclaration() { in FieldDeclaration() method in FieldDeclaration
81 public FieldDeclaration(EnumSet<Modifier> modifiers, VariableDeclarator variable) { in FieldDeclaration() method in FieldDeclaration
85 public FieldDeclaration(EnumSet<Modifier> modifiers, NodeList<VariableDeclarator> variables) { in FieldDeclaration() method in FieldDeclaration
90 …public FieldDeclaration(EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeLis… in FieldDeclaration() method in FieldDeclaration
98 …public FieldDeclaration(TokenRange tokenRange, EnumSet<Modifier> modifiers, NodeList<AnnotationExp… in FieldDeclaration() method in FieldDeclaration
112 public FieldDeclaration(EnumSet<Modifier> modifiers, Type type, String name) { in FieldDeclaration() method in FieldDeclaration
145 public FieldDeclaration setModifiers(final EnumSet<Modifier> modifiers) { in setModifiers()
148 return (FieldDeclaration) this; in setModifiers()
156 public FieldDeclaration setVariables(final NodeList<VariableDeclarator> variables) { in setVariables()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/
DNodeWithMembers.java83 default FieldDeclaration addField(Class<?> typeClass, String name, Modifier... modifiers) { in addField()
96 default FieldDeclaration addField(String type, String name, Modifier... modifiers) { in addField()
108 default FieldDeclaration addField(Type type, String name, Modifier... modifiers) { in addField()
109 FieldDeclaration fieldDeclaration = new FieldDeclaration(); in addField()
127 …default FieldDeclaration addFieldWithInitializer(Type type, String name, Expression initializer, M… in addFieldWithInitializer()
128 FieldDeclaration declaration = addField(type, name, modifiers); in addFieldWithInitializer()
140 default FieldDeclaration addPrivateField(Class<?> typeClass, String name) { in addPrivateField()
152 default FieldDeclaration addPrivateField(String type, String name) { in addPrivateField()
163 default FieldDeclaration addPublicField(Class<?> typeClass, String name) { in addPublicField()
175 default FieldDeclaration addPublicField(String type, String name) { in addPublicField()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/nodeTypes/
DNodeWithMembers.java18 import com.github.javaparser.ast.body.FieldDeclaration;
48 default FieldDeclaration addField(Class<?> typeClass, String name, Modifier... modifiers) { in addField()
61 default FieldDeclaration addField(String type, String name, Modifier... modifiers) { in addField()
73 default FieldDeclaration addField(Type<?> type, String name, Modifier... modifiers) { in addField()
74 FieldDeclaration fieldDeclaration = new FieldDeclaration(); in addField()
93 default FieldDeclaration addPrivateField(Class<?> typeClass, String name) { in addPrivateField()
105 default FieldDeclaration addPrivateField(String type, String name) { in addPrivateField()
116 default FieldDeclaration addPublicField(Class<?> typeClass, String name) { in addPublicField()
128 default FieldDeclaration addPublicField(String type, String name) { in addPublicField()
139 default FieldDeclaration addProtectedField(Class<?> typeClass, String name) { in addProtectedField()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/body/
DFieldDeclaration.java52 public final class FieldDeclaration extends BodyDeclaration<FieldDeclaration> implements class
53 NodeWithJavaDoc<FieldDeclaration>,
54 NodeWithElementType<FieldDeclaration>,
55 NodeWithModifiers<FieldDeclaration>,
56 NodeWithVariables<FieldDeclaration> {
66 public FieldDeclaration() { in FieldDeclaration() method in FieldDeclaration
69 …public FieldDeclaration(EnumSet<Modifier> modifiers, Type elementType, VariableDeclarator variable… in FieldDeclaration() method in FieldDeclaration
77 …public FieldDeclaration(EnumSet<Modifier> modifiers, Type elementType, List<VariableDeclarator> va… in FieldDeclaration() method in FieldDeclaration
83 …public FieldDeclaration(EnumSet<Modifier> modifiers, List<AnnotationExpr> annotations, Type elemen… in FieldDeclaration() method in FieldDeclaration
92 …public FieldDeclaration(Range range, EnumSet<Modifier> modifiers, List<AnnotationExpr> annotations… in FieldDeclaration() method in FieldDeclaration
[all …]
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/process/ast/
DFieldLocator.java23 import org.eclipse.jdt.core.dom.FieldDeclaration;
56 if (node instanceof FieldDeclaration) { in matches()
57 FieldDeclaration fieldDeclaration = (FieldDeclaration) node; in matches()
76 public FieldDeclaration find(CompilationUnit cu) { in find()
83 if (bodyDeclaration instanceof FieldDeclaration) { in find()
84 FieldDeclaration fieldDeclaration = (FieldDeclaration) bodyDeclaration; in find()
108 public static List<String> getFieldNames(FieldDeclaration fieldDeclarationNode) { in getFieldNames()
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javaparser_methodcalls_expected_output/
Dcom_github_javaparser_ast_body_FieldDeclaration.txt2 …Line 70) setModifiers(modifiers) ==> com.github.javaparser.ast.body.FieldDeclaration.setModifiers(…
3 …Line 71) setElementType(elementType) ==> com.github.javaparser.ast.body.FieldDeclaration.setElemen…
5 …Line 74) setVariables(aux) ==> com.github.javaparser.ast.body.FieldDeclaration.setVariables(java.u…
6 …Line 78) setModifiers(modifiers) ==> com.github.javaparser.ast.body.FieldDeclaration.setModifiers(…
7 …Line 79) setElementType(elementType) ==> com.github.javaparser.ast.body.FieldDeclaration.setElemen…
8 …Line 80) setVariables(variables) ==> com.github.javaparser.ast.body.FieldDeclaration.setVariables(…
9 …Line 86) setModifiers(modifiers) ==> com.github.javaparser.ast.body.FieldDeclaration.setModifiers(…
10 …Line 87) setElementType(elementType) ==> com.github.javaparser.ast.body.FieldDeclaration.setElemen…
11 …Line 88) setVariables(variables) ==> com.github.javaparser.ast.body.FieldDeclaration.setVariables(…
12 …rayBracketPairsAfterElementType) ==> com.github.javaparser.ast.body.FieldDeclaration.setArrayBrack…
[all …]
Dcom_github_javaparser_ast_nodeTypes_NodeWithMembers.txt7 …Line 77) fieldDeclaration.getVariables() ==> com.github.javaparser.ast.body.FieldDeclaration.getVa…
9 …numSet.noneOf(Modifier.class)))) ==> com.github.javaparser.ast.body.FieldDeclaration.setModifiers(…
99 …Line 267) getMembers().stream().filter(m -> m instanceof FieldDeclaration && ((FieldDeclaration) m…
100 …Line 267) getMembers().stream().filter(m -> m instanceof FieldDeclaration && ((FieldDeclaration) m…
101 …Line 267) getMembers().stream().filter(m -> m instanceof FieldDeclaration && ((FieldDeclaration) m…
104 …Line 268) ((FieldDeclaration) m).getVariables().stream().anyMatch(var -> var.getId().getName().equ…
105 Line 268) ((FieldDeclaration) m).getVariables().stream() ==> java.util.Collection.stream()
106 …Line 268) ((FieldDeclaration) m).getVariables() ==> com.github.javaparser.ast.body.FieldDeclaratio…
110 …leList(getMembers().stream().filter(m -> m instanceof FieldDeclaration).map(m -> (FieldDeclaration
111 …e 279) getMembers().stream().filter(m -> m instanceof FieldDeclaration).map(m -> (FieldDeclaration
[all …]
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/
DFieldDeclarationTransformationsTest.java25 import com.github.javaparser.ast.body.FieldDeclaration;
37 protected FieldDeclaration consider(String code) { in consider()
48 FieldDeclaration it = consider("int A;"); in addingModifiers()
55 FieldDeclaration it = consider("public int A;"); in removingModifiers()
62 FieldDeclaration it = consider("int A;"); in replacingModifiers()
69 FieldDeclaration it = consider("int a, b;"); in changingTypes()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/body/
DFieldDeclaration.java37 public final class FieldDeclaration extends BodyDeclaration implements DocumentableNode { class
45 public FieldDeclaration() { in FieldDeclaration() method in FieldDeclaration
48 public FieldDeclaration(int modifiers, Type type, VariableDeclarator variable) { in FieldDeclaration() method in FieldDeclaration
56 public FieldDeclaration(int modifiers, Type type, List<VariableDeclarator> variables) { in FieldDeclaration() method in FieldDeclaration
62 …public FieldDeclaration(int modifiers, List<AnnotationExpr> annotations, Type type, List<VariableD… in FieldDeclaration() method in FieldDeclaration
69 …public FieldDeclaration(int beginLine, int beginColumn, int endLine, int endColumn, int modifiers,… in FieldDeclaration() method in FieldDeclaration
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/builders/
DNodeWithMembersBuildersTest.java42FieldDeclaration addField = classDeclaration.addField(int.class, "fieldName", Modifier.PRIVATE); in testAddField()
117FieldDeclaration addField = classDeclaration.addField(int.class, "fieldName", Modifier.PRIVATE); in testGetFieldWithName()
119 FieldDeclaration fieldByName = classDeclaration.getFieldByName("fieldName").get(); in testGetFieldWithName()
125FieldDeclaration firstField = classDeclaration.addField(int.class, "fieldName", Modifier.PRIVATE); in testGetFields()
126FieldDeclaration secondField = classDeclaration.addField(float.class, "secondField", Modifier.PRIV… in testGetFields()
128 List<FieldDeclaration> fields = classDeclaration.getFields(); in testGetFields()
DFieldDeclarationBuildersTest.java44 new FieldDeclaration().createGetter(); in testOrphanFieldGetter()
49 new FieldDeclaration().createSetter(); in testOrphanFieldSetter()
108 FieldDeclaration myPrivateField = testClass.addPrivateField(int.class, "myField"); in testCreateGetterWithANonValidField()
115 FieldDeclaration myPrivateField = testClass.addPrivateField(int.class, "myField"); in testCreateSetterWithANonValidField()
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javaparser_expected_output/
Dcom_github_javaparser_PositionUtils.txt41 Line 111) node instanceof FieldDeclaration ==> boolean
42 …Line 112) FieldDeclaration casted = (FieldDeclaration) node ==> com.github.javaparser.ast.body.Fie…
43 Line 112) (FieldDeclaration) node ==> com.github.javaparser.ast.body.FieldDeclaration
Dcom_github_javaparser_ASTHelper.txt27 …Line 124) FieldDeclaration ret = new FieldDeclaration(modifiers, type, variables) ==> com.github.j…
28 …Line 124) new FieldDeclaration(modifiers, type, variables) ==> com.github.javaparser.ast.body.Fiel…
29 Line 125) ret ==> com.github.javaparser.ast.body.FieldDeclaration
34 …eateFieldDeclaration(modifiers, type, variable) ==> com.github.javaparser.ast.body.FieldDeclaration
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/
DFieldSymbolDeclarator.java19 import com.github.javaparser.ast.body.FieldDeclaration;
31 public class FieldSymbolDeclarator extends AbstractSymbolDeclarator<FieldDeclaration> {
33 public FieldSymbolDeclarator(FieldDeclaration wrappedNode, TypeSolver typeSolver) { in FieldSymbolDeclarator()
DVariableSymbolDeclarator.java19 import com.github.javaparser.ast.body.FieldDeclaration;
39 if (p instanceof FieldDeclaration) { in VariableSymbolDeclarator()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/
DTransformationsTest.java4 import com.github.javaparser.ast.body.FieldDeclaration;
81FieldDeclaration fd = (FieldDeclaration) cu.getClassByName("A").get().getMember(0).asFieldDeclarat… in example8()
89FieldDeclaration fd = (FieldDeclaration) cu.getClassByName("A").get().getMember(0).asFieldDeclarat… in example9()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/
DPositionUtils.java27 import com.github.javaparser.ast.body.FieldDeclaration;
111 } else if (node instanceof FieldDeclaration) { in beginNodeWithoutConsideringAnnotations()
112 FieldDeclaration casted = (FieldDeclaration) node; in beginNodeWithoutConsideringAnnotations()
DASTHelper.java27 import com.github.javaparser.ast.body.FieldDeclaration;
121 …public static FieldDeclaration createFieldDeclaration(int modifiers, Type type, VariableDeclarator… in createFieldDeclaration()
124 FieldDeclaration ret = new FieldDeclaration(modifiers, type, variables); in createFieldDeclaration()
139 public static FieldDeclaration createFieldDeclaration(int modifiers, Type type, String name) { in createFieldDeclaration()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/
DJavaParserFieldDeclaration.java42 private com.github.javaparser.ast.body.FieldDeclaration wrappedNode;
52 …equireParentNode(variableDeclarator) instanceof com.github.javaparser.ast.body.FieldDeclaration)) { in JavaParserFieldDeclaration()
55 …this.wrappedNode = (com.github.javaparser.ast.body.FieldDeclaration) requireParentNode(variableDec… in JavaParserFieldDeclaration()
99 public com.github.javaparser.ast.body.FieldDeclaration getWrappedNode() { in getWrappedNode()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/
DIssue347.java6 import com.github.javaparser.ast.body.FieldDeclaration;
48FieldDeclaration fieldDeclaration = Navigator.findNodeOfGivenClass(cu, FieldDeclaration.class); in resolvingReferenceToEnumDeclarationInSameFile()
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_javaparsermodel_declarations_JavaParserAnonymousClassDeclaration.txt42 …Line 111) findMembersOfKind(com.github.javaparser.ast.body.FieldDeclaration.class).stream().flatMa…
43 …Line 111) findMembersOfKind(com.github.javaparser.ast.body.FieldDeclaration.class).stream().flatMa…
44 …Line 111) findMembersOfKind(com.github.javaparser.ast.body.FieldDeclaration.class).stream() ==> ja…
45 …Line 111) findMembersOfKind(com.github.javaparser.ast.body.FieldDeclaration.class) ==> com.github.…
48 Line 114) field.getVariables() ==> com.github.javaparser.ast.body.FieldDeclaration.getVariables()
61 …Line 128) ImmutableList.<FieldDeclaration>builder().addAll(myFields).addAll(superClassFields).addA…
62 …Line 128) ImmutableList.<FieldDeclaration>builder().addAll(myFields).addAll(superClassFields).addA…
63 …Line 128) ImmutableList.<FieldDeclaration>builder().addAll(myFields).addAll(superClassFields) ==> …
64 …Line 128) ImmutableList.<FieldDeclaration>builder().addAll(myFields) ==> com.google.common.collect…
65 …Line 128) ImmutableList.<FieldDeclaration>builder() ==> com.google.common.collect.ImmutableList.bu…
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/bdd/steps/
DCommentParsingSteps.java355FieldDeclaration fieldUnderTest = getMemberByTypeAndPosition(classUnderTest, fieldPosition - 1, in thenFieldInClassContainsComments()
356 FieldDeclaration.class); in thenFieldInClassContainsComments()
363FieldDeclaration fieldUnderTest = getMemberByTypeAndPosition(classUnderTest, fieldPosition - 1, in thenFieldInClassIsNotCommented()
364 FieldDeclaration.class); in thenFieldInClassIsNotCommented()
371FieldDeclaration fieldUnderTest = getMemberByTypeAndPosition(classUnderTest, fieldPosition - 1, in thenFieldInClassIsCommented()
372 FieldDeclaration.class); in thenFieldInClassIsCommented()
380FieldDeclaration fieldUnderTest = getMemberByTypeAndPosition(classUnderTest, fieldPosition - 1, in thenVariableValueOfFieldInClassIsCommented()
381 FieldDeclaration.class); in thenVariableValueOfFieldInClassIsCommented()
403 assertThat(commentUnderTest.getCommentedNode().get(), instanceOf(FieldDeclaration.class)); in thenCommentInCompilationUnitCommentedNodeIsFieldDeclaration()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/
DNodeListTest.java26 import com.github.javaparser.ast.body.FieldDeclaration;
71 private FieldDeclaration createIntField(String name) {
72 return new FieldDeclaration(EnumSet.noneOf(Modifier.class), PrimitiveType.intType(), name);
230 FieldDeclaration clone = (FieldDeclaration) bodyDeclaration.clone();
248 …cd.getMembers().removeIf(m -> ((FieldDeclaration) m).getVariable(0).getName().getIdentifier().leng…
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DArrayExprTest.java4 import com.github.javaparser.ast.body.FieldDeclaration;
20FieldDeclaration field = JavaParser.parse(code).getClassByName("A").get().getFieldByName("toExamin… in verifyAnArrayAccessExprTypeIsCalculatedProperly()
/external/dexmaker/dexmaker/src/main/java/com/android/dx/
DDexMaker.java319 FieldDeclaration fieldDeclaration = new FieldDeclaration(fieldId, flags, staticValue); in declare()
561 private final Map<FieldId, FieldDeclaration> fields = new LinkedHashMap<>();
591 for (FieldDeclaration field : fields.values()) { in toClassDefItem()
605 static class FieldDeclaration { class in DexMaker
610 FieldDeclaration(FieldId<?, ?> fieldId, int accessFlags, Object staticValue) { in FieldDeclaration() method in DexMaker.FieldDeclaration

12345