Home
last modified time | relevance | path

Searched refs:MethodDeclaration (Results 1 – 25 of 208) sorted by relevance

123456789

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/body/
DMethodDeclaration.java63MethodDeclaration extends CallableDeclaration<MethodDeclaration> implements NodeWithType<MethodDec… class
70 public MethodDeclaration() { in MethodDeclaration() method in MethodDeclaration
74 … public MethodDeclaration(final EnumSet<Modifier> modifiers, final Type type, final String name) { in MethodDeclaration() method in MethodDeclaration
78 …public MethodDeclaration(final EnumSet<Modifier> modifiers, final String name, final Type type, fi… in MethodDeclaration() method in MethodDeclaration
82 …public MethodDeclaration(final EnumSet<Modifier> modifiers, final NodeList<AnnotationExpr> annotat… in MethodDeclaration() method in MethodDeclaration
87 …public MethodDeclaration(final EnumSet<Modifier> modifiers, final NodeList<AnnotationExpr> annotat… in MethodDeclaration() method in MethodDeclaration
95 …public MethodDeclaration(final EnumSet<Modifier> modifiers, final NodeList<AnnotationExpr> annotat… in MethodDeclaration() method in MethodDeclaration
104 …public MethodDeclaration(TokenRange tokenRange, EnumSet<Modifier> modifiers, NodeList<AnnotationEx… in MethodDeclaration() method in MethodDeclaration
135 public MethodDeclaration setBody(final BlockStmt body) { in setBody()
137 return (MethodDeclaration) this; in setBody()
[all …]
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/body/
DMethodDeclarationTest.java24MethodDeclaration method = parseBodyDeclaration("void InnerInner(@mypackage.Anno Source.@mypackage… in explicitReceiverParameters1()
30 MethodDeclaration method = parseBodyDeclaration("void x(A this) { }").asMethodDeclaration(); in explicitReceiverParameters2()
36 MethodDeclaration method = parseBodyDeclaration("void x(A that) { }").asMethodDeclaration(); in explicitReceiverParameters3()
42MethodDeclaration method1 = parseBodyDeclaration("void x(String a) { }").asMethodDeclaration(); in signaturesEqual()
43 MethodDeclaration method2 = parseBodyDeclaration("int x(String z);").asMethodDeclaration(); in signaturesEqual()
49MethodDeclaration method1 = parseBodyDeclaration("void x(List<Long> a) { }").asMethodDeclaration(); in signaturesEqualWhenGenericsDiffer()
50MethodDeclaration method2 = parseBodyDeclaration("void x(List<Integer> a) { }").asMethodDeclaratio… in signaturesEqualWhenGenericsDiffer()
56MethodDeclaration method1 = parseBodyDeclaration("void x(@A @B List a) { }").asMethodDeclaration(); in signaturesEqualWhenAnnotationsDiffer()
57MethodDeclaration method2 = parseBodyDeclaration("void x(@C List a) { }").asMethodDeclaration(); in signaturesEqualWhenAnnotationsDiffer()
63MethodDeclaration method1 = parseBodyDeclaration("void x(String a) { }").asMethodDeclaration(); in signaturesDifferentName()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/body/
DMethodDeclaration.java56 public final class MethodDeclaration extends BodyDeclaration<MethodDeclaration> implements class
57 NodeWithJavaDoc<MethodDeclaration>,
59 NodeWithName<MethodDeclaration>,
60 NodeWithType<MethodDeclaration>,
61 NodeWithElementType<MethodDeclaration>,
62 NodeWithModifiers<MethodDeclaration>,
63 NodeWithParameters<MethodDeclaration>,
64 NodeWithThrowable<MethodDeclaration>,
65 NodeWithBlockStmt<MethodDeclaration> {
87 public MethodDeclaration() { in MethodDeclaration() method in MethodDeclaration
[all …]
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/
DTypeCastingGenerator.java5 import com.github.javaparser.ast.body.MethodDeclaration;
64 …final MethodDeclaration asTypeBaseMethod = (MethodDeclaration) parseBodyDeclaration(f("public %s a… in generateAsType()
65 …final MethodDeclaration asTypeNodeMethod = (MethodDeclaration) parseBodyDeclaration(f("@Override p… in generateAsType()
74 …final MethodDeclaration asTypeBaseMethod = (MethodDeclaration) parseBodyDeclaration(f("public Opti… in generateToType()
75 …final MethodDeclaration asTypeNodeMethod = (MethodDeclaration) parseBodyDeclaration(f("@Override p… in generateToType()
81 …final MethodDeclaration ifTypeBaseMethod = (MethodDeclaration) parseBodyDeclaration(f("public void… in generateIfType()
82 …final MethodDeclaration ifTypeNodeMethod = (MethodDeclaration) parseBodyDeclaration(f("public void… in generateIfType()
91 …final MethodDeclaration baseIsTypeMethod = (MethodDeclaration) parseBodyDeclaration(f("public bool… in generateIsType()
92 …final MethodDeclaration overriddenIsTypeMethod = (MethodDeclaration) parseBodyDeclaration(f("@Over… in generateIsType()
DRemoveMethodGenerator.java6 import com.github.javaparser.ast.body.MethodDeclaration;
25MethodDeclaration removeNodeMethod = (MethodDeclaration) parseBodyDeclaration("public boolean remo… in generateNode()
79 …final MethodDeclaration removeMethod = (MethodDeclaration) parseBodyDeclaration(f("public %s %s() … in generateRemoveMethodForAttribute()
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javaparser_methodcalls_expected_output/
Dcom_github_javaparser_ast_body_MethodDeclaration.txt2 …Line 91) setModifiers(modifiers) ==> com.github.javaparser.ast.body.MethodDeclaration.setModifiers…
3 …Line 92) setElementType(elementType) ==> com.github.javaparser.ast.body.MethodDeclaration.setEleme…
4 …Line 93) setName(name) ==> com.github.javaparser.ast.body.MethodDeclaration.setName(java.lang.Stri…
5 …Line 98) setModifiers(modifiers) ==> com.github.javaparser.ast.body.MethodDeclaration.setModifiers…
6 …Line 99) setElementType(elementType) ==> com.github.javaparser.ast.body.MethodDeclaration.setEleme…
7 …Line 100) setName(name) ==> com.github.javaparser.ast.body.MethodDeclaration.setName(java.lang.Str…
8 …Line 101) setParameters(parameters) ==> com.github.javaparser.ast.body.MethodDeclaration.setParame…
9 …Line 115) setModifiers(modifiers) ==> com.github.javaparser.ast.body.MethodDeclaration.setModifier…
10 …Line 116) setTypeParameters(typeParameters) ==> com.github.javaparser.ast.body.MethodDeclaration.s…
11 …Line 117) setElementType(elementType) ==> com.github.javaparser.ast.body.MethodDeclaration.setElem…
[all …]
Dcom_github_javaparser_ast_nodeTypes_NodeWithMembers.txt23 …dDeclaration.setName(methodName) ==> com.github.javaparser.ast.body.MethodDeclaration.setName(java…
24 …odDeclaration.setType(VOID_TYPE) ==> com.github.javaparser.ast.body.MethodDeclaration.setType(com.…
25 …numSet.noneOf(Modifier.class)))) ==> com.github.javaparser.ast.body.MethodDeclaration.setModifiers…
49 …().filter(m -> m instanceof MethodDeclaration && ((MethodDeclaration) m).getName().equals(name)).m…
50 …().filter(m -> m instanceof MethodDeclaration && ((MethodDeclaration) m).getName().equals(name)).m…
51 …Line 212) getMembers().stream().filter(m -> m instanceof MethodDeclaration && ((MethodDeclaration)…
54 …Line 213) ((MethodDeclaration) m).getName().equals(name) ==> java.lang.String.equals(java.lang.Obj…
55 …Line 213) ((MethodDeclaration) m).getName() ==> com.github.javaparser.ast.body.MethodDeclaration.g…
57 …eList(getMembers().stream().filter(m -> m instanceof MethodDeclaration).map(m -> (MethodDeclaratio…
58 … 223) getMembers().stream().filter(m -> m instanceof MethodDeclaration).map(m -> (MethodDeclaratio…
[all …]
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/
DMethodDeclarationTransformationsTest.java25 import com.github.javaparser.ast.body.MethodDeclaration;
41 protected MethodDeclaration consider(String code) { in consider()
50 MethodDeclaration it = consider("void A(){}"); in settingName()
61 MethodDeclaration it = consider("void A(){}"); in addingModifiers()
68 MethodDeclaration it = consider("public void A(){}"); in removingModifiers()
75 MethodDeclaration it = consider("public void A(){}"); in replacingModifiers()
84 MethodDeclaration it = consider("void foo(){}"); in addingParameters()
91 MethodDeclaration it = consider("public void foo(double d){}"); in removingOnlyParameter()
98 MethodDeclaration it = consider("public void foo(double d, float f){}"); in removingFirstParameterOfMany()
105 MethodDeclaration it = consider("public void foo(double d, float f){}"); in removingLastParameterOfMany()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/nodeTypes/
DNodeWithMembers.java20 import com.github.javaparser.ast.body.MethodDeclaration;
162 default MethodDeclaration addMethod(String methodName, Modifier... modifiers) { in addMethod()
163 MethodDeclaration methodDeclaration = new MethodDeclaration(); in addMethod()
211 default List<MethodDeclaration> getMethodsByName(String name) { in getMethodsByName()
213 … .filter(m -> m instanceof MethodDeclaration && ((MethodDeclaration) m).getName().equals(name)) in getMethodsByName()
214 .map(m -> (MethodDeclaration) m).collect(toList()); in getMethodsByName()
222 default List<MethodDeclaration> getMethods() { in getMethods()
224 .filter(m -> m instanceof MethodDeclaration) in getMethods()
225 .map(m -> (MethodDeclaration) m) in getMethods()
236 default List<MethodDeclaration> getMethodsByParameterTypes(String... paramTypes) { in getMethodsByParameterTypes()
[all …]
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/builders/
DFieldDeclarationBuildersTest.java56 assertEquals(MethodDeclaration.class, testClass.getMember(1).getClass()); in testCreateGetterInAClass()
57 List<MethodDeclaration> methodsWithName = testClass.getMethodsByName("getMyField"); in testCreateGetterInAClass()
59 MethodDeclaration getter = methodsWithName.get(0); in testCreateGetterInAClass()
69 assertEquals(MethodDeclaration.class, testClass.getMember(1).getClass()); in testCreateSetterInAClass()
70 List<MethodDeclaration> methodsWithName = testClass.getMethodsByName("setMyField"); in testCreateSetterInAClass()
72 MethodDeclaration setter = methodsWithName.get(0); in testCreateSetterInAClass()
83 assertEquals(MethodDeclaration.class, testEnum.getMember(1).getClass()); in testCreateGetterInEnum()
84 List<MethodDeclaration> methodsWithName = testEnum.getMethodsByName("getMyField"); in testCreateGetterInEnum()
86 MethodDeclaration getter = methodsWithName.get(0); in testCreateGetterInEnum()
96 assertEquals(MethodDeclaration.class, testEnum.getMember(1).getClass()); in testCreateSetterInEnum()
[all …]
DNodeWithMembersBuildersTest.java50 MethodDeclaration addMethod = classDeclaration.addMethod("foo", Modifier.PUBLIC); in testAddMethod()
77 MethodDeclaration addMethod = classDeclaration.addMethod("foo", Modifier.PUBLIC); in testGetMethodsWithName()
78MethodDeclaration addMethod2 = classDeclaration.addMethod("foo", Modifier.PUBLIC).addParameter(int… in testGetMethodsWithName()
79 List<MethodDeclaration> methodsByName = classDeclaration.getMethodsByName("foo"); in testGetMethodsWithName()
87 MethodDeclaration addMethod = classDeclaration.addMethod("foo", Modifier.PUBLIC); in testGetMethods()
88MethodDeclaration addMethod2 = classDeclaration.addMethod("foo", Modifier.PUBLIC).addParameter(int… in testGetMethods()
90 List<MethodDeclaration> methods = classDeclaration.getMethods(); in testGetMethods()
100MethodDeclaration addMethod2 = classDeclaration.addMethod("foo", Modifier.PUBLIC).addParameter(int… in testGetMethodsWithParameterTypes()
103MethodDeclaration methodWithListParam = classDeclaration.addMethod("fooList", Modifier.PUBLIC).add… in testGetMethodsWithParameterTypes()
104MethodDeclaration addMethod3 = classDeclaration.addMethod("foo2", Modifier.PUBLIC).addParameter(in… in testGetMethodsWithParameterTypes()
[all …]
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/
DTransformationsTest.java5 import com.github.javaparser.ast.body.MethodDeclaration;
104MethodDeclaration md = (MethodDeclaration) cu.getClassByName("A").get().getMember(0).asMethodDecla… in exampleParam1()
112MethodDeclaration md = (MethodDeclaration) cu.getClassByName("A").get().getMember(0).asMethodDecla… in exampleParam2()
121MethodDeclaration md = (MethodDeclaration) cu.getClassByName("A").get().getMember(0).asMethodDecla… in exampleParam3()
129MethodDeclaration md = (MethodDeclaration) cu.getClassByName("A").get().getMember(0).asMethodDecla… in exampleParam4()
137MethodDeclaration md = (MethodDeclaration) cu.getClassByName("A").get().getMember(0).asMethodDecla… in exampleParam5()
DLexicalPreservingPrinterTest.java90 MethodDeclaration md = classA.getMethodsByName("foo").get(0); in checkNodeTextCreatedForMethod()
102 MethodDeclaration md = classA.getMethodsByName("foo").get(0); in checkNodeTextCreatedForMethodParameter()
115 MethodDeclaration md = classA.getMethodsByName("foo").get(0); in checkNodeTextCreatedForPrimitiveType()
304 MethodDeclaration m = cu.getClassByName("A").get().getMethodsByName("foo").get(0); in printASimpleMethodAddingAParameterToAMethodWithZeroParameters()
314 MethodDeclaration m = cu.getClassByName("A").get().getMethodsByName("foo").get(0); in printASimpleMethodAddingAParameterToAMethodWithOneParameter()
324 MethodDeclaration m = cu.getClassByName("A").get().getMethodsByName("foo").get(0); in printASimpleMethodRemovingAParameterToAMethodWithOneParameter()
334 MethodDeclaration m = cu.getClassByName("A").get().getMethodsByName("foo").get(0); in printASimpleMethodRemovingParameterOneFromMethodWithTwoParameters()
344 MethodDeclaration m = cu.getClassByName("A").get().getMethodsByName("foo").get(0); in printASimpleMethodRemovingParameterTwoFromMethodWithTwoParameters()
359 MethodDeclaration m = cu.getClassByName("A").get().getMethodsByName("foo").get(0); in printASimpleMethodAddingAStatement()
530 if (member instanceof MethodDeclaration) { in handleOverrideAnnotation()
[all …]
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/process/ast/
DMethodLocator.java23 import org.eclipse.jdt.core.dom.MethodDeclaration;
53 if (node instanceof MethodDeclaration) { in matches()
59 MethodDeclaration methodDeclaration = (MethodDeclaration) node; in matches()
69 public MethodDeclaration find(CompilationUnit cu) { in find()
76 if (bodyDeclaration instanceof MethodDeclaration) { in find()
77 MethodDeclaration methodDeclaration = (MethodDeclaration) bodyDeclaration; in find()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DLambdaResolutionTest.java21 import com.github.javaparser.ast.body.MethodDeclaration;
40 MethodDeclaration method = Navigator.demandMethod(clazz, "lambdaMap"); in lambdaMapParameter()
54 MethodDeclaration method = Navigator.demandMethod(clazz, "lambdaMap"); in personsStream()
68 MethodDeclaration m1 = Navigator.demandMethod(clazz, "lambdaMap"); in lambdaMap()
69 MethodDeclaration m2 = Navigator.demandMethod(clazz, "lambdaMap2"); in lambdaMap()
86 MethodDeclaration method = Navigator.demandMethod(clazz, "reduce"); in lambdaReduce()
99 MethodDeclaration method = Navigator.demandMethod(clazz, "bifunc"); in lambdaBifunc()
112 MethodDeclaration method = Navigator.demandMethod(clazz, "lambdaMap"); in lambdaCollectParam()
127 MethodDeclaration method = Navigator.demandMethod(clazz, "lambdaMap"); in lambdaCollect()
140 MethodDeclaration method = Navigator.demandMethod(clazz, "lambdaSingleReturn"); in lambdaBlockExplicitReturn()
[all …]
DContextTest.java22 import com.github.javaparser.ast.body.MethodDeclaration;
65 MethodDeclaration method1 = Navigator.demandMethod(referencesToField, "method1"); in resolveDeclaredFieldReference()
81 MethodDeclaration method1 = Navigator.demandMethod(referencesToField, "method2"); in resolveInheritedFieldReference()
97 MethodDeclaration method1 = Navigator.demandMethod(referencesToField, "aMethod"); in resolveParameterReference()
112 MethodDeclaration method = Navigator.demandMethod(referencesToField, "findType"); in resolveReferenceToImportedType()
135 MethodDeclaration method = Navigator.demandMethod(referencesToField, "findType"); in resolveReferenceUsingQualifiedName()
159 MethodDeclaration method = Navigator.demandMethod(referencesToField, "findType"); in resolveReferenceToClassesInTheSamePackage()
182 MethodDeclaration method = Navigator.demandMethod(referencesToField, "findType"); in resolveReferenceToClassInJavaLang()
206 MethodDeclaration method = Navigator.demandMethod(referencesToField, "findType"); in resolveReferenceToMethod()
225 MethodDeclaration method = Navigator.demandMethod(referencesToField, "findType"); in resolveCascadeOfReferencesToMethod()
[all …]
DGenericsResolutionTest.java22 import com.github.javaparser.ast.body.MethodDeclaration;
141 MethodDeclaration method = Navigator.demandMethod(clazz, "foo1"); in resolveUsageOfGenericFieldSimpleCase()
173 MethodDeclaration method = Navigator.demandMethod(clazz, "foo2"); in resolveUsageOfGenericFieldAdvancedCase()
190 MethodDeclaration method = Navigator.demandMethod(clazz, "caller"); in resolveUsageOfMethodOfGenericClass()
202 MethodDeclaration method = Navigator.demandMethod(clazz, "foo"); in resolveElementOfList()
216 MethodDeclaration method = Navigator.demandMethod(clazz, "annotations"); in resolveElementOfListAdvancedExample()
230 MethodDeclaration method = Navigator.demandMethod(clazz, "visit"); in genericsInheritance()
246 MethodDeclaration method = Navigator.demandMethod(clazz, "visit"); in methodTypeParams()
259 MethodDeclaration method = Navigator.demandMethod(clazz, "getNodesByType"); in classCastScope()
276 MethodDeclaration method = Navigator.demandMethod(clazz, "getNodesByType"); in classCast()
[all …]
DStatementContextResolutionTest.java21 import com.github.javaparser.ast.body.MethodDeclaration;
42 MethodDeclaration method = Navigator.demandMethod(referencesToField, "foo1"); in resolveLocalVariableInParentOfParent()
54 MethodDeclaration method = Navigator.demandMethod(referencesToField, "foo3"); in resolveLocalVariableInParent()
66 MethodDeclaration method = Navigator.demandMethod(referencesToField, "foo2"); in resolveLocalVariableInSameParent()
78 MethodDeclaration method = Navigator.demandMethod(referencesToField, "foo4"); in resolveLocalAndSeveralAnnidatedLevels()
95 MethodDeclaration method = Navigator.demandMethod(referencesToField, "foo5"); in resolveMethodOnGenericClass()
DFieldsResolutionTest.java21 import com.github.javaparser.ast.body.MethodDeclaration;
46 MethodDeclaration method = Navigator.demandMethod(clazz, "getLabel2"); in accessClassFieldThroughThis()
58 MethodDeclaration method = Navigator.demandMethod(clazz, "setLabel"); in accessClassFieldThroughThisWithCompetingSymbolInParentContext()
76 MethodDeclaration method = Navigator.demandMethod(enumDecl, "getLabel"); in accessEnumFieldThroughThis()
88 MethodDeclaration method = Navigator.demandMethod(enumDecl, "getLabel2"); in accessEnumMethodThroughThis()
100 MethodDeclaration method = Navigator.demandMethod(clazz, "fieldTest"); in accessFieldThroughSuper()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/
DNodeWithMembers.java209 default MethodDeclaration addMethod(String methodName, Modifier... modifiers) { in addMethod()
210 MethodDeclaration methodDeclaration = new MethodDeclaration(); in addMethod()
245 default List<MethodDeclaration> getMethodsByName(String name) { in getMethodsByName()
256 default List<MethodDeclaration> getMethods() { in getMethods()
258 .filter(m -> m instanceof MethodDeclaration) in getMethods()
259 .map(m -> (MethodDeclaration) m) in getMethods()
270 default List<MethodDeclaration> getMethodsByParameterTypes(String... paramTypes) { in getMethodsByParameterTypes()
283 default List<MethodDeclaration> getMethodsBySignature(String name, String... paramTypes) { in getMethodsBySignature()
296 default List<MethodDeclaration> getMethodsByParameterTypes(Class<?>... paramTypes) { in getMethodsByParameterTypes()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/bdd/steps/
DManipulationSteps.java30 import com.github.javaparser.ast.body.MethodDeclaration;
146 MethodDeclaration method = new MethodDeclaration(modifiers, new VoidType(), methodName); in whenAStaticMethodCalledReturningIsAddedToClassInTheCompilationUnit()
164MethodDeclaration method = getMethodByPositionAndClassPosition(compilationUnit, methodPosition, cl… in whenABlockStmtIsAddedToMethodInClass()
172MethodDeclaration method = getMethodByPositionAndClassPosition(compilationUnit, methodPosition, cl… in whenHelloWorldIsAddedToTheBodyOfMethodInClass()
183MethodDeclaration method = getMethodByPositionAndClassPosition(compilationUnit, methodPosition, cl… in whenMethodInClassHasItsNameConvertedToUppercase()
190MethodDeclaration method = getMethodByPositionAndClassPosition(compilationUnit, methodPosition, cl… in whenMethodInClassHasAnIntArgumentCalledAdded()
250MethodDeclaration method = getMethodByPositionAndClassPosition(compilationUnit, methodPosition, cl… in thenMethodInClassHasTheName()
258MethodDeclaration method = getMethodByPositionAndClassPosition(compilationUnit, methodPosition, cl… in thenMethodInClassHasArguments()
266MethodDeclaration method = getMethodByPositionAndClassPosition(compilationUnit, methodPosition, cl… in thenMethodInClassParameterIsTypeIntCalled()
274 public void visit(MethodDeclaration n, Void arg) { in visit()
[all …]
DCommentParsingSteps.java285MethodDeclaration methodUnderTest = getMemberByTypeAndPosition(classUnderTest, methodPosition - 1, in thenMethodInClassIsCommented()
286 MethodDeclaration.class); in thenMethodInClassIsCommented()
293MethodDeclaration methodUnderTest = getMemberByTypeAndPosition(classUnderTest, methodPosition - 1, in thenMethodInClassHasTotalContainedComments()
294 MethodDeclaration.class); in thenMethodInClassHasTotalContainedComments()
301MethodDeclaration methodUnderTest = getMemberByTypeAndPosition(classUnderTest, methodPosition - 1, in thenCommentInMethodInClassIs()
302 MethodDeclaration.class); in thenCommentInMethodInClassIs()
310MethodDeclaration methodUnderTest = getMemberByTypeAndPosition(classUnderTest, methodPosition - 1, in thenMethodInClassHasOrphanComments()
311 MethodDeclaration.class); in thenMethodInClassHasOrphanComments()
318MethodDeclaration methodUnderTest = getMemberByTypeAndPosition(classUnderTest, methodPosition - 1, in thenBlockStatementInMethodInClassHasTotalContainedComments()
319 MethodDeclaration.class); in thenBlockStatementInMethodInClassHasTotalContainedComments()
[all …]
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/wiki_samples/
DMethodChanger_2.java28 import com.github.javaparser.ast.body.MethodDeclaration;
58 if (member instanceof MethodDeclaration) { in changeMethods()
59 MethodDeclaration method = (MethodDeclaration) member; in changeMethods()
66 private static void changeMethod(MethodDeclaration n) { in changeMethod()
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/
DIssue200.java.txt4 class MethodDeclaration {
10 public Solved solve(MethodDeclaration method) {
19 private List<String> foo(MethodDeclaration methodDecl) {
21 .getNodesByType(MethodDeclaration.class)
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/
DJavaParserAnonymousClassDeclarationTest.java8 import com.github.javaparser.ast.body.MethodDeclaration;
24 MethodDeclaration method = Navigator.demandMethod(aClass, "fooBar1"); in anonymousClassAsMethodArgument()
40 MethodDeclaration method = Navigator.demandMethod(aClass, "fooBar2"); in callingSuperClassInnerClassMethod()
56 MethodDeclaration method = Navigator.demandMethod(aClass, "fooBar3"); in callingAnonymousClassInnerMethod()
73 MethodDeclaration method = Navigator.demandMethod(aClass, "fooBar4"); in usingAnonymousSuperClassInnerType()
88 MethodDeclaration method = Navigator.demandMethod(aClass, "fooBar5"); in usingAnonymousClassInnerType()

123456789