GeneratedJavaParser
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv <T extends Node> NodeList | |
| pack-priv <T> List | |
| pack-priv void | |
| pack-priv <T extends Node> NodeList | |
| pack-priv <T extends Node> NodeList | |
| pack-priv Expression | generateLambda(Expression ret, Statement lambdaBody)
Workaround for rather complex ambiguity that lambda's create |
| pack-priv CommentsCollection | |
| pack-priv abstract Token | |
| public List | Returns: a list of tokensReturn the list of JavaParser specific tokens that have been encountered while parsing code using this parser. |
| pack-priv abstract GeneratedJavaParserTokenManager | |
| pack-priv ArrayCreationExpr | juggleArrayCreation(TokenRange range, List<TokenRange> levelRanges, Type type, NodeList<Expression> dimensions, List<NodeList<AnnotationExpr>> arrayAnnotations, ArrayInitializerExpr arrayInitializerExpr)
Throws together an ArrayCreationExpr from a lot of pieces |
| pack-priv Type | juggleArrayType(Type partialType, List<ArrayType.
Throws together a Type, taking care of all the array brackets |
| private String | makeMessageForParseException(ParseException exception)
This is the code from ParseException.initialise, modified to be more horizontal. |
| pack-priv JavaToken | |
| pack-priv JavaToken | Returns: secondChoice if firstChoice is JavaToken.UNKNOWN, otherwise firstChoice
|
| pack-priv JavaToken | Returns: the begin-token secondChoice if firstChoice is JavaToken.UNKNOWN, otherwise firstChoice
|
| pack-priv <T extends Node> NodeList | |
| private void | propagateRangeGrowthOnRight(Node node, Node endNode)
Propagate expansion of the range on the right to the parent. |
| pack-priv TokenRange | |
| pack-priv TokenRange | |
| pack-priv TokenRange | |
| pack-priv TokenRange | |
| pack-priv TokenRange | |
| pack-priv abstract void | |
| pack-priv void | |
| pack-priv Name | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv abstract JavaToken | |
| pack-priv TokenRange | |
| pack-priv String | |
| pack-priv String |
| problems | back to summary |
|---|---|
| pack-priv List<Problem> problems | |
| storeTokens | back to summary |
|---|---|
| pack-priv boolean storeTokens | |
| GeneratedJavaParserBase | back to summary |
|---|---|
| pack-priv GeneratedJavaParserBase() | |
| add | back to summary |
|---|---|
| pack-priv <T extends Node> NodeList Add obj to list and return it. Create a new list if list is null | |
| add | back to summary |
|---|---|
| pack-priv <T> List Add obj to list | |
| addProblem | back to summary |
|---|---|
| pack-priv void addProblem(String message) | |
| addWhenNotNull | back to summary |
|---|---|
| pack-priv <T extends Node> NodeList Add obj to list only when list is not null | |
| emptyList | back to summary |
|---|---|
| pack-priv <T extends Node> NodeList Quickly create a new NodeList | |
| generateLambda | back to summary |
|---|---|
| pack-priv Expression generateLambda(Expression ret, Statement lambdaBody) Workaround for rather complex ambiguity that lambda's create | |
| getCommentsCollection | back to summary |
|---|---|
| pack-priv CommentsCollection getCommentsCollection() | |
| getNextToken | back to summary |
|---|---|
| pack-priv abstract Token getNextToken() | |
| getTokens | back to summary |
|---|---|
| public List Return the list of JavaParser specific tokens that have been encountered while parsing code using this parser. | |
| getTokenSource | back to summary |
|---|---|
| pack-priv abstract GeneratedJavaParserTokenManager getTokenSource() | |
| juggleArrayCreation | back to summary |
|---|---|
| pack-priv ArrayCreationExpr juggleArrayCreation(TokenRange range, List<TokenRange> levelRanges, Type type, NodeList<Expression> dimensions, List<NodeList<AnnotationExpr>> arrayAnnotations, ArrayInitializerExpr arrayInitializerExpr) Throws together an ArrayCreationExpr from a lot of pieces | |
| juggleArrayType | back to summary |
|---|---|
| pack-priv Type juggleArrayType(Type partialType, List<ArrayType. Throws together a Type, taking care of all the array brackets | |
| makeMessageForParseException | back to summary |
|---|---|
| private String makeMessageForParseException(ParseException exception) This is the code from ParseException.initialise, modified to be more horizontal. | |
| nodeListBegin | back to summary |
|---|---|
| pack-priv JavaToken nodeListBegin(NodeList<?> l) Get the token that starts the NodeList l | |
| orIfInvalid | back to summary |
|---|---|
pack-priv JavaToken orIfInvalid(JavaToken firstChoice, JavaToken secondChoice)
| |
| orIfInvalid | back to summary |
|---|---|
pack-priv JavaToken orIfInvalid(JavaToken firstChoice, Node secondChoice)
| |
| prepend | back to summary |
|---|---|
| pack-priv <T extends Node> NodeList Add obj to list at position pos | |
| propagateRangeGrowthOnRight | back to summary |
|---|---|
| private void propagateRangeGrowthOnRight(Node node, Node endNode) Propagate expansion of the range on the right to the parent. This is necessary when the right border of the child is determining the right border of the parent (i.e., the child is the last element of the parent). In this case when we "enlarge" the child we should enlarge also the parent. | |
| range | back to summary |
|---|---|
| pack-priv TokenRange range(JavaToken begin, JavaToken end) Return a TokenRange spanning from begin to end | |
| range | back to summary |
|---|---|
| pack-priv TokenRange range(Node begin, JavaToken end) Return a TokenRange spanning from begin to end | |
| range | back to summary |
|---|---|
| pack-priv TokenRange range(JavaToken begin, Node end) Return a TokenRange spanning from begin to end | |
| range | back to summary |
|---|---|
| pack-priv TokenRange range(Node begin, Node end) Return a TokenRange spanning from begin to end | |
| recover | back to summary |
|---|---|
| pack-priv TokenRange recover(int recoveryTokenType, ParseException p) | |
| ReInit | back to summary |
|---|---|
| pack-priv abstract void ReInit(Provider provider) | |
| reset | back to summary |
|---|---|
| pack-priv void reset(Provider provider) | |
| scopeToName | back to summary |
|---|---|
| pack-priv Name scopeToName(Expression scope) Converts a NameExpr or a FieldAccessExpr scope to a Name. | |
| setStoreTokens | back to summary |
|---|---|
| pack-priv void setStoreTokens(boolean storeTokens) | |
| setTokenKind | back to summary |
|---|---|
| pack-priv void setTokenKind(int newKind) | |
| setYieldSupported | back to summary |
|---|---|
| pack-priv void setYieldSupported() | |
| token | back to summary |
|---|---|
| pack-priv abstract JavaToken token() | |
| tokenRange | back to summary |
|---|---|
| pack-priv TokenRange tokenRange() | |
| unquote | back to summary |
|---|---|
| pack-priv String unquote(String s) | |
| unTripleQuote | back to summary |
|---|---|
| pack-priv String unTripleQuote(String s) | |