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

    Fields inherited from class org.btrplace.btrpsl.tree.BtrPlaceTree

    errors

    Fields inherited from class org.antlr.runtime.tree.CommonTree

    childIndex, parent, startIndex, stopIndex, token

    Fields inherited from class org.antlr.runtime.tree.BaseTree

    children

    Fields inherited from interface org.antlr.runtime.tree.Tree

    INVALID_NODE
  • 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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' token
      incs - the list of available includes
      sTable - the symbol table.
      scr - the currently built script
      errs - the list of errors.
  • Method Details