public class ConstraintParser extends Parser
DEBUG, DEBUG_ELEMENT_ID, DEBUG_PROPERTY
Constructor and Description |
---|
ConstraintParser()
Creates a new instance of a constraint parser.
|
ConstraintParser(NamespaceModel namespace,
ConstraintTypeModule constraintModule)
Creates a new instance of a constraint parser.
|
Modifier and Type | Method and Description |
---|---|
ConstraintAst |
parseConstraint(String string,
Type targetType)
Parses a constraint.
|
Parsed<ConstraintDefAst> |
parseConstraintDef(AntlrConstraint constraint) |
Parsed<AntlrConstraints> |
parseConstraintDefs(String source)
Parse constraints.
|
Parsed<ConstraintAst> |
parseConstraintLax(String string,
Type targetType)
Parses a constraint.
|
addVariableListener, checkNamespace, createDateLiteral, createTypeParser, debugLine, error, getAccessiblePropertyVisibility, getFreeTypes, getVariableFactory, intern, isPropertyReadonly, parse, parse, parseDateLiteral, parseLax, parseNoCheck, parseType, removeVariableListener, setDebugLineOffset, setFreeTypes, setIntern, validateControlExpressions, validateOrConvert
checkTreeType, createConstant, createConstant, getAstInfo, getNamespace, parse, parseInNamespace, parseInNewNamespace, parseInNewNamespace
begin, end, getASTNode, getFullText, getText, line, parseIdentifierAst, parseQIDAst, setFullText
public ConstraintParser()
public ConstraintParser(NamespaceModel namespace, ConstraintTypeModule constraintModule)
namespace
- constraintModule
- public ConstraintAst parseConstraint(String string, Type targetType) throws ValidationException
string
- targetType
- ValidationException
public Parsed<ConstraintAst> parseConstraintLax(String string, Type targetType) throws ValidationException
string
- targetType
- ValidationException
public Parsed<AntlrConstraints> parseConstraintDefs(String source)
source
- public Parsed<ConstraintDefAst> parseConstraintDef(AntlrConstraint constraint)
constraint
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.