gnu.kawa.xml
Class NodeType
public
class
NodeType
extends ObjectType
implements TypeValue, NodePredicate, Externalizable
A SeqPosition used to represent a node in (usually) a TreeList.
This is special in that the represented node is the current position
of the SeqPosition - but when passed to a method it is only valid
during that method. After the method returns, the caller is free to
change the position, so if the node is saved in a data structure it
must be copied.
Method Summary |
static KNode | coerceForce(Object obj, int kinds) |
Object | coerceFromObject(Object obj) |
static KNode | coerceOrNull(Object obj, int kinds) |
int | compare(Type other) |
void | emitCoerceFromObject(CodeAttr code) |
protected void | emitCoerceOrNullMethod(Variable incoming, Compilation comp) |
void | emitIsInstance(Variable incoming, Compilation comp, Target target) |
void | emitTestIf(Variable incoming, Declaration decl, Compilation comp) |
Procedure | getConstructor() |
Type | getImplementationType() |
boolean | isInstance(Object obj) |
static boolean | isInstance(AbstractSequence seq, int ipos, int kinds) |
boolean | isInstancePos(AbstractSequence seq, int ipos) |
void | readExternal(ObjectInput in) |
String | toString() |
void | writeExternal(ObjectOutput out) |
public static final int ATTRIBUTE_OK
public static final
NodeType anyNodeTest
public static final
NodeType commentNodeTest
public static final int COMMENT_OK
public static final
NodeType documentNodeTest
public static final int DOCUMENT_OK
public static final int ELEMENT_OK
public static final int PI_OK
public static final
NodeType textNodeTest
public static final int TEXT_OK
public NodeType(String name, int kinds)
public NodeType(String name)
public static
KNode coerceForce(Object obj, int kinds)
public Object coerceFromObject(Object obj)
public static
KNode coerceOrNull(Object obj, int kinds)
public int compare(
Type other)
public void emitCoerceFromObject(
CodeAttr code)
public
Type getImplementationType()
public boolean isInstance(Object obj)
public void readExternal(ObjectInput in)
public String toString()
public void writeExternal(ObjectOutput out)