Class Foreach

  • All Implemented Interfaces:
    Cloneable

    @Deprecated
    public class Foreach
    extends Directive
    Deprecated.
    for removal in PMD 7.0.0
    Foreach directive used for moving through arrays, or objects that provide an Iterator.
    Version:
    $Id: Foreach.java 945927 2010-05-18 22:21:41Z nbubna $
    Author:
    Jason van Zyl, Geir Magnusson Jr., Daniel Rall
    • Constructor Detail

      • Foreach

        public Foreach()
        Deprecated.
    • Method Detail

      • getName

        public String getName()
        Deprecated.
        Return name of this directive.
        Specified by:
        getName in class Directive
        Returns:
        The name of this directive.
      • getType

        public int getType()
        Deprecated.
        Return type of this directive.
        Specified by:
        getType in class Directive
        Returns:
        The type of this directive.