public interface AstNodeAttributeInterface
| Modifier and Type | Method and Description |
|---|---|
void |
clearAttributes()
Removes all attributes from this node.
|
Object |
getAttribute(String name)
Retrieve the value of an attribute.
|
Map<String,Object> |
getAttributes()
Retrieve the attributes as an unmodifiable map.
|
boolean |
getBooleanAttribute(String name)
Retrieve the value of a boolean attribute.
|
int |
getIntAttribute(String name)
Retrieve the value of an integer attribute.
|
String |
getStringAttribute(String name)
Retrieve the value of a string attribute.
|
boolean |
hasAttribute(String name)
Check whether a certain attribute is attached to this node.
|
boolean |
hasAttributes()
Tell whether this node has any attributes attached.
|
Object |
removeAttribute(String name)
Remove an attribute from this node.
|
Object |
setAttribute(String name,
Object value)
Assign an attribute to this node.
|
void |
setAttributes(Map<String,Object> attrs)
Set the attributes for this node.
|
boolean |
setBooleanAttribute(String name,
boolean value)
Assign a boolean attribute to this node.
|
Integer |
setIntAttribute(String name,
Integer value)
Assign an integer attribute to this node.
|
String |
setStringAttribute(String name,
String value)
Assign an string attribute to this node.
|
boolean hasAttributes()
True if this node has any attributes attached,
otherwise false.Map<String,Object> getAttributes()
void setAttributes(Map<String,Object> attrs)
attrs - The attributes to attach to this node.void clearAttributes()
boolean hasAttribute(String name)
name - The name of the attribute to test.True if an attribute with the respective name is
attached to this node, false otherwise.Object getAttribute(String name)
name - The name of the attribute to retrieve.null if the
attribute does not exist.Object setAttribute(String name, Object value)
name - The name of the attribute.value - The value associated with the attribute.Object removeAttribute(String name)
name - The name of the attribute to remove.int getIntAttribute(String name)
name - The name of the integer attribute to retrieve.0
if the attribute does not exist.Integer setIntAttribute(String name, Integer value)
name - The name of the attribute.value - The integer value associated with the attribute.boolean getBooleanAttribute(String name)
name - The name of the boolean attribute to retrieve.false if the attribute does not exist.boolean setBooleanAttribute(String name, boolean value)
name - The name of the attribute.value - The boolean value associated with the attribute.null if the attribute does not exist yet.String getStringAttribute(String name)
name - The name of the string attribute to retrieve.null
if the attribute does not exist.String setStringAttribute(String name, String value)
name - The name of the attribute.value - The String value associated with the attribute.Copyright © 2009–2017 University of Erlangen-Nürnberg - Open Source Research Group. All rights reserved.