public class SeqGet extends ADTPrefixConstruct
ProgramElement.TreeStructure
SourceElement.Position
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
children, expressionParent, INFIX, POSTFIX, PREFIX
comments
factory
STRUCTURAL_EQUALITY, STRUCTURAL_HASH_CODE
Modifier | Constructor and Description |
---|---|
|
SeqGet(Expression seq,
Expression idx)
Creates a sequence getter operator.
|
protected |
SeqGet(SeqGet proto) |
Modifier and Type | Method and Description |
---|---|
SeqGet |
deepClone() |
int |
getArity() |
int |
getNotation() |
java.lang.String |
toSource() |
accept, getPrecedence, getReferenceSuffix, setReferenceSuffix, toString
getArguments, getASTParent, getChildAt, getChildCount, getChildPositionCode, getExpressionAt, getExpressionContainer, getExpressionCount, getFirstElement, getLastElement, isLeftAssociative, isToBeParenthesized, makeParentRoleValid, precedes, replaceChild, setArguments, setExpressionContainer
getIndexOfChild, getIndexOfChild, getRoleOfChild, makeAllParentRolesValid, validateAll
getComments, setComments, validate
getEndPosition, getFactory, getRelativePosition, getStartPosition, setEndPosition, setRelativePosition, setStartPosition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getASTParent, getComments, setComments
getEndPosition, getFactory, getFirstElement, getLastElement, getRelativePosition, getStartPosition, setEndPosition, setRelativePosition, setStartPosition
validate
getIndexOfChild, getIndexOfChild, getRoleOfChild, makeAllParentRolesValid, validateAll
private static final long serialVersionUID
public SeqGet(Expression seq, Expression idx)
seq
- Sequence to operate onidx
- Index position (from 0 to length-1)protected SeqGet(SeqGet proto)
public SeqGet deepClone()
public int getNotation()
getNotation
in class Operator
public java.lang.String toSource()
toSource
in interface SourceElement
toSource
in class JavaSourceElement