Package org.btrplace.btrpsl.tree
Class EnumElement
java.lang.Object
org.antlr.runtime.tree.BaseTree
org.antlr.runtime.tree.CommonTree
org.btrplace.btrpsl.tree.BtrPlaceTree
org.btrplace.btrpsl.tree.EnumElement
- All Implemented Interfaces:
org.antlr.runtime.tree.Tree
public class EnumElement extends BtrPlaceTree
An enumeration of either nodes or virtual machines.
- Author:
- Fabien Hermenier
-
Field Summary
-
Constructor Summary
Constructors Constructor Description EnumElement(org.antlr.runtime.Token payload, NamingService<Node> srvNodes, NamingService<VM> srvVMs, Script v, BtrpOperand.Type ty, ErrorReporter errors)
Make a new tree. -
Method Summary
Modifier and Type Method Description BtrpOperand
expand()
Expand the enumeration.BtrpOperand
go(BtrPlaceTree parent)
Parse the root of the tree.Methods inherited from class org.btrplace.btrpsl.tree.BtrPlaceTree
append, getChild, ignoreError, ignoreError, ignoreError, ignoreErrors
Methods inherited from class org.antlr.runtime.tree.CommonTree
dupNode, getCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toString
Methods inherited from class org.antlr.runtime.tree.BaseTree
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChildCount, getChildren, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree
-
Constructor Details
-
EnumElement
public EnumElement(org.antlr.runtime.Token payload, NamingService<Node> srvNodes, NamingService<VM> srvVMs, Script v, BtrpOperand.Type ty, ErrorReporter errors)Make a new tree.- Parameters:
payload
- the root tokensrvNodes
- the Naming Service for the nodessrvVMs
- the Naming Service for the VMsv
- the script being checkty
- the type of the elements in the enumerationerrors
- the errors to report
-
-
Method Details
-
expand
Expand the enumeration. Elements are not evaluated- Returns:
- a set of string or an error
-
go
Description copied from class:BtrPlaceTree
Parse the root of the tree.- Overrides:
go
in classBtrPlaceTree
- Parameters:
parent
- the parent of the root- Returns:
- a content
-