C# Class Mono.CSharp.IntConstant

Inheritance: IntegralConstant
Mostrar archivo Open project: vargaz/mono Class Usage Examples

Public Properties

Property Type Description
Value int

Public Methods

Method Description
ConvertExplicitly ( bool in_checked_context, System.TypeSpec target_type ) : Constant
ConvertImplicitly ( System.TypeSpec type ) : Constant
Emit ( EmitContext ec ) : void
EncodeAttributeValue ( IMemberContext rc, Mono.CSharp.AttributeEncoder enc, System.TypeSpec targetType, System.TypeSpec parameterType ) : void
GetValue ( ) : object
GetValueAsLong ( ) : long
Increment ( ) : Constant
IntConstant ( BuiltinTypes types, int v, Mono.CSharp.Location loc ) : System
IntConstant ( System.TypeSpec type, int v, Mono.CSharp.Location loc ) : System

Private Methods

Method Description
TryImplicitIntConversion ( System.TypeSpec target_type ) : Constant

Attempts to perform an implicit constant conversion of the IntConstant into a different data type using casts (See Implicit Constant Expression Conversions)

Method Details

ConvertExplicitly() public method

public ConvertExplicitly ( bool in_checked_context, System.TypeSpec target_type ) : Constant
in_checked_context bool
target_type System.TypeSpec
return Constant

ConvertImplicitly() public method

public ConvertImplicitly ( System.TypeSpec type ) : Constant
type System.TypeSpec
return Constant

Emit() public method

public Emit ( EmitContext ec ) : void
ec EmitContext
return void

EncodeAttributeValue() public method

public EncodeAttributeValue ( IMemberContext rc, Mono.CSharp.AttributeEncoder enc, System.TypeSpec targetType, System.TypeSpec parameterType ) : void
rc IMemberContext
enc Mono.CSharp.AttributeEncoder
targetType System.TypeSpec
parameterType System.TypeSpec
return void

GetValue() public method

public GetValue ( ) : object
return object

GetValueAsLong() public method

public GetValueAsLong ( ) : long
return long

Increment() public method

public Increment ( ) : Constant
return Constant

IntConstant() public method

public IntConstant ( BuiltinTypes types, int v, Mono.CSharp.Location loc ) : System
types BuiltinTypes
v int
loc Mono.CSharp.Location
return System

IntConstant() public method

public IntConstant ( System.TypeSpec type, int v, Mono.CSharp.Location loc ) : System
type System.TypeSpec
v int
loc Mono.CSharp.Location
return System

Property Details

Value public_oe property

public int Value
return int