C# 클래스 Quartz.CronExpression

상속: ICloneable, IDeserializationCallback
파일 보기 프로젝트 열기: quartznet/quartznet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
MaxYear int

Private Properties

프로퍼티 타입 설명
CheckIncrementRange void
CronExpression System

공개 메소드들

메소드 설명
Clone ( ) : object

Creates a new object that is a copy of the current instance.

CronExpression ( string cronExpression ) : System

Constructs a new CronExpressionString based on the specified parameter.

Equals ( CronExpression other ) : bool

Determines whether the specified CronExpression is equal to the current CronExpression.

Equals ( object obj ) : bool

Determines whether the specified T:System.Object is equal to the current T:System.Object.

GetExpressionSummary ( ) : string

Gets the expression summary.

GetFinalFireTime ( ) : DateTimeOffset?

NOT YET IMPLEMENTED: Returns the final time that the CronExpression will match.

GetHashCode ( ) : int

Serves as a hash function for a particular type.

GetNextInvalidTimeAfter ( DateTimeOffset date ) : DateTimeOffset?

Returns the next date/time after the given date/time which does not satisfy the expression.

GetNextValidTimeAfter ( DateTimeOffset date ) : DateTimeOffset?

Returns the next date/time after the given date/time which satisfies the cron expression.

GetTimeAfter ( DateTimeOffset afterTimeUtc ) : DateTimeOffset?

Gets the next fire time after the given time.

GetTimeBefore ( DateTimeOffset endTime ) : DateTimeOffset?

Gets the time before.

IsSatisfiedBy ( DateTimeOffset dateUtc ) : bool

Indicates whether the given date satisfies the cron expression.

Note that milliseconds are ignored, so two Dates falling on different milliseconds of the same second will always have the same result here.

IsValidExpression ( string cronExpression ) : bool

Indicates whether the specified cron expression can be parsed into a valid cron expression

OnDeserialization ( object sender ) : void
ToString ( ) : string

Returns the string representation of the CronExpression

ValidateExpression ( string cronExpression ) : void

보호된 메소드들

메소드 설명
AddToSet ( int val, int end, int incr, int type ) : void

Adds to set.

BuildExpression ( string expression ) : void

Builds the expression.

CheckNext ( int pos, string s, int val, int type ) : int

Checks the next value.

CreateDateTimeWithoutMillis ( DateTimeOffset time ) : DateTimeOffset

Creates the date time without milliseconds.

FindNextWhiteSpace ( int i, string s ) : int

Finds the next white space.

GetDayOfWeekNumber ( string s ) : int

Gets the day of week number.

GetExpressionSetSummary ( ICollection data ) : string

Gets the expression set summary.

GetLastDayOfMonth ( int monthNum, int year ) : int

Gets the last day of month.

GetMonthNumber ( string s ) : int

Gets the month number.

GetNumericValue ( string s, int i ) : int

Gets the numeric value from string.

GetSet ( int type ) : ISet

Gets the set of given type.

GetTime ( int sc, int mn, int hr, int dayofmn, int mon ) : DateTimeOffset?

Gets the time from given time parts.

GetValue ( int v, string s, int i ) : ValueSet

Gets the value.

IsLeapYear ( int year ) : bool

Determines whether given year is a leap year.

SetCalendarHour ( DateTimeOffset date, int hour ) : DateTimeOffset

Advance the calendar to the particular hour paying particular attention to daylight saving problems.

SkipWhiteSpace ( int i, string s ) : int

Skips the white space.

StoreExpressionVals ( int pos, string s, int type ) : int

Stores the expression values.

비공개 메소드들

메소드 설명
CheckIncrementRange ( int incr, int type ) : void
CronExpression ( ) : System

메소드 상세

AddToSet() 보호된 메소드

Adds to set.
protected AddToSet ( int val, int end, int incr, int type ) : void
val int The val.
end int The end.
incr int The incr.
type int The type.
리턴 void

BuildExpression() 보호된 메소드

Builds the expression.
protected BuildExpression ( string expression ) : void
expression string The expression.
리턴 void

CheckNext() 보호된 메소드

Checks the next value.
protected CheckNext ( int pos, string s, int val, int type ) : int
pos int The position.
s string The string to check.
val int The value.
type int The type to search.
리턴 int

Clone() 공개 메소드

Creates a new object that is a copy of the current instance.
public Clone ( ) : object
리턴 object

CreateDateTimeWithoutMillis() 보호된 정적인 메소드

Creates the date time without milliseconds.
protected static CreateDateTimeWithoutMillis ( DateTimeOffset time ) : DateTimeOffset
time DateTimeOffset The time.
리턴 DateTimeOffset

CronExpression() 공개 메소드

Constructs a new CronExpressionString based on the specified parameter.
public CronExpression ( string cronExpression ) : System
cronExpression string /// String representation of the cron expression the new object should represent ///
리턴 System

Equals() 공개 메소드

Determines whether the specified CronExpression is equal to the current CronExpression.
public Equals ( CronExpression other ) : bool
other CronExpression The to compare with the current .
리턴 bool

Equals() 공개 메소드

Determines whether the specified T:System.Object is equal to the current T:System.Object.
public Equals ( object obj ) : bool
obj object The to compare with the current .
리턴 bool

