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 TypeMethodDescriptionvoid
acceptVisitor
(IAstVisitor<? super T, ?> visitor) boolean
final boolean
final boolean
void
clear()
boolean
boolean
firstOrNullObject
(Predicate<T> predicate) int
hashCode()
boolean
final void
insertAfter
(T existingItem, T newItem) final void
insertBefore
(T existingItem, T newItem) boolean
isEmpty()
iterator()
lastOrNullObject
(Predicate<T> predicate) final boolean
matches
(AstNodeCollection<T> other, Match match) void
moveTo
(Collection<T> destination) boolean
final void
replaceWith
(Iterable<T> nodes) int
size()
Object[]
toArray()
<T1> T1[]
toArray
(T1[] a) Methods inherited from class java.util.AbstractCollection
addAll, containsAll, removeAll, retainAll, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
size
in interfaceCollection<T extends AstNode>
- Specified by:
size
in classAbstractCollection<T extends AstNode>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<T extends AstNode>
- Overrides:
isEmpty
in classAbstractCollection<T extends AstNode>
-
hasSingleElement
public boolean hasSingleElement() -
contains
- Specified by:
contains
in interfaceCollection<T extends AstNode>
- Overrides:
contains
in classAbstractCollection<T extends AstNode>
-
iterator
-
toArray
- Specified by:
toArray
in interfaceCollection<T extends AstNode>
- Overrides:
toArray
in classAbstractCollection<T extends AstNode>
-
toArray
- Specified by:
toArray
in interfaceCollection<T extends AstNode>
- Overrides:
toArray
in classAbstractCollection<T extends AstNode>
-
add
- Specified by:
add
in interfaceCollection<T extends AstNode>
- Overrides:
add
in classAbstractCollection<T extends AstNode>
-
remove
- Specified by:
remove
in interfaceCollection<T extends AstNode>
- Overrides:
remove
in classAbstractCollection<T extends AstNode>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<T extends AstNode>
- Overrides:
clear
in classAbstractCollection<T extends AstNode>
-
moveTo
-
firstOrNullObject
-
firstOrNullObject
-
lastOrNullObject
-
lastOrNullObject
-
acceptVisitor
-
matches
-
anyMatch
-
anyMatch
-
hashCode
public int hashCode() -
equals
-
replaceWith
-
insertAfter
-
insertBefore
-