Class ForJBlock

    • Method Detail

      • init

        public JVarDeclaration init​(int mods,
                                    java.lang.String type,
                                    java.lang.String name,
                                    JExpr value)
        Description copied from interface: JFor
        Add a loop initializer.
        Specified by:
        init in interface JFor
        Parameters:
        mods - the modifiers for the initializer variable declaration
        type - the type of the initializer variables
        name - the name of the first initializer variable
        value - the initial value for the first initializer variable
        Returns:
        the initializer variable declaration
      • init

        public JVarDeclaration init​(int mods,
                                    JType type,
                                    java.lang.String name,
                                    JExpr value)
        Description copied from interface: JFor
        Add a loop initializer.
        Specified by:
        init in interface JFor
        Parameters:
        mods - the modifiers for the initializer variable declaration
        type - the type of the initializer variables
        name - the name of the first initializer variable
        value - the initial value for the first initializer variable
        Returns:
        the initializer variable declaration
      • init

        public JVarDeclaration init​(int mods,
                                    java.lang.Class<?> type,
                                    java.lang.String name,
                                    JExpr value)
        Description copied from interface: JFor
        Add a loop initializer.
        Specified by:
        init in interface JFor
        Parameters:
        mods - the modifiers for the initializer variable declaration
        type - the type of the initializer variables
        name - the name of the first initializer variable
        value - the initial value for the first initializer variable
        Returns:
        the initializer variable declaration
      • test

        public JFor test​(JExpr expr)
        Description copied from interface: JFor
        Add a test expression.
        Specified by:
        test in interface JFor
        Parameters:
        expr - the test expression
        Returns:
        this for loop
      • update

        public JFor update​(JExpr updateExpr)
        Description copied from interface: JFor
        Add an update expression.
        Specified by:
        update in interface JFor
        Parameters:
        updateExpr - the update expression
        Returns:
        this for loop