Home
last modified time | relevance | path

Searched refs:GeneratedJavaParserConstants (Results 1 – 23 of 23) sorted by relevance

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/
DConcreteSyntaxModel.java24 import com.github.javaparser.GeneratedJavaParserConstants;
41 import static com.github.javaparser.GeneratedJavaParserConstants.*;
75 …rvableProperty.TYPE_PARAMETERS, sequence(comma(), space()), token(GeneratedJavaParserConstants.LT), in typeParameters()
76 sequence(token(GeneratedJavaParserConstants.GT), space())); in typeParameters()
80 …ervableProperty.TYPE_ARGUMENTS, sequence(comma(), space()), token(GeneratedJavaParserConstants.LT), in typeArguments()
81 sequence(token(GeneratedJavaParserConstants.GT))); in typeArguments()
94 token(GeneratedJavaParserConstants.AT), in concreteSyntaxModelByClass.put()
95 token(GeneratedJavaParserConstants.INTERFACE), in concreteSyntaxModelByClass.put()
116 …leProperty.DEFAULT_VALUE, IS_PRESENT, sequence(space(), token(GeneratedJavaParserConstants._DEFAUL… in concreteSyntaxModelByClass.put()
124 …ervableProperty.INTERFACE, FLAG, token(GeneratedJavaParserConstants.INTERFACE), token(GeneratedJav… in concreteSyntaxModelByClass.put()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/
DCsmAttribute.java24 import com.github.javaparser.GeneratedJavaParserConstants;
58 return GeneratedJavaParserConstants.IDENTIFIER; in getTokenType()
61 for (int i=0;i<GeneratedJavaParserConstants.tokenImage.length;i++) { in getTokenType()
62 if (GeneratedJavaParserConstants.tokenImage[i].equals(expectedImage)) { in getTokenType()
71 for (int i = 0; i < GeneratedJavaParserConstants.tokenImage.length; i++) { in getTokenType()
72 if (GeneratedJavaParserConstants.tokenImage[i].equals(expectedImage)) { in getTokenType()
80 return GeneratedJavaParserConstants.INTEGER_LITERAL; in getTokenType()
83 return GeneratedJavaParserConstants.IDENTIFIER; in getTokenType()
DCsmElement.java24 import com.github.javaparser.GeneratedJavaParserConstants;
92 return new CsmToken(GeneratedJavaParserConstants.SEMICOLON); in semicolon()
106 return new CsmToken(GeneratedJavaParserConstants.COMMA); in comma()
143 …return sequence(token(GeneratedJavaParserConstants.LBRACE), indent(), content, unindent(), token(G… in block()
DCsmToken.java24 import com.github.javaparser.GeneratedJavaParserConstants;
55 this.content = GeneratedJavaParserConstants.tokenImage[tokenType]; in CsmToken()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/
DDifferenceElementCalculatorTest.java3 import com.github.javaparser.GeneratedJavaParserConstants;
53 new CsmToken(GeneratedJavaParserConstants.LPAREN), in calculateDifferenceAIsEmpty()
55 new CsmToken(GeneratedJavaParserConstants.RPAREN), in calculateDifferenceAIsEmpty()
59 … assertEquals(added(new CsmToken(GeneratedJavaParserConstants.LPAREN)), differenceElements.get(0)); in calculateDifferenceAIsEmpty()
61 … assertEquals(added(new CsmToken(GeneratedJavaParserConstants.RPAREN)), differenceElements.get(2)); in calculateDifferenceAIsEmpty()
71 new CsmToken(GeneratedJavaParserConstants.LPAREN), in calculateDifferenceBIsEmpty()
73 new CsmToken(GeneratedJavaParserConstants.RPAREN), in calculateDifferenceBIsEmpty()
78 …assertEquals(removed(new CsmToken(GeneratedJavaParserConstants.LPAREN)), differenceElements.get(0)… in calculateDifferenceBIsEmpty()
80 …assertEquals(removed(new CsmToken(GeneratedJavaParserConstants.RPAREN)), differenceElements.get(2)… in calculateDifferenceBIsEmpty()
110 … assertEquals(kept(new CsmToken(GeneratedJavaParserConstants.AT)), differenceElements.get(i++)); in annotationDeclarationExampleWithModifierAdded()
[all …]
DLexicalDifferenceCalculatorTest.java3 import com.github.javaparser.GeneratedJavaParserConstants;
66 assertEquals(new CsmToken(GeneratedJavaParserConstants.AT), csm.elements.get(i++)); in annotationDeclarationModifiersExampleOriginal()
67 assertEquals(new CsmToken(GeneratedJavaParserConstants.INTERFACE), csm.elements.get(i++)); in annotationDeclarationModifiersExampleOriginal()
71 assertEquals(new CsmToken(GeneratedJavaParserConstants.LBRACE), csm.elements.get(i++)); in annotationDeclarationModifiersExampleOriginal()
85 assertEquals(new CsmToken(GeneratedJavaParserConstants.RBRACE), csm.elements.get(i++)); in annotationDeclarationModifiersExampleOriginal()
99 assertEquals(new CsmToken(GeneratedJavaParserConstants.AT), csm.elements.get(i++)); in annotationDeclarationModifiersExampleModified()
100 assertEquals(new CsmToken(GeneratedJavaParserConstants.INTERFACE), csm.elements.get(i++)); in annotationDeclarationModifiersExampleModified()
104 assertEquals(new CsmToken(GeneratedJavaParserConstants.LBRACE), csm.elements.get(i++)); in annotationDeclarationModifiersExampleModified()
118 assertEquals(new CsmToken(GeneratedJavaParserConstants.RBRACE), csm.elements.get(i++)); in annotationDeclarationModifiersExampleModified()
132 assertEquals(new CsmToken(GeneratedJavaParserConstants.AT), csm.elements.get(i++)); in annotationDeclarationNameExampleModified()
[all …]
DLexicalPreservingPrinterTest.java19 import com.github.javaparser.GeneratedJavaParserConstants;
64 …assertEquals(GeneratedJavaParserConstants.EOF, ((TokenTextElement) getTextForNode(classA).getTextE… in checkNodeTextCreatedForSimplestClass()
736 assertTrue(nodeText.getElements().get(index++).isToken(GeneratedJavaParserConstants.SPACE)); in nodeTextForMethod()
738 assertTrue(nodeText.getElements().get(index++).isToken(GeneratedJavaParserConstants.SPACE)); in nodeTextForMethod()
740 … assertTrue(nodeText.getElements().get(index++).isToken(GeneratedJavaParserConstants.LPAREN)); in nodeTextForMethod()
742 … assertTrue(nodeText.getElements().get(index++).isToken(GeneratedJavaParserConstants.RPAREN)); in nodeTextForMethod()
743 assertTrue(nodeText.getElements().get(index++).isToken(GeneratedJavaParserConstants.SPACE)); in nodeTextForMethod()
749 … assertTrue(nodeText.getElements().get(index++).isToken(GeneratedJavaParserConstants.LBRACE)); in nodeTextForMethod()
751 assertTrue(nodeText.getElements().get(index++).isToken(GeneratedJavaParserConstants.SPACE)); in nodeTextForMethod()
752 assertTrue(nodeText.getElements().get(index++).isToken(GeneratedJavaParserConstants.SPACE)); in nodeTextForMethod()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/
DTextElement.java24 import com.github.javaparser.GeneratedJavaParserConstants;
37 return isToken(GeneratedJavaParserConstants.JAVADOC_COMMENT) in isCommentToken()
38 || isToken(GeneratedJavaParserConstants.SINGLE_LINE_COMMENT) in isCommentToken()
39 || isToken(GeneratedJavaParserConstants.MULTI_LINE_COMMENT); in isCommentToken()
DLexicalDifferenceCalculator.java3 import com.github.javaparser.GeneratedJavaParserConstants;
240 elements.add(new CsmToken(GeneratedJavaParserConstants.STRING_LITERAL, in calculatedSyntaxModelForNode()
257 return GeneratedJavaParserConstants.PUBLIC; in toToken()
259 return GeneratedJavaParserConstants.PRIVATE; in toToken()
261 return GeneratedJavaParserConstants.PROTECTED; in toToken()
263 return GeneratedJavaParserConstants.STATIC; in toToken()
265 return GeneratedJavaParserConstants.FINAL; in toToken()
267 return GeneratedJavaParserConstants.ABSTRACT; in toToken()
DNodeText.java24 import com.github.javaparser.GeneratedJavaParserConstants;
226 … return ((TokenTextElement)lastElement).getTokenKind() == GeneratedJavaParserConstants.SPACE; in endWithSpace()
DDifference.java3 import static com.github.javaparser.GeneratedJavaParserConstants.*;
7 import com.github.javaparser.GeneratedJavaParserConstants;
539 indentation.add(new TokenTextElement(GeneratedJavaParserConstants.SPACE)); in applyAddedDiffElement()
DLexicalPreservingPrinter.java54 import static com.github.javaparser.GeneratedJavaParserConstants.*;
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/
DJavaTokenTest.java29 import static com.github.javaparser.GeneratedJavaParserConstants.*;
71 JavaToken.Kind kind = JavaToken.Kind.valueOf(GeneratedJavaParserConstants.ASSERT); in testKindEnum()
74 assertEquals(GeneratedJavaParserConstants.ASSERT, kind.getKind()); in testKindEnum()
DJavaParserTest.java223 …assertEquals(GeneratedJavaParserConstants.LPAREN, lambdaExpr.getTokenRange().get().getBegin().getK… in rangeOfLambda()
224 …assertEquals(GeneratedJavaParserConstants.RPAREN, lambdaExpr.getTokenRange().get().getEnd().getKin… in rangeOfLambda()
262 final int tokenCount = GeneratedJavaParserConstants.tokenImage.length; in everyTokenHasACategory()
/external/javaparser/javaparser-core/src/main/javacc-support/com/github/javaparser/
DTokenBase.java3 import static com.github.javaparser.GeneratedJavaParserConstants.GT;
DGeneratedJavaParserTokenManagerBase.java8 import static com.github.javaparser.GeneratedJavaParserConstants.*;
DGeneratedJavaParserBase.java17 import static com.github.javaparser.GeneratedJavaParserConstants.EOF;
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/
DJavaToken.java88 if (token.kind == GeneratedJavaParserConstants.GT) { in JavaToken()
91 } else if (token.kind == GeneratedJavaParserConstants.RSIGNEDSHIFT) { in JavaToken()
111 String content = GeneratedJavaParserConstants.tokenImage[kind]; in JavaToken()
DTokenTypes.java3 import static com.github.javaparser.GeneratedJavaParserConstants.*;
/external/javaparser/javaparser-core/generated-sources/javacc/com/github/javaparser/
DGeneratedJavaParserConstants.java29 public interface GeneratedJavaParserConstants { interface
DGeneratedJavaParserTokenManager.java46 public class GeneratedJavaParserTokenManager implements GeneratedJavaParserConstants {
DGeneratedJavaParser.java46 …class GeneratedJavaParser extends GeneratedJavaParserBase implements GeneratedJavaParserConstants {
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/modules/
DModuleDeclarationTest.java13 import static com.github.javaparser.GeneratedJavaParserConstants.IDENTIFIER;