public class SemanticPredicates
extends java.lang.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 |
isFollowingMethodName(int t)
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 isFollowingMethodName(int t)
t
- the type of pathExpressionpublic static boolean isInvalidMethodDeclaration(org.antlr.v4.runtime.TokenStream ts)
public static boolean isInvalidLocalVariableDeclaration(org.antlr.v4.runtime.TokenStream ts)