|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kemet.mdc.LocationRules
public class LocationRules
location rules for each special caracters of MdC
Constructor Summary | |
---|---|
LocationRules()
instantiate the location rules. |
Method Summary | |
---|---|
static void |
addNbError()
add a error. |
static void |
clearError()
initialize the counter error : it can be modify by all control methods where applicated to the signList and special caracters MdC. |
void |
getInformationAboutLocation(java.lang.String input)
allocate lines and cadrats. |
static boolean |
isVerify()
return true if the nbError = 0 |
void |
ruleDoublePointVerify(java.lang.String str,
java.lang.String sequence)
rule for ":" special caracter Mdc ":" indicate that the next sign will be located under the previous sign to the same level. |
void |
ruleExclamationPointVerify(java.lang.String str,
java.lang.String sequence)
rule for "!" |
void |
ruleIndentVerify(java.lang.String str,
java.lang.String sequence)
rule for "-" special caracter Mdc "-" separator between 2 cadrats. |
void |
ruleInputBracketVerify(java.lang.String str,
java.lang.String sequence)
rule for "(" special caracter Mdc "(" can be used to indicate a group a MdC codes. |
void |
ruleOutputBracketVerify(java.lang.String str,
java.lang.String sequence)
rule for ")" special caracter Mdc ")" can be used to terminate a group a MdC codes. |
void |
ruleStarVerify(java.lang.String str,
java.lang.String sequence)
rule for "*" special caracter Mdc "*" indicate that the next sign will be located to the same level than the previous sign. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocationRules()
instantiate the location rules.
Method Detail |
---|
public static void clearError()
initialize the counter error : it can be modify by all control methods where applicated to the signList and special caracters MdC.
public void ruleStarVerify(java.lang.String str, java.lang.String sequence)
rule for "*" special caracter Mdc "*" indicate that the next sign will be located to the same level than the previous sign.
str
- string to analysesequence
- rule caracterpublic void ruleIndentVerify(java.lang.String str, java.lang.String sequence)
rule for "-" special caracter Mdc "-" separator between 2 cadrats.
str
- string to analysesequence
- rule caracterpublic void ruleDoublePointVerify(java.lang.String str, java.lang.String sequence)
rule for ":" special caracter Mdc ":" indicate that the next sign will be located under the previous sign to the same level.
str
- string to analysesequence
- rule caracterpublic void ruleExclamationPointVerify(java.lang.String str, java.lang.String sequence)
rule for "!" special caracter Mdc "!" indicate the end of a line of cadrats.
str
- string to analysesequence
- rule caracterpublic void ruleInputBracketVerify(java.lang.String str, java.lang.String sequence)
rule for "(" special caracter Mdc "(" can be used to indicate a group a MdC codes.
str
- string to analysesequence
- rule caracterpublic void ruleOutputBracketVerify(java.lang.String str, java.lang.String sequence)
rule for ")" special caracter Mdc ")" can be used to terminate a group a MdC codes.
str
- string to analysesequence
- rule caracterpublic void getInformationAboutLocation(java.lang.String input)
allocate lines and cadrats.
input
- string to analyzepublic static boolean isVerify()
return true if the nbError = 0
public static void addNbError()
add a error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |