org.zkoss.zuss.metainfo
Interface NodeInfo

All Known Implementing Classes:
ArgumentDefinition, BlockDefinition, ConstantValue, Expression, FunctionDefinition, FunctionValue, IfDefinition, MediaDefinition, MixinDefinition, Operator, RawValue, RuleDefinition, StyleDefinition, VariableDefinition, VariableValue, ZussDefinition

public interface NodeInfo

Represents a node in a ZUSS metainfo tree.

Author:
tomyeh

Method Summary
 void appendChild(NodeInfo child)
          Append a child
 java.util.List<NodeInfo> getChildren()
          Returns a readonly list of children.
 int getLine()
          Returns the line number of this info.
 NodeInfo getParent()
          Returns the parent, or null if it is the root.
 boolean removeChild(NodeInfo child)
          Removes a child.
 

Method Detail

getParent

NodeInfo getParent()
Returns the parent, or null if it is the root.


getChildren

java.util.List<NodeInfo> getChildren()
Returns a readonly list of children.

Note: the returned list is readonly. To modify, please use appendChild(org.zkoss.zuss.metainfo.NodeInfo) and removeChild(org.zkoss.zuss.metainfo.NodeInfo) instead.


appendChild

void appendChild(NodeInfo child)
Append a child


removeChild

boolean removeChild(NodeInfo child)
Removes a child.


getLine

int getLine()
Returns the line number of this info.



Copyright © 2005-2010 Potix Corporation. All Rights Reserved.