Class Counter

java.lang.Object
javax0.jamal.snippet.Counter
All Implemented Interfaces:
javax0.jamal.api.Evaluable, javax0.jamal.api.Identified

public class Counter extends Object implements javax0.jamal.api.Identified, javax0.jamal.api.Evaluable
  • Nested Class Summary

    Nested classes/interfaces inherited from interface javax0.jamal.api.Identified

    javax0.jamal.api.Identified.Undefined
  • Field Summary

    Fields inherited from interface javax0.jamal.api.Identified

    DEFAULT_MACRO, MACRO_NAME_ARG1, MACRO_NAME_ARG2
  • Constructor Summary

    Constructors
    Constructor
    Description
    Counter(String id, int start, int step, String format, boolean iiii, javax0.jamal.api.Processor processor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    evaluate(String... parameters)
     
    int
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface javax0.jamal.api.Evaluable

    isVerbatim, setCurrentId
  • Constructor Details

    • Counter

      public Counter(String id, int start, int step, String format, boolean iiii, javax0.jamal.api.Processor processor)
  • Method Details

    • evaluate

      public String evaluate(String... parameters) throws javax0.jamal.api.BadSyntax
      Specified by:
      evaluate in interface javax0.jamal.api.Evaluable
      Throws:
      javax0.jamal.api.BadSyntax
    • expectedNumberOfArguments

      public int expectedNumberOfArguments()
      Specified by:
      expectedNumberOfArguments in interface javax0.jamal.api.Evaluable
    • getId

      public String getId()
      Specified by:
      getId in interface javax0.jamal.api.Identified