Class JExprChain


public class JExprChain extends JExpr
A class to represent a chain of expressions.
  • Constructor Details

    • JExprChain

      public JExprChain()
      Creates a new JExprChain.
    • JExprChain

      public JExprChain(JExpr... theExpressions)
      Creates a new JExprChain for given parts.
  • Method Details

    • getNameImpl

      protected String getNameImpl()
      Returns the name for Identifier or Method.
      Overrides:
      getNameImpl in class JNode
    • getExprCount

      public int getExprCount()
      Returns the number of expressions.
    • getExpr

      public JExpr getExpr(int anIndex)
      Returns the individual expression at given index.
    • getExpressions

      public List<JExpr> getExpressions()
      Returns the expressions list.
    • addExpr

      public void addExpr(JExpr anExpr)
      Adds a expression to this JExprChain.
    • removeExpr

      public JExpr removeExpr(int anIndex)
      Removes a expression at given index.
    • getClassNameImpl

      protected String getClassNameImpl()
      Tries to resolve the class name for this node.
      Overrides:
      getClassNameImpl in class JNode
    • buildChildren

      protected void buildChildren()
      Initializes children list by adding children from IVars.
      Overrides:
      buildChildren in class JNode
    • getNodeString

      public String getNodeString()
      Returns the part name.
      Overrides:
      getNodeString in class JNode