Package org.btrplace.btrpsl.tree
Class ImportStatement
java.lang.Object
org.antlr.runtime.tree.BaseTree
org.antlr.runtime.tree.CommonTree
org.btrplace.btrpsl.tree.BtrPlaceTree
org.btrplace.btrpsl.tree.ImportStatement
- All Implemented Interfaces:
org.antlr.runtime.tree.Tree
public class ImportStatement extends BtrPlaceTree
Statement to import some other script wrt. their namespace.
If a valid namespace is found. Then, the current symbol table will be
completed with the exported variables. In case of conflicts, conflicting
variables are removed. This should only occurs with short variables. Fully Qualified
variable names should not be affected.
- Author:
- Fabien Hermenier
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ImportStatement(org.antlr.runtime.Token t, Includes incs, SymbolsTable sTable, Script scr, ErrorReporter errs)
Make a new statement -
Method Summary
Modifier and Type Method Description 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
-
ImportStatement
public ImportStatement(org.antlr.runtime.Token t, Includes incs, SymbolsTable sTable, Script scr, ErrorReporter errs)Make a new statement- Parameters:
t
- the 'IMPORT' tokenincs
- the list of available includessTable
- the symbol table.scr
- the currently built scripterrs
- the list of errors.
-
-
Method Details
-
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
-