| java.lang.Object org.openlaszlo.compiler.SolutionMessages
SolutionMessages | class SolutionMessages (Code) | | Looks up error messages in a database of known errors, and suggests solutions
author: Henry Minsky |
Method Summary | |
static String | findSolution(String err, String type) Look through the list of known error message strings, looking for a match,
and return the suggested solution. | static String | findSolution(String err) | public static boolean | regexp(String input, String p) Return true if the regexp pattern is found to occur in the input string. | public static String | regsub(String str, String pattern, String subst) Perform string substitution using pattern matching.
Parameters: str - the source string Parameters: pattern - pattern to look for Parameters: subst - the string to replace pattern with. | public static String | regsub(String str, String p, String s, int numSubs) Perform string substitution using pattern matching.
Parameters: str - the source string Parameters: p - pattern to look for Parameters: s - the string to replace pattern with. |
compiler | final static Perl5Compiler compiler(Code) | | |
sMatcher | final static Perl5Matcher sMatcher(Code) | | |
sSubst | final static Perl5Substitution sSubst(Code) | | |
findSolution | static String findSolution(String err, String type)(Code) | | Look through the list of known error message strings, looking for a match,
and return the suggested solution.
Parameters: err - an error message you want to look up the solution for Parameters: type - the class of error (parser, validator, viewcompiler), or null for any match a solution message if available, otherwise the empty string |
findSolution | static String findSolution(String err)(Code) | | Find matching solution from the first matching solution pattern
|
regexp | public static boolean regexp(String input, String p)(Code) | | Return true if the regexp pattern is found to occur in the input string.
Parameters: input - the input string Parameters: p - the pattern |
regsub | public static String regsub(String str, String p, String s, int numSubs)(Code) | | Perform string substitution using pattern matching.
Parameters: str - the source string Parameters: p - pattern to look for Parameters: s - the string to replace pattern with. Perl5 references to matches are allowed. Seehttp://jakarta.apache.org/oro/api/org/apache/oro/text/regex/Perl5Substitution.html Parameters: numSubs - number of substitutions to perform, Util.SUBSTITUTE_ALL will cause all occurences to be replaced the string with the substitution made for numSubs occurences of the pattern |
|
|