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, validateOrConvertcheckTreeType, createConstant, createConstant, getAstInfo, getNamespace, parse, parseInNamespace, parseInNewNamespace, parseInNewNamespacebegin, end, getASTNode, getFullText, getText, line, parseIdentifierAst, parseQIDAst, setFullTextpublic ConstraintParser()
public ConstraintParser(NamespaceModel namespace, ConstraintTypeModule constraintModule)
namespace - constraintModule - public ConstraintAst parseConstraint(String string, Type targetType) throws ValidationException
string - targetType - ValidationExceptionpublic Parsed<ConstraintAst> parseConstraintLax(String string, Type targetType) throws ValidationException
string - targetType - ValidationExceptionpublic Parsed<AntlrConstraints> parseConstraintDefs(String source)
source - public Parsed<ConstraintDefAst> parseConstraintDef(AntlrConstraint constraint)
constraint - Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.