Package jadex.rules.parser.conditions
Class ParserHelper
- java.lang.Object
-
- jadex.rules.parser.conditions.ParserHelper
-
public class ParserHelper extends java.lang.Object
The parser helper class for parsing conditions.
-
-
Constructor Summary
Constructors Constructor Description ParserHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ICondition
parseClipsCondition(java.lang.String text, OAVTypeModel model)
Parse a condition.static ICondition
parseClipsCondition(java.lang.String text, OAVTypeModel model, java.lang.String[] imports)
Parse a condition.static ICondition
parseClipsCondition(java.lang.String text, OAVTypeModel model, java.lang.String[] imports, java.util.List errors)
Parse a condition.static ICondition
parseCondition(ICondition precon, java.lang.String text, java.lang.String language, OAVTypeModel model, java.lang.String[] imports, java.util.List errors, IParserHelper helper, Variable returnvar, boolean invert)
Parse a condition.static ICondition
parseJavaCondition(java.lang.String text, OAVTypeModel model)
Parse a condition.static ICondition
parseJavaCondition(java.lang.String text, OAVTypeModel model, java.lang.String[] imports)
Parse a condition.static ICondition
parseJavaCondition(java.lang.String text, java.lang.String[] imports, java.util.List errors, IParserHelper helper, Variable returnvar, boolean invert)
Parse a condition.
-
-
-
Method Detail
-
parseCondition
public static ICondition parseCondition(ICondition precon, java.lang.String text, java.lang.String language, OAVTypeModel model, java.lang.String[] imports, java.util.List errors, IParserHelper helper, Variable returnvar, boolean invert)
Parse a condition.- Parameters:
text
- The text.model
- The model.invert
- True if the user condition needs to be inverted.- Returns:
- The condition.
-
parseClipsCondition
public static ICondition parseClipsCondition(java.lang.String text, OAVTypeModel model)
Parse a condition.- Parameters:
text
- The text.model
- The model.- Returns:
- The condition.
-
parseClipsCondition
public static ICondition parseClipsCondition(java.lang.String text, OAVTypeModel model, java.lang.String[] imports)
Parse a condition.- Parameters:
text
- The text.model
- The model.imports
- The imports.- Returns:
- The condition.
-
parseClipsCondition
public static ICondition parseClipsCondition(java.lang.String text, OAVTypeModel model, java.lang.String[] imports, java.util.List errors)
Parse a condition.- Parameters:
text
- The text.model
- The model.- Returns:
- The condition.
-
parseJavaCondition
public static ICondition parseJavaCondition(java.lang.String text, OAVTypeModel model)
Parse a condition.- Parameters:
text
- The text.model
- The model.- Returns:
- The condition.
-
parseJavaCondition
public static ICondition parseJavaCondition(java.lang.String text, OAVTypeModel model, java.lang.String[] imports)
Parse a condition.- Parameters:
text
- The text.model
- The model.imports
- The imports.- Returns:
- The condition.
-
parseJavaCondition
public static ICondition parseJavaCondition(java.lang.String text, java.lang.String[] imports, java.util.List errors, IParserHelper helper, Variable returnvar, boolean invert)
Parse a condition.- Parameters:
text
- The text.model
- The model.- Returns:
- The condition.
-
-