cz.zcu.validationserver.process.statements
Class AbstractStatement

java.lang.Object
  extended by cz.zcu.validationserver.process.statements.AbstractStatement
All Implemented Interfaces:
ExecutableProcess, Statement
Direct Known Subclasses:
Block, BreakStatement, CacheStatement, CallStatement, ContinueStatement, ErrorStatement, IfStatement, QuitIfErrorStatement, QuitStatement, ReturnStatement, ScriptStatement, TimeLimitedStatement, WhileStatement

public abstract class AbstractStatement
extends java.lang.Object
implements Statement

Abstraktni implementace Statement User: Lukas Date: 23.4.2007 Time: 14:55:21


Field Summary
private  int columnNumber
           
private  int lineNumber
           
private  ValidationProcess myProcess
           
private  Statement parent
           
private  java.lang.String statementName
           
 
Constructor Summary
AbstractStatement()
           
AbstractStatement(Statement parent)
           
 
Method Summary
 int getColumnNumber()
           
 int getLineNumber()
           
 ValidationProcess getMyProcess()
           
 Statement getParent()
          Vrati rodice tohoto elementu
 java.lang.String getPath()
          Vrati retezcovou reprezentaci cesty k tomuto statementu (hodi se do vypisu chyb)
private  java.lang.String getPosName(java.lang.String message)
          Vrati retezec co se dava jako nazev pozice
 java.lang.String getStatementName()
           
 void loadFromElement(Element element, ValidationProcess process, Block block)
          Nacte objekt z XML
protected  void popPosition(ValidationInfo info)
           
protected  void popPosition(ValidationInfo info, java.lang.String message)
           
protected  int pushPosition(ValidationInfo info)
           
protected  int pushPosition(ValidationInfo info, java.lang.String message)
          Pushne tenhle statement do pozice
 void setParent(Statement parent)
          Nastavi rodice tohoto elementu
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cz.zcu.validationserver.process.ExecutableProcess
execute
 

Field Detail

parent

private Statement parent

myProcess

private ValidationProcess myProcess

lineNumber

private int lineNumber

columnNumber

private int columnNumber

statementName

private java.lang.String statementName
Constructor Detail

AbstractStatement

public AbstractStatement()

AbstractStatement

public AbstractStatement(Statement parent)
Method Detail

getParent

public Statement getParent()
Description copied from interface: Statement
Vrati rodice tohoto elementu

Specified by:
getParent in interface Statement

setParent

public void setParent(Statement parent)
Description copied from interface: Statement
Nastavi rodice tohoto elementu

Specified by:
setParent in interface Statement

getMyProcess

public ValidationProcess getMyProcess()

getStatementName

public java.lang.String getStatementName()

loadFromElement

public void loadFromElement(Element element,
                            ValidationProcess process,
                            Block block)
                     throws XMLLoadException
Description copied from interface: Statement
Nacte objekt z XML

Specified by:
loadFromElement in interface Statement
Parameters:
element - XML element odkud nacist
process - K jakemu procesu tenhle statement patri
block - K jakemu bloku patri
Throws:
XMLLoadException - Kdyz to nevyjde

getPath

public java.lang.String getPath()
Description copied from interface: Statement
Vrati retezcovou reprezentaci cesty k tomuto statementu (hodi se do vypisu chyb)

Specified by:
getPath in interface Statement
Returns:

getLineNumber

public int getLineNumber()

getColumnNumber

public int getColumnNumber()

pushPosition

protected int pushPosition(ValidationInfo info,
                           java.lang.String message)
Pushne tenhle statement do pozice

Parameters:
info -

pushPosition

protected int pushPosition(ValidationInfo info)

popPosition

protected void popPosition(ValidationInfo info,
                           java.lang.String message)

popPosition

protected void popPosition(ValidationInfo info)

getPosName

private java.lang.String getPosName(java.lang.String message)
Vrati retezec co se dava jako nazev pozice



Copyright © 2007 University of West Bohemia, KIV, author Lukas Valenta (lvalenta at civ.zcu.cz). All Rights Reserved. Build date 20110415.