Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Expression

Create an expression with default values. Every value defaults to *.

const expression = new Expression({hour: '1'}); // * 1 * * *

Hierarchy

Index

Constructors

constructor

  • new Expression(params?: undefined | { dayOfTheMonth?: undefined | string; dayOfTheWeek?: undefined | string; hour?: undefined | string; minute?: undefined | string; month?: undefined | string }): Expression
  • Parameters

    • Optional params: undefined | { dayOfTheMonth?: undefined | string; dayOfTheWeek?: undefined | string; hour?: undefined | string; minute?: undefined | string; month?: undefined | string }

    Returns Expression

Properties

Private dayOfTheMonth

dayOfTheMonth: string

Private dayOfTheWeek

dayOfTheWeek: string

Private hour

hour: string

Private minute

minute: string

Private month

month: string

Methods

getDayOfTheMonth

  • getDayOfTheMonth(): string

getDayOfTheWeek

  • getDayOfTheWeek(): string

getHour

  • getHour(): string

getMinute

  • getMinute(): string

getMonth

  • getMonth(): string

setDayOfTheMonth

  • setDayOfTheMonth(dayOfTheMonth: string): void

setDayOfTheWeek

  • setDayOfTheWeek(dayOfTheWeek: string): void

setHour

  • setHour(hour: string): void

setMinute

  • setMinute(minute: string): void

setMonth

  • setMonth(month: string): void

toString

  • toString(): string

Generated using TypeDoc