public class ConstraintAst extends ASTNodeImpl
| Constructor and Description |
|---|
ConstraintAst(ASTNode node,
QIDAst constraintTypeAst,
List<ParameterAst> parameters,
TypeMapping freeTypeMapping,
ConstraintTypeInfo constraintTypeInfo)
Creates a constraint instance.
|
| Modifier and Type | Method and Description |
|---|---|
QID |
getConstraintType()
Returns the constraint type qualified name (may be simple or full).
|
QIDAst |
getConstraintTypeAst() |
ConstraintTypeInfo |
getConstraintTypeInfo()
Returns the associated constraint type info.
|
ParameterAst |
getParameter(int index) |
int |
getParameterCount() |
Expression |
getParameterExpression(int index) |
Expression |
getParameterExpression(String name) |
IdentifierAst |
getParameterName(int index) |
List<ParameterAst> |
getParameters()
Returns the unmodifiable list of parameters.
|
TypeMapping |
getTypeMapping() |
getFullText, getLine, getNodeText, getText, toStringcontains, getBeginIndex, getEndIndex, getLengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontains, getBeginIndex, getEndIndex, getLengthpublic ConstraintAst(ASTNode node, QIDAst constraintTypeAst, List<ParameterAst> parameters, TypeMapping freeTypeMapping, ConstraintTypeInfo constraintTypeInfo)
node - constraintTypeAst - parameters - freeTypeMapping - constraintTypeInfo - public QIDAst getConstraintTypeAst()
public QID getConstraintType()
public ConstraintTypeInfo getConstraintTypeInfo()
public List<ParameterAst> getParameters()
public int getParameterCount()
public ParameterAst getParameter(int index)
index - public IdentifierAst getParameterName(int index)
index - public Expression getParameterExpression(int index)
index - public Expression getParameterExpression(String name)
name - nullpublic TypeMapping getTypeMapping()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.