Package step.repositories.parser
Class ParsingContext
- java.lang.Object
-
- step.repositories.parser.ParsingContext
-
public class ParsingContext extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ParsingContext.ParsingError
protected static class
ParsingContext.StackEntry
-
Field Summary
Fields Modifier and Type Field Description protected List<ParsingContext.ParsingError>
parsingErrors
-
Constructor Summary
Constructors Constructor Description ParsingContext(ParsingContext parent)
ParsingContext(StepsParser stepParser, FunctionAccessor functionAccessor, PlanAccessor planAccessor, ch.exense.commons.app.Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addArtefactToCurrentParent(AbstractArtefact artefact)
void
addArtefactToCurrentParentAndPush(AbstractArtefact artefact)
void
addParsingError(String errorMsg)
ch.exense.commons.app.Configuration
getConfiguration()
AbstractStep
getCurrentStep()
FunctionAccessor
getFunctionAccessor()
PlanAccessor
getPlanAccessor()
StepsParser
getStepParser()
boolean
isArtefactStackEmpty()
void
parseStep(AbstractStep step)
void
parseStep(ParsingContext parsingContext, AbstractStep step)
protected ParsingContext.StackEntry
peek()
AbstractArtefact
peekCurrentArtefact()
protected ParsingContext.StackEntry
pop()
AbstractArtefact
popCurrentArtefact()
void
pushArtefact(AbstractArtefact artefact)
protected void
setCurrentStep(AbstractStep currentStep)
-
-
-
Field Detail
-
parsingErrors
protected List<ParsingContext.ParsingError> parsingErrors
-
-
Constructor Detail
-
ParsingContext
public ParsingContext(StepsParser stepParser, FunctionAccessor functionAccessor, PlanAccessor planAccessor, ch.exense.commons.app.Configuration configuration)
-
ParsingContext
public ParsingContext(ParsingContext parent)
-
-
Method Detail
-
getStepParser
public StepsParser getStepParser()
-
getCurrentStep
public AbstractStep getCurrentStep()
-
setCurrentStep
protected void setCurrentStep(AbstractStep currentStep)
-
addArtefactToCurrentParent
public void addArtefactToCurrentParent(AbstractArtefact artefact)
-
addArtefactToCurrentParentAndPush
public void addArtefactToCurrentParentAndPush(AbstractArtefact artefact)
-
pushArtefact
public void pushArtefact(AbstractArtefact artefact)
-
pop
protected ParsingContext.StackEntry pop()
-
popCurrentArtefact
public AbstractArtefact popCurrentArtefact()
-
isArtefactStackEmpty
public boolean isArtefactStackEmpty()
-
peek
protected ParsingContext.StackEntry peek()
-
peekCurrentArtefact
public AbstractArtefact peekCurrentArtefact()
-
parseStep
public void parseStep(AbstractStep step)
-
parseStep
public void parseStep(ParsingContext parsingContext, AbstractStep step)
-
getFunctionAccessor
public FunctionAccessor getFunctionAccessor()
-
getPlanAccessor
public PlanAccessor getPlanAccessor()
-
getConfiguration
public ch.exense.commons.app.Configuration getConfiguration()
-
addParsingError
public void addParsingError(String errorMsg)
-
-