public class ParentEventInformation extends java.lang.Object
Constructor and Description |
---|
ParentEventInformation() |
Modifier and Type | Method and Description |
---|---|
protected void |
add(JPhyloIOEvent event) |
JPhyloIOEvent |
getDirectParent() |
EventContentType |
getDirectParentContentType() |
JPhyloIOEvent |
getParentFromBottom(int index) |
JPhyloIOEvent |
getParentFromTop(int index) |
boolean |
isEmpty() |
boolean |
isParentSequence(EventContentType... types)
Checks whether the current parent events have the specified content type(s).
|
protected void |
pop() |
int |
size() |
public ParentEventInformation()
protected void add(JPhyloIOEvent event)
protected void pop()
public int size()
public boolean isEmpty()
public JPhyloIOEvent getDirectParent()
public EventContentType getDirectParentContentType()
public JPhyloIOEvent getParentFromBottom(int index)
public JPhyloIOEvent getParentFromTop(int index)
public boolean isParentSequence(EventContentType... types)
types
- the expected content types of the parent events (The first parameter must match the direct parent,
the second the grandparent and so on.)true
the lowest elements in the sequence of parent events have the specified content types in the
specified order or false
otherwisejava.lang.NullPointerException
- if at least one specified content type is null