Class JExprChain


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

      • JExprChain

        public JExprChain()
        Creates a new JExprChain.
      • JExprChain

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

      • getNameImpl

        protected java.lang.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 java.util.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 java.lang.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 java.lang.String getNodeString()
        Returns the part name.
        Overrides:
        getNodeString in class JNode