Class BSHPackageDeclaration

  • All Implemented Interfaces:
    java.io.Serializable

    public class BSHPackageDeclaration
    extends java.lang.Object
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.gjt.sp.jedit.bsh.Node[] children  
      protected int id  
      static org.gjt.sp.jedit.bsh.SimpleNode JAVACODE  
      protected org.gjt.sp.jedit.bsh.Node parent  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dump​(java.lang.String prefix)  
      java.lang.Object eval​(CallStack callstack, Interpreter interpreter)
      This is the general signature for evaluation of a node.
      org.gjt.sp.jedit.bsh.SimpleNode getChild​(int i)  
      int getLineNumber()
      Get the line number of the starting token
      java.lang.String getSourceFile()
      Get the name of the source file (or more generally source) of the text from which this node was parsed.
      java.lang.String getText()
      Get the text of the tokens comprising this node.
      void jjtAddChild​(org.gjt.sp.jedit.bsh.Node n, int i)  
      void jjtClose()  
      org.gjt.sp.jedit.bsh.Node jjtGetChild​(int i)  
      int jjtGetNumChildren()  
      org.gjt.sp.jedit.bsh.Node jjtGetParent()  
      void jjtOpen()  
      void jjtSetParent​(org.gjt.sp.jedit.bsh.Node n)  
      void prune()
      Detach this node from its parent.
      void setSourceFile​(java.lang.String sourceFile)
      Set the name of the source file (or more generally source) of the text from which this node was parsed.
      java.lang.String toString()  
      java.lang.String toString​(java.lang.String prefix)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • JAVACODE

        public static org.gjt.sp.jedit.bsh.SimpleNode JAVACODE
      • parent

        protected org.gjt.sp.jedit.bsh.Node parent
      • children

        protected org.gjt.sp.jedit.bsh.Node[] children
      • id

        protected int id
    • Constructor Detail

      • BSHPackageDeclaration

        public BSHPackageDeclaration​(int id)
    • Method Detail

      • jjtOpen

        public void jjtOpen()
      • jjtClose

        public void jjtClose()
      • jjtSetParent

        public void jjtSetParent​(org.gjt.sp.jedit.bsh.Node n)
      • jjtGetParent

        public org.gjt.sp.jedit.bsh.Node jjtGetParent()
      • jjtAddChild

        public void jjtAddChild​(org.gjt.sp.jedit.bsh.Node n,
                                int i)
      • jjtGetChild

        public org.gjt.sp.jedit.bsh.Node jjtGetChild​(int i)
      • getChild

        public org.gjt.sp.jedit.bsh.SimpleNode getChild​(int i)
      • jjtGetNumChildren

        public int jjtGetNumChildren()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString

        public java.lang.String toString​(java.lang.String prefix)
      • dump

        public void dump​(java.lang.String prefix)
      • prune

        public void prune()
        Detach this node from its parent. This is primarily useful in node serialization. (see BSHMethodDeclaration)
      • setSourceFile

        public void setSourceFile​(java.lang.String sourceFile)
        Set the name of the source file (or more generally source) of the text from which this node was parsed.
      • getSourceFile

        public java.lang.String getSourceFile()
        Get the name of the source file (or more generally source) of the text from which this node was parsed. This will recursively search up the chain of parent nodes until a source is found or return a string indicating that the source is unknown.
      • getLineNumber

        public int getLineNumber()
        Get the line number of the starting token
      • getText

        public java.lang.String getText()
        Get the text of the tokens comprising this node.