public class SeqIndexOf extends Operator
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 |
---|---|
|
SeqIndexOf(Expression seq,
Expression elem)
Creates an "index of" operator.
|
protected |
SeqIndexOf(SeqIndexOf proto) |
Modifier and Type | Method and Description |
---|---|
void |
accept(SourceVisitor v) |
SeqIndexOf |
deepClone() |
int |
getArity() |
int |
getNotation() |
int |
getPrecedence() |
java.lang.String |
toSource() |
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, toString, wait, wait, wait
getIndexOfChild, getIndexOfChild, getRoleOfChild, makeAllParentRolesValid, validateAll
getComments, setComments
getEndPosition, getFactory, getRelativePosition, getStartPosition, setEndPosition, setRelativePosition, setStartPosition
validate
private static final long serialVersionUID
public SeqIndexOf(Expression seq, Expression elem)
seq
- Sequence to operate onelem
- The element to look for in the sequenceprotected SeqIndexOf(SeqIndexOf proto)
public SeqIndexOf deepClone()
public int getPrecedence()
getPrecedence
in class Operator
public int getNotation()
getNotation
in class Operator
public void accept(SourceVisitor v)
public java.lang.String toSource()
toSource
in interface SourceElement
toSource
in class JavaSourceElement