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, toString
contains, getBeginIndex, getEndIndex, getLength
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
contains, getBeginIndex, getEndIndex, getLength
public 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
- null
public TypeMapping getTypeMapping()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.