Methods Summary |
---|
protected void | calcFirstPos(CMStateSet toSet)
// If we are an epsilon node, then the first pos is an empty set
if (fPosition == -1)
toSet.zeroBits();
// Otherwise, its just the one bit of our position
else
toSet.setBit(fPosition);
|
protected void | calcLastPos(CMStateSet toSet)
// If we are an epsilon node, then the last pos is an empty set
if (fPosition == -1)
toSet.zeroBits();
// Otherwise, its just the one bit of our position
else
toSet.setBit(fPosition);
|
final org.apache.xerces.xni.QName | getElement()
return fElement;
|
final int | getPosition()
return fPosition;
|
public boolean | isNullable()
// Leaf nodes are never nullable unless its an epsilon node
return (fPosition == -1);
|
final void | setPosition(int newPosition)
fPosition = newPosition;
|
public java.lang.String | toString()
StringBuffer strRet = new StringBuffer(fElement.toString());
strRet.append(" (");
strRet.append(fElement.uri);
strRet.append(',");
strRet.append(fElement.localpart);
strRet.append(')");
if (fPosition >= 0) {
strRet.append(" (Pos:")
.append(Integer.toString(fPosition))
.append(')");
}
return strRet.toString();
|