Class AstNodeCollection<T extends AstNode>
java.lang.Object
java.util.AbstractCollection<T>
com.strobel.decompiler.languages.java.ast.AstNodeCollection<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptVisitor(IAstVisitor<? super T, ?> visitor) booleanfinal booleanfinal booleanvoidclear()booleanbooleanfirstOrNullObject(Predicate<T> predicate) inthashCode()booleanfinal voidinsertAfter(T existingItem, T newItem) final voidinsertBefore(T existingItem, T newItem) booleanisEmpty()iterator()lastOrNullObject(Predicate<T> predicate) final booleanmatches(AstNodeCollection<T> other, Match match) voidmoveTo(Collection<T> destination) booleanfinal voidreplaceWith(Iterable<T> nodes) intsize()Object[]toArray()<T1> T1[]toArray(T1[] a) Methods inherited from class java.util.AbstractCollection
addAll, containsAll, removeAll, retainAll, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
Field Details
-
_node
-
_role
-
-
Constructor Details
-
AstNodeCollection
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<T extends AstNode>- Specified by:
sizein classAbstractCollection<T extends AstNode>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T extends AstNode>- Overrides:
isEmptyin classAbstractCollection<T extends AstNode>
-
hasSingleElement
public boolean hasSingleElement() -
contains
- Specified by:
containsin interfaceCollection<T extends AstNode>- Overrides:
containsin classAbstractCollection<T extends AstNode>
-
iterator
-
toArray
- Specified by:
toArrayin interfaceCollection<T extends AstNode>- Overrides:
toArrayin classAbstractCollection<T extends AstNode>
-
toArray
- Specified by:
toArrayin interfaceCollection<T extends AstNode>- Overrides:
toArrayin classAbstractCollection<T extends AstNode>
-
add
- Specified by:
addin interfaceCollection<T extends AstNode>- Overrides:
addin classAbstractCollection<T extends AstNode>
-
remove
- Specified by:
removein interfaceCollection<T extends AstNode>- Overrides:
removein classAbstractCollection<T extends AstNode>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T extends AstNode>- Overrides:
clearin classAbstractCollection<T extends AstNode>
-
moveTo
-
firstOrNullObject
-
firstOrNullObject
-
lastOrNullObject
-
lastOrNullObject
-
acceptVisitor
-
matches
-
anyMatch
-
anyMatch
-
hashCode
public int hashCode() -
equals
-
replaceWith
-
insertAfter
-
insertBefore
-