Class LoopStatement

All Implemented Interfaces:
IParsedElement, IStatement, ILoopStatement
Direct Known Subclasses:
DoWhileStatement, ForEachStatement, WhileStatement

public abstract class LoopStatement extends Statement implements ILoopStatement
  • Constructor Details

    • LoopStatement

      public LoopStatement()
  • Method Details

    • isIteratorType

      public static boolean isIteratorType(IType typeIn)
    • getArrayComponentType

      public static IType getArrayComponentType(IType typeIn)
    • makeIterator

      public static Iterator makeIterator(Object obj, IType typeHint)
      A helper method for creating Iterators for use with 'exists' and 'foreach' elements. Primarily for use with generated Java code (not necessary for direct interpretation).
    • getArrayLength

      public static int getArrayLength(Object obj)
      Return the length of the specified Array or Collection.
    • isConditionLiteralTrue

      public boolean isConditionLiteralTrue()
      Specified by:
      isConditionLiteralTrue in interface ILoopStatement