public class SemanticPredicates extends Object
Constructor and Description |
---|
SemanticPredicates() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isFollowedBy(org.antlr.v4.runtime.CharStream cs,
char... chars) |
static boolean |
isFollowedByJavaLetterInGString(org.antlr.v4.runtime.CharStream cs) |
static boolean |
isFollowedByWhiteSpaces(org.antlr.v4.runtime.CharStream cs) |
static boolean |
isFollowingArgumentsOrClosure(GroovyParser.ExpressionContext context)
Check whether following a method name of command expression.
|
static boolean |
isInvalidLocalVariableDeclaration(org.antlr.v4.runtime.TokenStream ts)
Distinguish between local variable declaration and method call, e.g.
|
static boolean |
isInvalidMethodDeclaration(org.antlr.v4.runtime.TokenStream ts)
Distinguish between method declaration and method call/constructor declaration
|
public static boolean isFollowedByWhiteSpaces(org.antlr.v4.runtime.CharStream cs)
public static boolean isFollowedBy(org.antlr.v4.runtime.CharStream cs, char... chars)
public static boolean isFollowedByJavaLetterInGString(org.antlr.v4.runtime.CharStream cs)
public static boolean isFollowingArgumentsOrClosure(GroovyParser.ExpressionContext context)
context
- the preceding expressionpublic static boolean isInvalidMethodDeclaration(org.antlr.v4.runtime.TokenStream ts)
public static boolean isInvalidLocalVariableDeclaration(org.antlr.v4.runtime.TokenStream ts)