IPropertyDefinition Interface

From The Oxygene Language Wiki

Jump to:navigation, search

This is a Language topic
Feel free to add your notes to this topic below.


IPropertyDefinition = public interface (IMemberDefinition, IAttributeDefinitionProvider, 
	IAttributesProvider, IElementDefinition, IProperty, IMember, IPosition)

IPropertyDefinition points to a property defined in this project. This interface can be used to influence the code generated for a property.

Namespace: Cirrus


Members

Method
Description
AddParameter(aName: String; aModifier: ParameterModifier; aType: IType): IParameterDefinitionAdds a new parameter to this property
GetImplicitField: IFieldDefinitionReturns the field definition associated with this property, if any
GetParameter(aIndex: Integer): IParameterDefinitionReturns the property parameter by index
RemoveParameter(aIndex: Integer)Removes a parameter by index
CreateImplicitField() If the implicit field is true, but the read/write expressions are not assigned, this option can be used to create the implicit field and set the ReadExpression and WriteExpression fields


Properties

Property
Description
ImplicitField: IFieldDefinitionTrue if this property uses an implicit field (property Test: string)
ParameterCount: IntegerReturns the number of parameters to this property
ReadExpression: ValueGets or sets the read expression for this property; this will create a new method for the read accessor of this property and put the expression there; it will trigger compiler errors when the expression is not valid
ReadMethod: IMethodDefinitionGets or sets the read method for this property
ReadOnly: BooleanRead-only property
Type: ITypeGets or sets the property type
WriteExpression: ValueGets or sets the write expression for this property; this will create a new method for the write accessor of this property and put the expression there; it will trigger compiler errors when the expression is not valid
WriteMethod: IMethodDefinitionGets or sets the write method for this property


See Also

Oxygene-48.png

Area: Oxygene Language
Compiler version: Oxygene 5

Language GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox