Package com._1c.g5.v8.dt.bsl.common
Class ValidatorProcessor
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.common.ValidatorProcessor
-
public abstract class ValidatorProcessor extends Object
Special processor for validation Bsl module content.
-
-
Constructor Summary
Constructors Constructor Description ValidatorProcessor(Block block, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)
Initialize withBlock
ValidatorProcessor(Block block, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
Initialize withBlock
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
doProcessInternal(Conditional cond)
ProcessingConditional
protected void
doProcessInternal(FunctionStyleCreator expr)
ProcessingFunctionStyleCreator
protected void
doProcessInternal(IfStatement stat)
ProcessingIfStatement
protected void
doProcessInternal(OperatorStyleCreator expr)
ProcessingOperatorStyleCreator
protected void
doProcessInternal(TryExceptStatement stat)
ProcessingTryExceptStatement
protected abstract <T extends org.eclipse.emf.ecore.EObject>
voiddoValidate(T object, Class<T> clazz)
Validates concrete object of Bsl moduleorg.eclipse.xtext.util.CancelIndicator
getCancelIndicator()
Gets actual cancel indicatorMap<Object,Object>
getContext()
Gets actual validator contextorg.eclipse.emf.common.util.DiagnosticChain
getDiagnostics()
Gets actualDiagnosticChain
protected boolean
isCanceled()
Checks that execution is canceledvoid
validate()
Start validating for all content inBlock
-
-
-
Constructor Detail
-
ValidatorProcessor
public ValidatorProcessor(Block block, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)
Initialize withBlock
- Parameters:
block
-Block
part of module content, can't benull
diagnostics
- actualDiagnosticChain
, can't benull
context
- actual validator context, can't benull
-
ValidatorProcessor
public ValidatorProcessor(Block block, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
Initialize withBlock
- Parameters:
block
-Block
part of module content, can't benull
diagnostics
- actualDiagnosticChain
, can't benull
context
- actual validator context, can't benull
cancel
- indicator (notnull
)
-
-
Method Detail
-
getCancelIndicator
public org.eclipse.xtext.util.CancelIndicator getCancelIndicator()
Gets actual cancel indicator- Returns:
- the actual cancel indicator, never
null
-
getDiagnostics
public org.eclipse.emf.common.util.DiagnosticChain getDiagnostics()
Gets actualDiagnosticChain
- Returns:
- actual
DiagnosticChain
, nevernull
-
getContext
public Map<Object,Object> getContext()
Gets actual validator context- Returns:
- actual validator context, never
null
-
validate
public void validate()
Start validating for all content inBlock
-
doValidate
protected abstract <T extends org.eclipse.emf.ecore.EObject> void doValidate(T object, Class<T> clazz)
Validates concrete object of Bsl module- Parameters:
object
- validating object, can't benull
-
doProcessInternal
protected void doProcessInternal(TryExceptStatement stat)
ProcessingTryExceptStatement
- Parameters:
stat
-TryExceptStatement
, can't benull
-
doProcessInternal
protected void doProcessInternal(IfStatement stat)
ProcessingIfStatement
- Parameters:
stat
-IfStatement
, can't benull
-
doProcessInternal
protected void doProcessInternal(Conditional cond)
ProcessingConditional
- Parameters:
stat
-Conditional
, can't benull
-
isCanceled
protected boolean isCanceled()
Checks that execution is canceled- Returns:
true
in case execution is canceled,false
otherwise
-
doProcessInternal
protected void doProcessInternal(FunctionStyleCreator expr)
ProcessingFunctionStyleCreator
- Parameters:
expr
- processingFunctionStyleCreator
, can't benull
-
doProcessInternal
protected void doProcessInternal(OperatorStyleCreator expr)
ProcessingOperatorStyleCreator
- Parameters:
expr
- processingOperatorStyleCreator
, can't benull
-
-