C# Class Pchp.Core.Reflection.TypeFields

Collection of class fields declared in type.
Mostra file Open project: iolevel/peachpie

Public Methods

Method Description
GetConstantValue ( string name, Context ctx ) : object

Resolves a constant value in given context.

HasField ( string name ) : FieldKind

Gets value indicating the class contains a field with specified name.

Private Methods

Method Description
Bind ( string name, Type classCtx, Expression target, Expression ctx, FieldKind kind ) : Expression

Gets Expression representing field value.

CreateStaticsGetter ( Type _statics ) : object>.Func
EnsureStaticsGetter ( Type type ) : object>.Func
TypeFields ( Type type ) : Pchp.Core.Dynamic

Method Details

GetConstantValue() public method

Resolves a constant value in given context.
public GetConstantValue ( string name, Context ctx ) : object
name string
ctx Context
return object

HasField() public method

Gets value indicating the class contains a field with specified name.
public HasField ( string name ) : FieldKind
name string
return FieldKind