upl
Class upl_CheckEngine
java.lang.Object
upl.upl_CheckEngine
public class upl_CheckEngine
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
checkLanguageEngine
upl_LanguageEngine checkLanguageEngine
Errors
private boolean Errors
adtTypesList
private java.util.LinkedList<upl_CheckEngine.adtType> adtTypesList
adt
private upl_CheckEngine.adtType adt
ifCounter
private int ifCounter
ifElse
private int ifElse
loopCount
private int loopCount
checkTools
upl_CheckTools checkTools
doTokenizer
upl_DoTokenizer doTokenizer
tokenizer
upl_Tokenizer tokenizer
upl_CheckEngine
upl_CheckEngine(upl_LanguageEngine langEngine)
upl_CheckEngine
public upl_CheckEngine()
clearAdtTypesList
void clearAdtTypesList()
getErrorState
boolean getErrorState()
setErrorsState
void setErrorsState(boolean newState)
getAdtTypesList
java.util.LinkedList<upl_CheckEngine.adtType> getAdtTypesList()
setNewLanguage
void setNewLanguage(java.lang.String[] language)
isValidIfStatment
boolean isValidIfStatment(java.lang.String str)
mainCheck
public void mainCheck(java.lang.StringBuffer line,
int lineNumber,
int maxLineNumber)
throws javax.swing.text.BadLocationException,
java.awt.HeadlessException
- used to start the checking work, it works line by line
it read the first token from each line then send the remaining
tokens to the crossponding check function or make the Errors bolean = false
- Parameters:
line
- the line itselflineNumber
- number of the current linemaxLineNumber
- number of available lines
- Throws:
javax.swing.text.BadLocationException
java.awt.HeadlessException
ifStatmentCheck
private void ifStatmentCheck(java.lang.String str)
printCheck
private void printCheck(java.lang.String str)
readCheck
private void readCheck(java.lang.String str)
checkDoStatment
private boolean checkDoStatment(java.lang.String statment)
DoCheck
private void DoCheck(java.lang.String str)
declareCheck
private void declareCheck(java.lang.String str)
showErrorMessage
public void showErrorMessage(java.lang.String msg,
java.lang.String title)
checkIfReserved
private boolean checkIfReserved(java.lang.String varName)
getDeclerationType
private java.lang.String getDeclerationType(java.lang.String varName)
checkIfDeclared
private int checkIfDeclared(java.lang.String varName)