/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/ |
D | MethodDeclarationTest.java | 5 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 …]
|
D | TypeDeclarationTest.java | 7 import static com.github.javaparser.utils.TestParser.parseBodyDeclaration; 55 assertFQN("?", parseBodyDeclaration("class X{}")); in qualifiedNameOfDetachedClassIsEmpty()
|
D | ClassOrInterfaceDeclarationTest.java | 7 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/ |
D | TypeCastingGenerator.java | 16 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()
|
D | AcceptGenerator.java | 12 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()
|
D | RemoveMethodGenerator.java | 13 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()
|
D | CloneGenerator.java | 11 import static com.github.javaparser.StaticJavaParser.parseBodyDeclaration; 22 MethodDeclaration cloneMethod = (MethodDeclaration) parseBodyDeclaration(f( in generateNode()
|
D | GetMetaModelGenerator.java | 11 import static com.github.javaparser.StaticJavaParser.parseBodyDeclaration; 21 …final MethodDeclaration getMetaModelMethod = (MethodDeclaration) parseBodyDeclaration(f("%s public… in generateNode()
|
D | ReplaceMethodGenerator.java | 13 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/ |
D | ArrayTypeTest.java | 42 …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/ |
D | TestParser.java | 37 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/ |
D | ModifierVisitorTest.java | 35 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/ |
D | ConcreteSyntaxModelTest.java | 74 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()
|
D | PrettyPrintVisitorTest.java | 103 Node node = parseBodyDeclaration("int x(@O X A.B.this, int y) { }"); in printAReceiverParameter()
|
D | PrettyPrinterTest.java | 202 FieldDeclaration fieldDeclaration = parseBodyDeclaration("int a, b;").asFieldDeclaration(); in printingInconsistentVariables()
|
/external/javaparser/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/ |
D | PrettyPrintingSteps.java | 94 resultNode = parseBodyDeclaration(sourceUnderTest); in whenTheClassBodyDeclarationIsParsedByTheJavaParser() 99 resultNode = parseBodyDeclaration(sourceUnderTest); in whenTheInterfaceBodyDeclarationIsParsedByTheJavaParser()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ |
D | StaticJavaParser.java | 318 public static BodyDeclaration<?> parseBodyDeclaration(String body) { in parseBodyDeclaration() method in StaticJavaParser 319 return handleResult(newParser().parseBodyDeclaration(body)); in parseBodyDeclaration()
|
D | JavaParser.java | 381 public ParseResult<BodyDeclaration<?>> parseBodyDeclaration(String body) { in parseBodyDeclaration() method in JavaParser
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/ |
D | SwitchExprTest.java | 39 parseBodyDeclaration("static void howMany(int k) {\n" + in jep325Example3()
|
/external/javaparser/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/ |
D | NodeMetaModelGenerator.java | 74 nodeMetaModelClass.addMember(parseBodyDeclaration(f( in generate()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ |
D | JavaParser.java | 293 public static BodyDeclaration parseBodyDeclaration(final String body) { in parseBodyDeclaration() method in JavaParser
|