Class ExportNode

java.lang.Object
com.oracle.js.parser.ir.Node
com.oracle.js.parser.ir.ExportNode
All Implemented Interfaces:
Cloneable

public class ExportNode extends Node
  • Constructor Details

    • ExportNode

      public ExportNode(long token, int start, int finish, PropertyKey ident, FromNode from, Map<com.oracle.truffle.api.strings.TruffleString,com.oracle.truffle.api.strings.TruffleString> assertions)
    • ExportNode

      public ExportNode(long token, int start, int finish, NamedExportsNode exportClause, FromNode from, Map<com.oracle.truffle.api.strings.TruffleString,com.oracle.truffle.api.strings.TruffleString> assertions)
    • ExportNode

      public ExportNode(long token, int start, int finish, PropertyKey ident, Expression expression, boolean isDefault)
    • ExportNode

      public ExportNode(long token, int start, int finish, PropertyKey ident, VarNode var)
  • Method Details

    • getNamedExports

      public NamedExportsNode getNamedExports()
    • getFrom

      public FromNode getFrom()
    • getExportIdentifier

      public PropertyKey getExportIdentifier()
    • getVar

      public VarNode getVar()
    • getExpression

      public Expression getExpression()
    • isDefault

      public boolean isDefault()
    • getAssertions

      public Map<com.oracle.truffle.api.strings.TruffleString,com.oracle.truffle.api.strings.TruffleString> getAssertions()
    • setExportClause

      public ExportNode setExportClause(NamedExportsNode exportClause)
    • setFrom

      public ExportNode setFrom(FromNode from)
    • accept

      public Node accept(NodeVisitor<? extends LexicalContext> visitor)
      Description copied from class: Node
      Provides a means to navigate the IR.
      Specified by:
      accept in class Node
      Parameters:
      visitor - Node visitor.
      Returns:
      node the node or its replacement after visitation, null if no further visitations are required
    • accept

      public <R> R accept(TranslatorNodeVisitor<? extends LexicalContext,R> visitor)
      Description copied from class: Node
      Provides a means to navigate the IR.
      Specified by:
      accept in class Node
      Parameters:
      visitor - Node visitor.
      Returns:
      node the node or its replacement after visitation, null if no further visitations are required
    • toString

      public void toString(StringBuilder sb, boolean printType)
      Description copied from class: Node
      Print logic that decides whether to show the optimistic type or not - for example it should not be printed after just parse, when it hasn't been computed, or has been set to a trivially provable value
      Specified by:
      toString in class Node
      Parameters:
      sb - string builder
      printType - print type?