/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/ |
D | RemovedGroup.java | 129 …ean> hasOnlyWhitespaceInFrontFunction = tokenRange -> hasOnlyWhitespaceJavaTokenInFrontFunction.ap… 130 …olean> hasOnlyWhitespaceBehindFunction = tokenRange -> hasOnlyWhitespaceJavaTokenBehindFunction.ap… 138 Optional<TokenRange> tokenRange = child.getTokenRange(); in hasOnlyWhitespace() local 139 if (tokenRange.isPresent()) { in hasOnlyWhitespace() 140 hasOnlyWhitespace = hasOnlyWhitespaceFunction.apply(tokenRange.get()); in hasOnlyWhitespace() 181 Optional<TokenRange> tokenRange = child.getTokenRange(); in getIndentation() local 182 if (tokenRange.isPresent()) { in getIndentation() 183 JavaToken begin = tokenRange.get().getBegin(); in getIndentation()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/type/ |
D | ArrayType.java | 88 …public ArrayType(TokenRange tokenRange, Type componentType, Origin origin, NodeList<AnnotationExpr… in ArrayType() argument 89 super(tokenRange, annotations); in ArrayType() 138 TokenRange tokenRange = null; in wrapInArrayTypes() local 140 …tokenRange = new TokenRange(type.getTokenRange().get().getBegin(), pair.getTokenRange().get().getE… in wrapInArrayTypes() 142 type = new ArrayType(tokenRange, type, pair.getOrigin(), pair.getAnnotations()); in wrapInArrayTypes() 143 if (tokenRange != null) { in wrapInArrayTypes() 144 type.setRange(tokenRange.toRange().get()); in wrapInArrayTypes() 173 private TokenRange tokenRange; field in ArrayType.ArrayBracketPair 179 …public ArrayBracketPair(TokenRange tokenRange, Origin origin, NodeList<AnnotationExpr> annotations… in ArrayBracketPair() argument 180 setTokenRange(tokenRange); in ArrayBracketPair() [all …]
|
D | WildcardType.java | 74 …public WildcardType(TokenRange tokenRange, ReferenceType extendedType, ReferenceType superType, No… in WildcardType() argument 75 super(tokenRange, annotations); in WildcardType() 220 … public WildcardType(TokenRange tokenRange, ReferenceType extendedType, ReferenceType superType) { in WildcardType() argument 221 super(tokenRange); in WildcardType()
|
D | ReferenceType.java | 55 public ReferenceType(TokenRange tokenRange, NodeList<AnnotationExpr> annotations) { in ReferenceType() argument 56 super(tokenRange, annotations); in ReferenceType()
|
D | VarType.java | 57 public VarType(TokenRange tokenRange) { in VarType() argument 58 super(tokenRange); in VarType()
|
D | UnknownType.java | 59 public UnknownType(TokenRange tokenRange) { in UnknownType() argument 60 super(tokenRange); in UnknownType()
|
D | VoidType.java | 57 public VoidType(TokenRange tokenRange) { in VoidType() argument 58 super(tokenRange); in VoidType()
|
/external/javaparser/javaparser-core/src/main/javacc-support/com/github/javaparser/ |
D | GeneratedJavaParserTokenManagerBase.java | 17 private static TokenRange tokenRange(Token token) { in tokenRange() method in GeneratedJavaParserTokenManagerBase 29 … return new JavadocComment(tokenRange(token), commentText.substring(3, commentText.length() - 2)); in createCommentFromToken() 31 … return new BlockComment(tokenRange(token), commentText.substring(2, commentText.length() - 2)); in createCommentFromToken() 33 return new LineComment(tokenRange(token), commentText.substring(2)); in createCommentFromToken()
|
D | GeneratedJavaParserBase.java | 67 problems.add(new Problem(message, tokenRange(), null)); in addProblem() 71 TokenRange tokenRange() { in tokenRange() method in GeneratedJavaParserBase 178 TokenRange tokenRange = null; in recover() local 180 tokenRange = range(begin, end); in recover() 183 problems.add(new Problem(makeMessageForParseException(p), tokenRange, p)); in recover() 184 return tokenRange; in recover()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ |
D | TokenRangeTest.java | 25 TokenRange tokenRange = cu.getTokenRange().get(); in renumberRangesWorks() local 26 tokenRange.getBegin().insertAfter(new JavaToken(1, "feif")); in renumberRangesWorks() 27 …tokenRange.getBegin().getNextToken().get().getNextToken().get().insert(new JavaToken(JavaToken.Kin… in renumberRangesWorks()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/ |
D | Node.java | 154 private TokenRange tokenRange; field in Node 177 protected Node(TokenRange tokenRange) { in Node() argument 178 setTokenRange(tokenRange); in Node() 210 return Optional.ofNullable(tokenRange); in getTokenRange() 213 public Node setTokenRange(TokenRange tokenRange) { in setTokenRange() argument 214 this.tokenRange = tokenRange; in setTokenRange() 215 …if (tokenRange == null || !(tokenRange.getBegin().getRange().isPresent() && tokenRange.getBegin().… in setTokenRange() 218 …range = new Range(tokenRange.getBegin().getRange().get().begin, tokenRange.getEnd().getRange().get… in setTokenRange()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/ |
D | LambdaExprTest.java | 29 TokenRange tokenRange = node.getTokenRange().get(); in assertRange() local 30 assertEquals(startToken, tokenRange.getBegin().asString()); in assertRange() 31 assertEquals(endToken, tokenRange.getEnd().asString()); in assertRange()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ |
D | LiteralExpr.java | 49 public LiteralExpr(TokenRange tokenRange) { in LiteralExpr() argument 50 super(tokenRange); in LiteralExpr()
|
D | LiteralStringValueExpr.java | 51 public LiteralStringValueExpr(TokenRange tokenRange, String value) { in LiteralStringValueExpr() argument 52 super(tokenRange); in LiteralStringValueExpr()
|
D | NullLiteralExpr.java | 52 public NullLiteralExpr(TokenRange tokenRange) { in NullLiteralExpr() argument 53 super(tokenRange); in NullLiteralExpr()
|
D | DoubleLiteralExpr.java | 58 public DoubleLiteralExpr(TokenRange tokenRange, String value) { in DoubleLiteralExpr() argument 59 super(tokenRange, value); in DoubleLiteralExpr()
|
D | MarkerAnnotationExpr.java | 61 public MarkerAnnotationExpr(TokenRange tokenRange, Name name) { in MarkerAnnotationExpr() argument 62 super(tokenRange, name); in MarkerAnnotationExpr()
|
D | StringLiteralExpr.java | 67 public StringLiteralExpr(TokenRange tokenRange, String value) { in StringLiteralExpr() argument 68 super(tokenRange, value); in StringLiteralExpr()
|
D | CharLiteralExpr.java | 71 public CharLiteralExpr(TokenRange tokenRange, String value) { in CharLiteralExpr() argument 72 super(tokenRange, value); in CharLiteralExpr()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/comments/ |
D | LineComment.java | 58 public LineComment(TokenRange tokenRange, String content) { in LineComment() argument 59 super(tokenRange, content); in LineComment()
|
D | BlockComment.java | 59 public BlockComment(TokenRange tokenRange, String content) { in BlockComment() argument 60 super(tokenRange, content); in BlockComment()
|
D | JavadocComment.java | 57 public JavadocComment(TokenRange tokenRange, String content) { in JavadocComment() argument 58 super(tokenRange, content); in JavadocComment()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ |
D | UnparsableStmt.java | 31 public UnparsableStmt(TokenRange tokenRange) { in UnparsableStmt() argument 32 super(tokenRange); in UnparsableStmt()
|
D | EmptyStmt.java | 50 public EmptyStmt(TokenRange tokenRange) { in EmptyStmt() argument 51 super(tokenRange); in EmptyStmt()
|
/external/javaparser/javaparser-core-serialization/src/main/java/com/github/javaparser/serialization/ |
D | JavaParserJsonSerializer.java | 126 TokenRange tokenRange = node.getTokenRange().get(); in writeTokens() local 128 writeToken(JsonTokenRange.BEGIN_TOKEN.propertyKey, tokenRange.getBegin(), generator); in writeTokens() 129 writeToken(JsonTokenRange.END_TOKEN.propertyKey, tokenRange.getEnd(), generator); in writeTokens()
|