Package | Description |
---|---|
claw.tatsu.xcodeml.xnode.common |
Modifier and Type | Method and Description |
---|---|
static Xattr |
Xattr.fromString(java.lang.String value) |
static Xattr |
Xattr.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Xattr[] |
Xattr.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
Xnode.copyAttribute(Xnode to,
Xattr attr)
Copy the attribute from the current node to the given node.
|
java.lang.String |
Xnode.getAttribute(Xattr attrCode)
Get the attribute's value.
|
boolean |
Xnode.getBooleanAttribute(Xattr attrCode)
Get boolean value of an attribute.
|
boolean |
Xnode.hasAttribute(Xattr attrCode)
Check whether the element has the corresponding attribute.
|
void |
Xnode.removeAttribute(Xattr attrCode)
Remove an attribute from the node.
|
void |
Xnode.setAttribute(Xattr attrCode,
java.lang.String value)
Set attribute value.
|
void |
Xnode.setBooleanAttribute(Xattr attrCode,
boolean value)
Set the value of a boolean attribute.
|