C# 클래스 YAMP.StringValue

The class for representing a string value.
상속: Value, IFunction
파일 보기 프로젝트 열기: FlorianRappl/YAMP 1 사용 예제들

공개 메소드들

메소드 설명
Add ( Value left, Value right ) : StringValue

Performs the addition str + x or x + str.

Copy ( ) : Value

Returns a copy of this string value instance.

Deserialize ( Byte content ) : Value

Creates a new string value from the binary content.

Equals ( object obj ) : bool

Is the given object equal to this.

GetHashCode ( ) : int

Computes the hashcode of the value inside.

Perform ( ParseContext context, Value argument ) : Value

If invoked like a function the function reacts like this.

Serialize ( ) : Byte[]

Converts the given value into binary data.

StringValue ( ) : System

Creates a new instance.

StringValue ( Char str ) : System

Creates a new instance.

StringValue ( String value ) : System

Creates a new instance and sets the value.

ToString ( ParseContext context ) : String

Returns the string content of this instance.

this ( Int32 index ) : Char

Gets the 1-based character of the string.

보호된 메소드들

메소드 설명
RegisterOperators ( ) : void

Registers the allowed operations.

메소드 상세

Add() 공개 정적인 메소드

Performs the addition str + x or x + str.
public static Add ( Value left, Value right ) : StringValue
left Value An arbitrary value.
right Value Another arbitrary value.
리턴 StringValue

Copy() 공개 메소드

Returns a copy of this string value instance.
public Copy ( ) : Value
리턴 Value

Deserialize() 공개 메소드

Creates a new string value from the binary content.
public Deserialize ( Byte content ) : Value
content Byte The data which contains the content.
리턴 Value

Equals() 공개 메소드

Is the given object equal to this.
public Equals ( object obj ) : bool
obj object The compare object.
리턴 bool

GetHashCode() 공개 메소드

Computes the hashcode of the value inside.
public GetHashCode ( ) : int
리턴 int

Perform() 공개 메소드

If invoked like a function the function reacts like this.
public Perform ( ParseContext context, Value argument ) : Value
context ParseContext The context of invocation.
argument Value The argument(s) that have been given.
리턴 Value

RegisterOperators() 보호된 메소드

Registers the allowed operations.
protected RegisterOperators ( ) : void
리턴 void

Serialize() 공개 메소드

Converts the given value into binary data.
public Serialize ( ) : Byte[]
리턴 Byte[]

StringValue() 공개 메소드

Creates a new instance.
public StringValue ( ) : System
리턴 System

StringValue() 공개 메소드

Creates a new instance.
public StringValue ( Char str ) : System
str Char The given character array.
리턴 System

StringValue() 공개 메소드

Creates a new instance and sets the value.
public StringValue ( String value ) : System
value String The string where this value is based on.
리턴 System

ToString() 공개 메소드

Returns the string content of this instance.
public ToString ( ParseContext context ) : String
context ParseContext The context of the invocation.
리턴 String

this() 공개 메소드

Gets the 1-based character of the string.
public this ( Int32 index ) : Char
index System.Int32 The 1-based character (1 == first character) index.
리턴 Char