Class ElementTreeNode<E>
- java.lang.Object
-
- net.ssehub.easy.producer.ui.productline_editor.instantiator.TreeNode
-
- net.ssehub.easy.producer.ui.productline_editor.instantiator.ElementTreeNode<E>
-
- Type Parameters:
E- the element type
- Direct Known Subclasses:
AlternativeExpressionTreeNode,CallExpressionTreeNode,InstantiateExpressionTreeNode,JoinExpressionTreeNode,LoopExpressionTreeNode,RuleCallExpressionTreeNode,VariableDeclarationTreeNode,WhileTreeNode
abstract class ElementTreeNode<E> extends TreeNode
Implements an element node.- Author:
- Holger Eichelberger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.ssehub.easy.producer.ui.productline_editor.instantiator.TreeNode
TreeNode.Insertable, TreeNode.InsertionPoint
-
-
Constructor Summary
Constructors Constructor Description ElementTreeNode(TreeNode parent, E elt)Implements an element tree node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.StringargumentsToString(IArgumentProvider provider, int start)Turns the arguments to a string.(package private) java.lang.StringexpressionToString(Expression expression)Turns an expression into a string.(package private) EgetElement()Returns the element.(package private) TreeNode.InsertionPointsupportedInsertionPoint(TreeNode.Insertable insertable)Returns the supported insertion point within the tree forinsertable.-
Methods inherited from class net.ssehub.easy.producer.ui.productline_editor.instantiator.TreeNode
getChildren, getImage, getParent, getText, hasChildren, setChildren
-
-
-
-
Field Detail
-
elt
private E elt
-
-
Method Detail
-
getElement
E getElement()
Returns the element.- Returns:
- the element
-
argumentsToString
java.lang.String argumentsToString(IArgumentProvider provider, int start)
Turns the arguments to a string.- Parameters:
provider- the argument providerstart- the start argument index (typically 0)- Returns:
- the printed arguments
-
expressionToString
java.lang.String expressionToString(Expression expression)
Turns an expression into a string.- Parameters:
expression- the expression- Returns:
- the related VIL string representation
-
supportedInsertionPoint
TreeNode.InsertionPoint supportedInsertionPoint(TreeNode.Insertable insertable)
Description copied from class:TreeNodeReturns the supported insertion point within the tree forinsertable.- Specified by:
supportedInsertionPointin classTreeNode- Parameters:
insertable- the element to be inserted- Returns:
- the supported rule insertion point
-
-