Home
last modified time | relevance | path

Searched refs:parseBodyDeclaration (Results 1 – 21 of 21) sorted by relevance

/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/
DMethodDeclarationTest.java5 import static com.github.javaparser.StaticJavaParser.parseBodyDeclaration;
13 parseBodyDeclaration("public <T> @Abc String method() {return null;}"); in annotationsAllowedAfterGenericsAndBeforeReturnType()
18 parseBodyDeclaration("public @Abc <T> String method() {return null;}"); in annotationsAllowedBeforeGenerics()
23 …MethodDeclaration 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()
41 … MethodDeclaration method1 = parseBodyDeclaration("void x(String a) { }").asMethodDeclaration(); in signaturesEqual()
42 MethodDeclaration method2 = parseBodyDeclaration("int x(String z);").asMethodDeclaration(); in signaturesEqual()
48 …MethodDeclaration method1 = parseBodyDeclaration("void x(List<Long> a) { }").asMethodDeclaration(); in signaturesEqualWhenGenericsDiffer()
49 …MethodDeclaration method2 = parseBodyDeclaration("void x(List<Integer> a) { }").asMethodDeclaratio… in signaturesEqualWhenGenericsDiffer()
[all …]
DTypeDeclarationTest.java7 import static com.github.javaparser.utils.TestParser.parseBodyDeclaration;
55 assertFQN("?", parseBodyDeclaration("class X{}")); in qualifiedNameOfDetachedClassIsEmpty()
DClassOrInterfaceDeclarationTest.java7 import static com.github.javaparser.StaticJavaParser.parseBodyDeclaration;
54 … MethodDeclaration method = parseBodyDeclaration("void x(){class X{};}").asMethodDeclaration(); in localClass()
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/
DTypeCastingGenerator.java16 import static com.github.javaparser.StaticJavaParser.parseBodyDeclaration;
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()
DAcceptGenerator.java12 import static com.github.javaparser.StaticJavaParser.parseBodyDeclaration;
20 …genericAccept = parseBodyDeclaration("@Override public <R, A> R accept(final GenericVisitor<R, A> … in AcceptGenerator()
21 …voidAccept = parseBodyDeclaration("@Override public <A> void accept(final VoidVisitor<A> v, final … in AcceptGenerator()
DRemoveMethodGenerator.java13 import static com.github.javaparser.StaticJavaParser.parseBodyDeclaration;
25 …MethodDeclaration removeNodeMethod = (MethodDeclaration) parseBodyDeclaration("public boolean remo… in generateNode()
79 …final MethodDeclaration removeMethod = (MethodDeclaration) parseBodyDeclaration(f("public %s %s() … in generateRemoveMethodForAttribute()
DCloneGenerator.java11 import static com.github.javaparser.StaticJavaParser.parseBodyDeclaration;
22 MethodDeclaration cloneMethod = (MethodDeclaration) parseBodyDeclaration(f( in generateNode()
DGetMetaModelGenerator.java11 import static com.github.javaparser.StaticJavaParser.parseBodyDeclaration;
21 …final MethodDeclaration getMetaModelMethod = (MethodDeclaration) parseBodyDeclaration(f("%s public… in generateNode()
DReplaceMethodGenerator.java13 import static com.github.javaparser.StaticJavaParser.parseBodyDeclaration;
23 …MethodDeclaration replaceNodeMethod = (MethodDeclaration) parseBodyDeclaration("public boolean rep… in generateNode()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/type/
DArrayTypeTest.java42 …FieldDeclaration fieldDeclaration = parseBodyDeclaration("@C int @A[] @B[] a @X[] @Y[];").asFieldD… in getFieldDeclarationWithArrays()
85 …MethodDeclaration methodDeclaration = parseBodyDeclaration("@C int @A[] a() @B[] {}").asMethodDecl… in getMethodDeclarationWithArrays()
101 …MethodDeclaration methodDeclaration = parseBodyDeclaration("void a(@C int @A[] a @B[]) {}").asMeth… in getParameterWithArrays()
129 … FieldDeclaration fieldDeclaration = parseBodyDeclaration("int[][] a[][];").asFieldDeclaration(); in setFieldDeclarationWithArrays()
137 MethodDeclaration method = parseBodyDeclaration("int[][] a()[][] {}").asMethodDeclaration(); in setMethodDeclarationWithArrays()
145 FieldDeclaration fieldDeclaration = parseBodyDeclaration("int[] a[];").asFieldDeclaration(); in fieldDeclarationWithArraysHasCorrectOrigins()
154 MethodDeclaration method = (MethodDeclaration) parseBodyDeclaration("int[] a()[] {}"); in methodDeclarationWithArraysHasCorrectOrigins()
163 … MethodDeclaration method = parseBodyDeclaration("void a(int[][] a[][]) {}").asMethodDeclaration(); in setParameterWithArrays()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/utils/
DTestParser.java37 public static BodyDeclaration<?> parseBodyDeclaration(String bd) { in parseBodyDeclaration() method in TestParser
38 return unpack(parser.parseBodyDeclaration(bd)); in parseBodyDeclaration()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/
DModifierVisitorTest.java35 import static com.github.javaparser.StaticJavaParser.parseBodyDeclaration;
108 final BodyDeclaration<?> bodyDeclaration = parseBodyDeclaration("int x=1;"); in fieldDeclarationCantSurviveWithoutVariables()
121 final BodyDeclaration<?> bodyDeclaration = parseBodyDeclaration("void x() {int x=1;}"); in variableDeclarationCantSurviveWithoutVariables()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/
DConcreteSyntaxModelTest.java74 Node node = parseBodyDeclaration("int x(int y, int z) {}"); in printParameters()
80 Node node = parseBodyDeclaration("int x(X A.B.this, int y, int z) {}"); in printReceiverParameter()
DPrettyPrintVisitorTest.java103 Node node = parseBodyDeclaration("int x(@O X A.B.this, int y) { }"); in printAReceiverParameter()
DPrettyPrinterTest.java202 FieldDeclaration fieldDeclaration = parseBodyDeclaration("int a, b;").asFieldDeclaration(); in printingInconsistentVariables()
/external/javaparser/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/
DPrettyPrintingSteps.java94 resultNode = parseBodyDeclaration(sourceUnderTest); in whenTheClassBodyDeclarationIsParsedByTheJavaParser()
99 resultNode = parseBodyDeclaration(sourceUnderTest); in whenTheInterfaceBodyDeclarationIsParsedByTheJavaParser()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/
DStaticJavaParser.java318 public static BodyDeclaration<?> parseBodyDeclaration(String body) { in parseBodyDeclaration() method in StaticJavaParser
319 return handleResult(newParser().parseBodyDeclaration(body)); in parseBodyDeclaration()
DJavaParser.java381 public ParseResult<BodyDeclaration<?>> parseBodyDeclaration(String body) { in parseBodyDeclaration() method in JavaParser
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/
DSwitchExprTest.java39 parseBodyDeclaration("static void howMany(int k) {\n" + in jep325Example3()
/external/javaparser/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/
DNodeMetaModelGenerator.java74 nodeMetaModelClass.addMember(parseBodyDeclaration(f( in generate()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/
DJavaParser.java293 public static BodyDeclaration parseBodyDeclaration(final String body) { in parseBodyDeclaration() method in JavaParser