FindNextWhiteSpace() 보호된 메소드

Finds the next white space.
protected FindNextWhiteSpace ( int i, string s ) : int
i int The i.
s string The s.
리턴 int

GetDayOfWeekNumber() 보호된 메소드

Gets the day of week number.
protected GetDayOfWeekNumber ( string s ) : int
s string The s.
리턴 int

GetExpressionSetSummary() 보호된 메소드

Gets the expression set summary.
protected GetExpressionSetSummary ( ICollection data ) : string
data ICollection The data.
리턴 string

GetExpressionSummary() 공개 메소드

Gets the expression summary.
public GetExpressionSummary ( ) : string
리턴 string

GetFinalFireTime() 공개 메소드

NOT YET IMPLEMENTED: Returns the final time that the CronExpression will match.
public GetFinalFireTime ( ) : DateTimeOffset?
리턴 DateTimeOffset?

GetHashCode() 공개 메소드

Serves as a hash function for a particular type.
public GetHashCode ( ) : int
리턴 int

GetLastDayOfMonth() 보호된 메소드

Gets the last day of month.
protected GetLastDayOfMonth ( int monthNum, int year ) : int
monthNum int The month num.
year int The year.
리턴 int

GetMonthNumber() 보호된 메소드

Gets the month number.
protected GetMonthNumber ( string s ) : int
s string The string to map with.
리턴 int

GetNextInvalidTimeAfter() 공개 메소드

Returns the next date/time after the given date/time which does not satisfy the expression.
public GetNextInvalidTimeAfter ( DateTimeOffset date ) : DateTimeOffset?
date DateTimeOffset the date/time at which to begin the search for the next invalid date/time
리턴 DateTimeOffset?

GetNextValidTimeAfter() 공개 메소드

Returns the next date/time after the given date/time which satisfies the cron expression.
public GetNextValidTimeAfter ( DateTimeOffset date ) : DateTimeOffset?
date DateTimeOffset the date/time at which to begin the search for the next valid date/time
리턴 DateTimeOffset?

GetNumericValue() 보호된 메소드

Gets the numeric value from string.
protected GetNumericValue ( string s, int i ) : int
s string The string to parse from.
i int The i.
리턴 int

GetSet() 보호된 메소드

Gets the set of given type.
protected GetSet ( int type ) : ISet
type int The type of set to get.
리턴 ISet

GetTime() 보호된 메소드

Gets the time from given time parts.
protected GetTime ( int sc, int mn, int hr, int dayofmn, int mon ) : DateTimeOffset?
sc int The seconds.
mn int The minutes.
hr int The hours.
dayofmn int The day of month.
mon int The month.
리턴 DateTimeOffset?

GetTimeAfter() 공개 메소드

Gets the next fire time after the given time.
public GetTimeAfter ( DateTimeOffset afterTimeUtc ) : DateTimeOffset?
afterTimeUtc DateTimeOffset The UTC time to start searching from.
리턴 DateTimeOffset?

GetTimeBefore() 공개 메소드

Gets the time before.
public GetTimeBefore ( DateTimeOffset endTime ) : DateTimeOffset?
endTime DateTimeOffset The end time.
리턴 DateTimeOffset?

GetValue() 보호된 메소드

Gets the value.
protected GetValue ( int v, string s, int i ) : ValueSet
v int The v.
s string The s.
i int The i.
리턴 ValueSet

IsLeapYear() 보호된 메소드

Determines whether given year is a leap year.
protected IsLeapYear ( int year ) : bool
year int The year.
리턴 bool

IsSatisfiedBy() 공개 메소드

Indicates whether the given date satisfies the cron expression.
Note that milliseconds are ignored, so two Dates falling on different milliseconds of the same second will always have the same result here.
public IsSatisfiedBy ( DateTimeOffset dateUtc ) : bool
dateUtc DateTimeOffset The date to evaluate.
리턴 bool

IsValidExpression() 공개 정적인 메소드

Indicates whether the specified cron expression can be parsed into a valid cron expression
public static IsValidExpression ( string cronExpression ) : bool
cronExpression string the expression to evaluate
리턴 bool

OnDeserialization() 공개 메소드

public OnDeserialization ( object sender ) : void
sender object
리턴 void

SetCalendarHour() 보호된 정적인 메소드

Advance the calendar to the particular hour paying particular attention to daylight saving problems.
protected static SetCalendarHour ( DateTimeOffset date, int hour ) : DateTimeOffset
date DateTimeOffset The date.
hour int The hour.
리턴 DateTimeOffset

SkipWhiteSpace() 보호된 메소드

Skips the white space.
protected SkipWhiteSpace ( int i, string s ) : int
i int The i.
s string The s.
리턴 int

StoreExpressionVals() 보호된 메소드

Stores the expression values.
protected StoreExpressionVals ( int pos, string s, int type ) : int
pos int The position.
s string The string to traverse.
type int The type of value.
리턴 int

ToString() 공개 메소드

Returns the string representation of the CronExpression
public ToString ( ) : string
리턴 string

ValidateExpression() 공개 정적인 메소드

public static ValidateExpression ( string cronExpression ) : void
cronExpression string
리턴 void

프로퍼티 상세

MaxYear 공개적으로 정적으로 프로퍼티

public static int MaxYear
리턴 int