public final class Body
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
append(Xnode masterBody,
Xnode slaveBody)
Append the slave body to the master body.
|
static boolean |
isEmpty(Xnode body)
Check whether a body is empty.
|
static void |
shiftIn(Xnode from,
Xnode until,
Xnode targetBody,
boolean included)
Shift all statements from the first siblings of the "from" element until
the "until" element if "included" is true.
|
public static void append(Xnode masterBody, Xnode slaveBody) throws IllegalTransformationException
masterBody - Master body node.slaveBody - Slave body bode.IllegalTransformationException - If given nodes are null or not body
nodes.public static void shiftIn(Xnode from, Xnode until, Xnode targetBody, boolean included) throws IllegalTransformationException
from - Start element for the swifting.until - End element for the swifting.targetBody - Body element in which statements are inserted.included - If true, until element is shifted.IllegalTransformationException - If one element is null or the
targetBody element is not a body
element.public static boolean isEmpty(Xnode body) throws IllegalTransformationException
body - Body element to check.IllegalTransformationException - If given element is null or not
a body element.