Home
last modified time | relevance | path

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

1234567891011

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/body/
DMethodDeclaration.java58MethodDeclaration extends CallableDeclaration<MethodDeclaration> implements NodeWithType<MethodDec… class
65 public MethodDeclaration() { in MethodDeclaration() method in MethodDeclaration
69 … public MethodDeclaration(final NodeList<Modifier> modifiers, final Type type, final String name) { in MethodDeclaration() method in MethodDeclaration
73 …public MethodDeclaration(final NodeList<Modifier> modifiers, final String name, final Type type, f… in MethodDeclaration() method in MethodDeclaration
77 …public MethodDeclaration(final NodeList<Modifier> modifiers, final NodeList<AnnotationExpr> annota… in MethodDeclaration() method in MethodDeclaration
82 …public MethodDeclaration(final NodeList<Modifier> modifiers, final NodeList<AnnotationExpr> annota… in MethodDeclaration() method in MethodDeclaration
90 …public MethodDeclaration(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationE… in MethodDeclaration() method in MethodDeclaration
121 public MethodDeclaration setBody(final BlockStmt body) { in setBody()
123 return (MethodDeclaration) this; in setBody()
139 public MethodDeclaration setType(final Type type) { in setType()
[all …]
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/
DMethodDeclarationTest.java23MethodDeclaration method = parseBodyDeclaration("void InnerInner(@mypackage.Anno Source.@mypackage… in explicitReceiverParameters1()
29 MethodDeclaration method = parseBodyDeclaration("void x(A this) { }").asMethodDeclaration(); in explicitReceiverParameters2()
35 MethodDeclaration method = parseBodyDeclaration("void x(A that) { }").asMethodDeclaration(); in explicitReceiverParameters3()
41MethodDeclaration method1 = parseBodyDeclaration("void x(String a) { }").asMethodDeclaration(); in signaturesEqual()
42 MethodDeclaration method2 = parseBodyDeclaration("int x(String z);").asMethodDeclaration(); in signaturesEqual()
48MethodDeclaration method1 = parseBodyDeclaration("void x(List<Long> a) { }").asMethodDeclaration(); in signaturesEqualWhenGenericsDiffer()
49MethodDeclaration method2 = parseBodyDeclaration("void x(List<Integer> a) { }").asMethodDeclaratio… in signaturesEqualWhenGenericsDiffer()
55MethodDeclaration method1 = parseBodyDeclaration("void x(@A @B List a) { }").asMethodDeclaration(); in signaturesEqualWhenAnnotationsDiffer()
56MethodDeclaration method2 = parseBodyDeclaration("void x(@C List a) { }").asMethodDeclaration(); in signaturesEqualWhenAnnotationsDiffer()
62MethodDeclaration method1 = parseBodyDeclaration("void x(String a) { }").asMethodDeclaration(); in signaturesDifferentName()
[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()
/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-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/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-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-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/
DMethodDeclarationTransformationsTest.java26 import com.github.javaparser.ast.body.MethodDeclaration;
55 protected MethodDeclaration consider(String code) { in consider()
64 MethodDeclaration it = consider("void A(){}"); in settingName()
91 MethodDeclaration methodDeclaration = cu.findAll(MethodDeclaration.class).get(1); in removingDuplicateJavaDocComment()
131 MethodDeclaration methodDeclaration = cu.findAll(MethodDeclaration.class).get(1); in replacingDuplicateJavaDocComment()
177 MethodDeclaration methodDeclaration = cu.findAll(MethodDeclaration.class).get(1); in removingDuplicateComment()
201 MethodDeclaration it = consider("void A(){}"); in addingModifiers()
208 MethodDeclaration it = consider("public void A(){}"); in removingModifiers()
215 MethodDeclaration it = consider("@Override public void A(){}"); in removingModifiersWithExistingAnnotationsShort()
222 MethodDeclaration it = consider("public static void a(){}"); in removingPublicModifierFromPublicStaticMethod()
[all …]
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/builders/
DFieldDeclarationBuildersTest.java55 assertEquals(MethodDeclaration.class, testClass.getMember(1).getClass()); in testCreateGetterInAClass()
56 List<MethodDeclaration> methodsWithName = testClass.getMethodsByName("getMyField"); in testCreateGetterInAClass()
58 MethodDeclaration getter = methodsWithName.get(0); in testCreateGetterInAClass()
68 assertEquals(MethodDeclaration.class, testClass.getMember(1).getClass()); in testCreateSetterInAClass()
69 List<MethodDeclaration> methodsWithName = testClass.getMethodsByName("setMyField"); in testCreateSetterInAClass()
71 MethodDeclaration setter = methodsWithName.get(0); in testCreateSetterInAClass()
82 assertEquals(MethodDeclaration.class, testEnum.getMember(1).getClass()); in testCreateGetterInEnum()
83 List<MethodDeclaration> methodsWithName = testEnum.getMethodsByName("getMyField"); in testCreateGetterInEnum()
85 MethodDeclaration getter = methodsWithName.get(0); in testCreateGetterInEnum()
95 assertEquals(MethodDeclaration.class, testEnum.getMember(1).getClass()); in testCreateSetterInEnum()
[all …]
DNodeWithMembersBuildersTest.java49 MethodDeclaration addMethod = classDeclaration.addMethod("foo", PUBLIC); in testAddMethod()
76 MethodDeclaration addMethod = classDeclaration.addMethod("foo", PUBLIC); in testGetMethodsWithName()
77MethodDeclaration addMethod2 = classDeclaration.addMethod("foo", PUBLIC).addParameter(int.class, "… in testGetMethodsWithName()
78 List<MethodDeclaration> methodsByName = classDeclaration.getMethodsByName("foo"); in testGetMethodsWithName()
86 MethodDeclaration addMethod = classDeclaration.addMethod("foo", PUBLIC); in testGetMethods()
87MethodDeclaration addMethod2 = classDeclaration.addMethod("foo", PUBLIC).addParameter(int.class, "… in testGetMethods()
89 List<MethodDeclaration> methods = classDeclaration.getMethods(); in testGetMethods()
99MethodDeclaration addMethod2 = classDeclaration.addMethod("foo", PUBLIC).addParameter(int.class, "… in testGetMethodsWithParameterTypes()
102MethodDeclaration methodWithListParam = classDeclaration.addMethod("fooList", PUBLIC).addParameter… in testGetMethodsWithParameterTypes()
103MethodDeclaration addMethod3 = classDeclaration.addMethod("foo2", PUBLIC).addParameter(int.class, … in testGetMethodsWithParameterTypes()
[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/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionMethodResolutionLogic.java20 import com.github.javaparser.symbolsolver.model.declarations.MethodDeclaration;
45 …static SymbolReference<MethodDeclaration> solveMethod(String name, List<Type> parameterTypes, bool… in solveMethod()
48 List<MethodDeclaration> methods = new ArrayList<>(); in solveMethod()
52MethodDeclaration methodDeclaration = new ReflectionMethodDeclaration(method, typeSolver); in solveMethod()
57 …SymbolReference<MethodDeclaration> ref = MethodResolutionLogic.solveMethodInType(ancestor.getTypeD… in solveMethod()
65 …SymbolReference<MethodDeclaration> ref = MethodResolutionLogic.solveMethodInType(objectClass.getTy… in solveMethod()
89MethodDeclaration methodDeclaration = new ReflectionMethodDeclaration(method, typeSolver); in solveMethodAsUsage()
97 …SymbolReference<MethodDeclaration> ref = MethodResolutionLogic.solveMethodInType(ancestor.getTypeD… in solveMethodAsUsage()
99 MethodDeclaration correspondingDeclaration = ref.getCorrespondingDeclaration(); in solveMethodAsUsage()
107 …SymbolReference<MethodDeclaration> ref = MethodResolutionLogic.solveMethodInType(objectClass.getTy… in solveMethodAsUsage()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DLambdaResolutionTest.java20 import com.github.javaparser.ast.body.MethodDeclaration;
39 MethodDeclaration method = Navigator.demandMethod(clazz, "lambdaMap"); in lambdaMapParameter()
53 MethodDeclaration method = Navigator.demandMethod(clazz, "lambdaMap"); in personsStream()
67 MethodDeclaration m1 = Navigator.demandMethod(clazz, "lambdaMap"); in lambdaMap()
68 MethodDeclaration m2 = Navigator.demandMethod(clazz, "lambdaMap2"); in lambdaMap()
85 MethodDeclaration method = Navigator.demandMethod(clazz, "reduce"); in lambdaReduce()
98 MethodDeclaration method = Navigator.demandMethod(clazz, "print"); in lambdaPrint()
111 MethodDeclaration method = Navigator.demandMethod(clazz, "bifunc"); in lambdaBifunc()
124 MethodDeclaration method = Navigator.demandMethod(clazz, "lambdaMap"); in lambdaCollectParam()
139 MethodDeclaration method = Navigator.demandMethod(clazz, "lambdaMap"); in lambdaCollect()
[all …]
DGenericsResolutionTest.java21 import com.github.javaparser.ast.body.MethodDeclaration;
143 MethodDeclaration method = Navigator.demandMethod(clazz, "foo1"); in resolveUsageOfGenericFieldSimpleCase()
175 MethodDeclaration method = Navigator.demandMethod(clazz, "foo2"); in resolveUsageOfGenericFieldAdvancedCase()
192 MethodDeclaration method = Navigator.demandMethod(clazz, "caller"); in resolveUsageOfMethodOfGenericClass()
204 MethodDeclaration method = Navigator.demandMethod(clazz, "unbounded"); in resolveUsageOfMethodOfGenericClassWithUnboundedWildcard()
217 MethodDeclaration method = Navigator.demandMethod(clazz, "bounded"); in resolveUsageOfMethodOfGenericClassWithExtendsWildcard()
230 MethodDeclaration method = Navigator.demandMethod(clazz, "foo"); in resolveElementOfList()
244 MethodDeclaration method = Navigator.demandMethod(clazz, "annotations"); in resolveElementOfListAdvancedExample()
258 MethodDeclaration method = Navigator.demandMethod(clazz, "visit"); in genericsInheritance()
274 MethodDeclaration method = Navigator.demandMethod(clazz, "visit"); in methodTypeParams()
[all …]
DContextTest.java24 import com.github.javaparser.ast.body.MethodDeclaration;
70 MethodDeclaration method1 = Navigator.demandMethod(referencesToField, "method1"); in resolveDeclaredFieldReference()
86 MethodDeclaration method1 = Navigator.demandMethod(referencesToField, "method2"); in resolveInheritedFieldReference()
102 MethodDeclaration method1 = Navigator.demandMethod(referencesToField, "aMethod"); in resolveParameterReference()
117 MethodDeclaration method = Navigator.demandMethod(referencesToField, "findType"); in resolveReferenceToImportedType()
140 MethodDeclaration method = Navigator.demandMethod(referencesToField, "findType"); in resolveReferenceUsingQualifiedName()
164 MethodDeclaration method = Navigator.demandMethod(referencesToField, "findType"); in resolveReferenceToClassesInTheSamePackage()
187 MethodDeclaration method = Navigator.demandMethod(referencesToField, "findType"); in resolveReferenceToClassInJavaLang()
211 MethodDeclaration method = Navigator.demandMethod(referencesToField, "findType"); in resolveReferenceToMethod()
230 MethodDeclaration method = Navigator.demandMethod(referencesToField, "findType"); in resolveCascadeOfReferencesToMethod()
[all …]
DFieldsResolutionTest.java24 import com.github.javaparser.ast.body.MethodDeclaration;
59 MethodDeclaration method = Navigator.demandMethod(clazz, "getLabel2"); in accessClassFieldThroughThis()
71 MethodDeclaration method = Navigator.demandMethod(clazz, "setLabel"); in accessClassFieldThroughThisWithCompetingSymbolInParentContext()
89 MethodDeclaration method = Navigator.demandMethod(enumDecl, "getLabel"); in accessEnumFieldThroughThis()
101 MethodDeclaration method = Navigator.demandMethod(enumDecl, "getLabel2"); in accessEnumMethodThroughThis()
113 MethodDeclaration method = Navigator.demandMethod(clazz, "fieldTest"); in accessClassFieldThroughSuper()
129 MethodDeclaration method = Navigator.demandMethod(clazz, "getLabel2"); in resolveClassFieldThroughThis()
151 MethodDeclaration method = Navigator.demandMethod(clazz, "fieldTest"); in resolveClassFieldThroughSuper()
174 MethodDeclaration method = Navigator.demandMethod(clazz, "getFoo"); in resolveClassFieldOfClassExtendingUnknownClass1()
196 MethodDeclaration method = Navigator.demandMethod(clazz, "getFoo2"); in resolveClassFieldOfClassExtendingUnknownClass2()
[all …]
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/
DTransformationsTest.java7 import com.github.javaparser.ast.body.MethodDeclaration;
113 MethodDeclaration md = cu.getClassByName("A").get().getMember(0).asMethodDeclaration(); in exampleParam1()
121 MethodDeclaration md = cu.getClassByName("A").get().getMember(0).asMethodDeclaration(); in exampleParam2()
130 MethodDeclaration md = cu.getClassByName("A").get().getMember(0).asMethodDeclaration(); in exampleParam3()
138 MethodDeclaration md = cu.getClassByName("A").get().getMember(0).asMethodDeclaration(); in exampleParam4()
146 MethodDeclaration md = cu.getClassByName("A").get().getMember(0).asMethodDeclaration(); in exampleParam5()
216MethodDeclaration methodDeclaration = (MethodDeclaration)classOrInterfaceDeclaration.getChildNodes… in addingStatement1()
246MethodDeclaration methodDeclaration = (MethodDeclaration)classOrInterfaceDeclaration.getChildNodes… in addingStatement2()
276MethodDeclaration methodDeclaration = (MethodDeclaration)classOrInterfaceDeclaration.getChildNodes… in addingStatement3()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/comments/
DCommentTest.java27 import com.github.javaparser.ast.body.MethodDeclaration;
93 MethodDeclaration methodDeclaration = cu.findFirst(MethodDeclaration.class).get(); in testReplaceDuplicateJavaDocComment()
135 MethodDeclaration methodDeclaration = cu.findFirst(MethodDeclaration.class).get(); in testRemoveDuplicateComment()
173 MethodDeclaration methodDeclaration = cu.findAll(MethodDeclaration.class).get(1); in testRemoveDuplicateJavaDocComment()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/resolution/
DMethodResolutionLogic.java65 …public static boolean isApplicable(MethodDeclaration method, String name, List<Type> argumentsType… in isApplicable()
69 …private static boolean isApplicable(MethodDeclaration method, String name, List<Type> argumentsTyp… in isApplicable()
342 …private static List<MethodDeclaration> getMethodsWithoutDuplicates(List<MethodDeclaration> methods… in getMethodsWithoutDuplicates()
343 … Set<MethodDeclaration> s = new TreeSet<MethodDeclaration>(new Comparator<MethodDeclaration>() { in getMethodsWithoutDuplicates()
345 public int compare(MethodDeclaration m1, MethodDeclaration m2) { in getMethodsWithoutDuplicates()
354 List<MethodDeclaration> res = new ArrayList<>(); in getMethodsWithoutDuplicates()
356 for (MethodDeclaration md : methods) { in getMethodsWithoutDuplicates()
373 …public static SymbolReference<MethodDeclaration> findMostApplicable(List<MethodDeclaration> method… in findMostApplicable()
374 …SymbolReference<MethodDeclaration> res = findMostApplicable(methods, name, argumentsTypes, typeSol… in findMostApplicable()
381 …public static SymbolReference<MethodDeclaration> findMostApplicable(List<MethodDeclaration> method… in findMostApplicable()
[all …]
/external/javaparser/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/
DManipulationSteps.java29 import com.github.javaparser.ast.body.MethodDeclaration;
145 MethodDeclaration method = new MethodDeclaration(modifiers, new VoidType(), methodName); in whenAStaticMethodCalledReturningIsAddedToClassInTheCompilationUnit()
163MethodDeclaration method = getMethodByPositionAndClassPosition(compilationUnit, methodPosition, cl… in whenABlockStmtIsAddedToMethodInClass()
171MethodDeclaration method = getMethodByPositionAndClassPosition(compilationUnit, methodPosition, cl… in whenHelloWorldIsAddedToTheBodyOfMethodInClass()
182MethodDeclaration method = getMethodByPositionAndClassPosition(compilationUnit, methodPosition, cl… in whenMethodInClassHasItsNameConvertedToUppercase()
189MethodDeclaration method = getMethodByPositionAndClassPosition(compilationUnit, methodPosition, cl… in whenMethodInClassHasAnIntArgumentCalledAdded()
249MethodDeclaration method = getMethodByPositionAndClassPosition(compilationUnit, methodPosition, cl… in thenMethodInClassHasTheName()
257MethodDeclaration method = getMethodByPositionAndClassPosition(compilationUnit, methodPosition, cl… in thenMethodInClassHasArguments()
265MethodDeclaration method = getMethodByPositionAndClassPosition(compilationUnit, methodPosition, cl… in thenMethodInClassParameterIsTypeIntCalled()
273 public void visit(MethodDeclaration n, Void arg) { in visit()
[all …]
DCommentParsingSteps.java286MethodDeclaration methodUnderTest = getMemberByTypeAndPosition(classUnderTest, methodPosition - 1, in thenMethodInClassIsCommented()
287 MethodDeclaration.class); in thenMethodInClassIsCommented()
294MethodDeclaration methodUnderTest = getMemberByTypeAndPosition(classUnderTest, methodPosition - 1, in thenMethodInClassHasTotalContainedComments()
295 MethodDeclaration.class); in thenMethodInClassHasTotalContainedComments()
302MethodDeclaration methodUnderTest = getMemberByTypeAndPosition(classUnderTest, methodPosition - 1, in thenCommentInMethodInClassIs()
303 MethodDeclaration.class); in thenCommentInMethodInClassIs()
311MethodDeclaration methodUnderTest = getMemberByTypeAndPosition(classUnderTest, methodPosition - 1, in thenMethodInClassHasOrphanComments()
312 MethodDeclaration.class); in thenMethodInClassHasOrphanComments()
319MethodDeclaration methodUnderTest = getMemberByTypeAndPosition(classUnderTest, methodPosition - 1, in thenBlockStatementInMethodInClassHasTotalContainedComments()
320 MethodDeclaration.class); in thenBlockStatementInMethodInClassHasTotalContainedComments()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/
DNodeWithMembers.java268 default MethodDeclaration addMethod(String methodName, Keyword... modifiers) { in addMethod()
269 MethodDeclaration methodDeclaration = new MethodDeclaration(); in addMethod()
303 default List<MethodDeclaration> getMethodsByName(String name) { in getMethodsByName()
314 default List<MethodDeclaration> getMethods() { in getMethods()
316 .filter(m -> m instanceof MethodDeclaration) in getMethods()
317 .map(m -> (MethodDeclaration) m) in getMethods()
328 default List<MethodDeclaration> getMethodsByParameterTypes(String... paramTypes) { in getMethodsByParameterTypes()
341 default List<MethodDeclaration> getMethodsBySignature(String name, String... paramTypes) { in getMethodsBySignature()
354 default List<MethodDeclaration> getMethodsByParameterTypes(Class<?>... paramTypes) { in getMethodsByParameterTypes()
/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()
103 MethodDeclaration method = Navigator.demandMethod(aClass, "fooBar6"); in callingScopedAnonymousClassInnerMethod()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-model/com/github/javaparser/symbolsolver/model/methods/
DMethodUsage.java19 import com.github.javaparser.symbolsolver.model.declarations.MethodDeclaration;
35 private MethodDeclaration declaration;
40 public MethodUsage(MethodDeclaration declaration) { in MethodUsage()
49 public MethodUsage(MethodDeclaration declaration, List<Type> paramTypes, Type returnType) { in MethodUsage()
53 …private MethodUsage(MethodDeclaration declaration, List<Type> paramTypes, Type returnType, TypePar… in MethodUsage()
68 public MethodDeclaration getDeclaration() { in getDeclaration()

1234567891011