Home
last modified time | relevance | path

Searched refs:tokenRange (Results 1 – 25 of 120) sorted by relevance

12345

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/
DRemovedGroup.java129 …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/
DArrayType.java88 …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
140tokenRange = 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 …]
DWildcardType.java74 …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()
DReferenceType.java55 public ReferenceType(TokenRange tokenRange, NodeList<AnnotationExpr> annotations) { in ReferenceType() argument
56 super(tokenRange, annotations); in ReferenceType()
DVarType.java57 public VarType(TokenRange tokenRange) { in VarType() argument
58 super(tokenRange); in VarType()
DUnknownType.java59 public UnknownType(TokenRange tokenRange) { in UnknownType() argument
60 super(tokenRange); in UnknownType()
DVoidType.java57 public VoidType(TokenRange tokenRange) { in VoidType() argument
58 super(tokenRange); in VoidType()
/external/javaparser/javaparser-core/src/main/javacc-support/com/github/javaparser/
DGeneratedJavaParserTokenManagerBase.java17 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()
DGeneratedJavaParserBase.java67 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/
DTokenRangeTest.java25 TokenRange tokenRange = cu.getTokenRange().get(); in renumberRangesWorks() local
26 tokenRange.getBegin().insertAfter(new JavaToken(1, "feif")); in renumberRangesWorks()
27tokenRange.getBegin().getNextToken().get().getNextToken().get().insert(new JavaToken(JavaToken.Kin… in renumberRangesWorks()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/
DNode.java154 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/
DLambdaExprTest.java29 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/
DLiteralExpr.java49 public LiteralExpr(TokenRange tokenRange) { in LiteralExpr() argument
50 super(tokenRange); in LiteralExpr()
DLiteralStringValueExpr.java51 public LiteralStringValueExpr(TokenRange tokenRange, String value) { in LiteralStringValueExpr() argument
52 super(tokenRange); in LiteralStringValueExpr()
DNullLiteralExpr.java52 public NullLiteralExpr(TokenRange tokenRange) { in NullLiteralExpr() argument
53 super(tokenRange); in NullLiteralExpr()
DDoubleLiteralExpr.java58 public DoubleLiteralExpr(TokenRange tokenRange, String value) { in DoubleLiteralExpr() argument
59 super(tokenRange, value); in DoubleLiteralExpr()
DMarkerAnnotationExpr.java61 public MarkerAnnotationExpr(TokenRange tokenRange, Name name) { in MarkerAnnotationExpr() argument
62 super(tokenRange, name); in MarkerAnnotationExpr()
DStringLiteralExpr.java67 public StringLiteralExpr(TokenRange tokenRange, String value) { in StringLiteralExpr() argument
68 super(tokenRange, value); in StringLiteralExpr()
DCharLiteralExpr.java71 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/
DLineComment.java58 public LineComment(TokenRange tokenRange, String content) { in LineComment() argument
59 super(tokenRange, content); in LineComment()
DBlockComment.java59 public BlockComment(TokenRange tokenRange, String content) { in BlockComment() argument
60 super(tokenRange, content); in BlockComment()
DJavadocComment.java57 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/
DUnparsableStmt.java31 public UnparsableStmt(TokenRange tokenRange) { in UnparsableStmt() argument
32 super(tokenRange); in UnparsableStmt()
DEmptyStmt.java50 public EmptyStmt(TokenRange tokenRange) { in EmptyStmt() argument
51 super(tokenRange); in EmptyStmt()
/external/javaparser/javaparser-core-serialization/src/main/java/com/github/javaparser/serialization/
DJavaParserJsonSerializer.java126 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()

12345