Class SJavaParser
- java.lang.Object
-
- jadex.rules.parser.conditions.javagrammar.SJavaParser
-
public class SJavaParser extends java.lang.Object
Static helper methods for Java condition parser.
-
-
Constructor Summary
Constructors Constructor Description SJavaParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static boolean
lookaheadCast(org.antlr.runtime.TokenStream input, OAVTypeModel tmodel, java.lang.String[] imports)
Lookahead for a type cast.protected static boolean
lookaheadExistential(org.antlr.runtime.TokenStream input, OAVTypeModel tmodel, java.lang.String[] imports)
Lookahead for an existential declaration (type var).protected static boolean
lookaheadStaticField(org.antlr.runtime.TokenStream input, OAVTypeModel tmodel, java.lang.String[] imports)
Lookahead for a static field.protected static boolean
lookaheadStaticMethod(org.antlr.runtime.TokenStream input, OAVTypeModel tmodel, java.lang.String[] imports)
Lookahead for a static method.protected static int
lookaheadType(int index, org.antlr.runtime.TokenStream input, OAVTypeModel tmodel, java.lang.String[] imports)
Lookahead for a type.protected static int
lookaheadType(org.antlr.runtime.TokenStream input, OAVTypeModel tmodel, java.lang.String[] imports)
Lookahead for a type.
-
-
-
Method Detail
-
lookaheadType
protected static int lookaheadType(org.antlr.runtime.TokenStream input, OAVTypeModel tmodel, java.lang.String[] imports)
Lookahead for a type.- Parameters:
input
- The token stream.tmodel
- The OAV type model.- Returns:
- The token index of the last token (identifier) or -1 if no type could be matched.
-
lookaheadType
protected static int lookaheadType(int index, org.antlr.runtime.TokenStream input, OAVTypeModel tmodel, java.lang.String[] imports)
Lookahead for a type.- Parameters:
index
- The start index (starts with 1).input
- The token stream.tmodel
- The OAV type model.- Returns:
- The token index of the last token (identifier) or -1 if no type could be matched.
-
lookaheadExistential
protected static boolean lookaheadExistential(org.antlr.runtime.TokenStream input, OAVTypeModel tmodel, java.lang.String[] imports)
Lookahead for an existential declaration (type var).- Parameters:
input
- The token stream.tmodel
- The OAV type model.- Returns:
- True for an existential declaration.
-
lookaheadStaticField
protected static boolean lookaheadStaticField(org.antlr.runtime.TokenStream input, OAVTypeModel tmodel, java.lang.String[] imports)
Lookahead for a static field.- Parameters:
input
- The token stream.tmodel
- The OAV type model.- Returns:
- True for a static field.
-
lookaheadStaticMethod
protected static boolean lookaheadStaticMethod(org.antlr.runtime.TokenStream input, OAVTypeModel tmodel, java.lang.String[] imports)
Lookahead for a static method.- Parameters:
input
- The token stream.tmodel
- The OAV type model.- Returns:
- True for a static field.
-
lookaheadCast
protected static boolean lookaheadCast(org.antlr.runtime.TokenStream input, OAVTypeModel tmodel, java.lang.String[] imports)
Lookahead for a type cast.- Parameters:
input
- The token stream.tmodel
- The OAV type model.- Returns:
- True for a type cast.
-
-