| java.lang.Object org.ofbiz.rules.logikus.LogikusFacade
LogikusFacade | public class LogikusFacade (Code) | | This class provides utility methods that simplify the use of the Logikus parser.
author: Steven J. Metsker version: 1.0 |
axiom | public static Axiom axiom(String s)(Code) | | Translate one axiom string into an Axiom object.
|
axiom | protected static Axiom axiom(TokenString ts)(Code) | | Translate the tokens for one axiom into an Axiom
object (either a Fact or a Rule);
|
checkForUppercase | protected static void checkForUppercase(TokenString ts, String type)(Code) | | Throws an informative runtime exception if the provided
string begins with an uppercase letter.
NOTE: This is not currently used.
|
parse | protected static Object parse(TokenString ts, Parser p, String type)(Code) | | Parse the given token string with the given parser,
throwing runtime exceptions if parsing fails
or is incomplete.
|
program | public static Program program(String s)(Code) | | Parse the text of a Logikus program and return a
Program object.
Parameters: String - the text of the program a Program object exception: RuntimeException - if parsing fails |
reportLeftovers | protected static Object reportLeftovers(Assembly out, String type)(Code) | | Throws a runtime exception reporting an incomplete parse.
|
reportNoMatch | protected static void reportNoMatch(TokenString ts, String type)(Code) | | Throws a runtime exception reporting failed parse.
|
|
|