public class AstNodeListImpl<T extends AstNode<T>> extends AstAbstractInnerNode<T> implements AstNodeList<T>
null as node.AstNodeListImpl as node.AstNodeListImpl.AstAbstractInnerNode.AstInnerNode1<T extends AstNode<T>>, AstAbstractInnerNode.AstInnerNode2<T extends AstNode<T>>, AstAbstractInnerNode.AstInnerNode3<T extends AstNode<T>>, AstAbstractInnerNode.AstInnerNode4<T extends AstNode<T>>modCountEMPTY_CHILD_NAMES, NT_CUSTOM_BIT, NT_NODE_LIST, NT_PARSER_ENTITY, NT_TEXT, NT_TUPLE_1, NT_TUPLE_2, NT_TUPLE_3, NT_TUPLE_4, NT_TUPLE_5, NT_UNTYPED| Constructor and Description |
|---|
AstNodeListImpl() |
AstNodeListImpl(Collection<? extends T> list) |
AstNodeListImpl(xtc.util.Pair<? extends T> list) |
AstNodeListImpl(T... children) |
AstNodeListImpl(T child) |
AstNodeListImpl(T car,
xtc.util.Pair<? extends T> cdr) |
AstNodeListImpl(T a,
T b) |
AstNodeListImpl(T a,
T b,
T c) |
AstNodeListImpl(T a,
T b,
T c,
T d) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T element) |
boolean |
add(T e) |
boolean |
addAll(Collection<? extends T> c) |
boolean |
addAll(int index,
Collection<? extends T> c) |
boolean |
addAll(xtc.util.Pair<? extends T> p)
Appends all items from the given list to list of children.
|
void |
clear() |
Object |
clone() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
void |
exchange(AstNodeList<T> other) |
T |
get(int index) |
String[] |
getChildNames()
Returns the names of the children.
|
int |
getNodeType()
Returns an integer value that identifies the node type.
|
int |
indexOf(Object o) |
boolean |
isEmpty() |
boolean |
isList()
Determine whether this node can have a variable number of children and
implements the
List interface (or parts of it). |
Iterator<T> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int index) |
T |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
T |
set(int index,
T value) |
int |
size() |
List<T> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<S> S[] |
toArray(S[] a) |
void |
toString(Appendable out) |
getclearAttributes, cloneWrapException, deepClone, deepCloneWrapException, equals, equalsNoTypeCheck, getAttribute, getAttributes, getBooleanAttribute, getIntAttribute, getLocation, getNativeLocation, getNodeName, getNodeTypeName, getProperty, getProperty, getPropertyCount, getStringAttribute, hasAttribute, hasAttributes, hasLocation, hasProperties, hasProperty, isNodeType, propertyIterator, removeAttribute, setAttribute, setAttributes, setBooleanAttribute, setIntAttribute, setLocation, setLocation, setNativeLocation, setProperty, setStringAttribute, toStringhashCode, removeRangefinalize, getClass, notify, notifyAll, wait, wait, waitcloneWrapException, deepClone, deepCloneWrapException, equals, get, getNativeLocation, getNodeName, getNodeTypeName, isNodeType, setNativeLocationclearAttributes, getAttribute, getAttributes, getBooleanAttribute, getIntAttribute, getStringAttribute, hasAttribute, hasAttributes, removeAttribute, setAttribute, setAttributes, setBooleanAttribute, setIntAttribute, setStringAttributegetProperty, getProperty, getPropertyCount, hasProperties, hasProperty, propertyIterator, setPropertygetLocation, hasLocation, setLocation, setLocationhashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streampublic AstNodeListImpl()
public AstNodeListImpl(T child)
public AstNodeListImpl(xtc.util.Pair<? extends T> list)
public AstNodeListImpl(Collection<? extends T> list)
public AstNodeListImpl(T... children)
public int getNodeType()
AstNodeImplgetNodeType in interface AstNode<T extends AstNode<T>>getNodeType in class AstNodeImpl<T extends AstNode<T>>public int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <S> S[] toArray(S[] a)
public boolean add(T e)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T extends AstNode<T>>containsAll in interface List<T extends AstNode<T>>containsAll in class AbstractCollection<T extends AstNode<T>>public boolean addAll(Collection<? extends T> c)
public boolean addAll(int index,
Collection<? extends T> c)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public void clear()
public T get(int index)
public void add(int index,
T element)
public T remove(int index)
public int indexOf(Object o)
public int lastIndexOf(Object o)
lastIndexOf in interface List<T extends AstNode<T>>lastIndexOf in class AbstractList<T extends AstNode<T>>public ListIterator<T> listIterator()
listIterator in interface List<T extends AstNode<T>>listIterator in class AbstractList<T extends AstNode<T>>public ListIterator<T> listIterator(int index)
listIterator in interface List<T extends AstNode<T>>listIterator in class AbstractList<T extends AstNode<T>>public boolean addAll(xtc.util.Pair<? extends T> p)
AstNodeImplpublic boolean isList()
AstNodeImplList interface (or parts of it).public String[] getChildNames()
AstNodeImplgetChildNames in interface AstNode<T extends AstNode<T>>getChildNames in class AstAbstractInnerNode<T extends AstNode<T>>public void toString(Appendable out) throws IOException
public void exchange(AstNodeList<T> other)
exchange in interface AstNodeList<T extends AstNode<T>>public Object clone() throws CloneNotSupportedException
Copyright © 2009–2017 University of Erlangen-Nürnberg - Open Source Research Group. All rights reserved.