IPropertyDefinition Interface
From The Oxygene Language Wiki
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
| | |
|---|---|
| AddParameter(aName: String; aModifier: ParameterModifier; aType: IType): IParameterDefinition | Adds a new parameter to this property |
| GetImplicitField: IFieldDefinition | Returns the field definition associated with this property, if any |
| GetParameter(aIndex: Integer): IParameterDefinition | Returns 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
| | |
|---|---|
| ImplicitField: IFieldDefinition | True if this property uses an implicit field (property Test: string) |
| ParameterCount: Integer | Returns the number of parameters to this property |
| ReadExpression: Value | Gets 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: IMethodDefinition | Gets or sets the read method for this property |
| ReadOnly: Boolean | Read-only property |
| Type: IType | Gets or sets the property type |
| WriteExpression: Value | Gets 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: IMethodDefinition | Gets or sets the write method for this property |
See Also
- Cirrus
- External Links:
- Prism Aspects to Help with Monobjc Development (RemObjects Blogs)
- IMemberDefinition Interface
- IAttributeDefinitionProvider Interface
- IAttributesProvider Interface
- IElementDefinition Interface
- IProperty Interface
- IMember Interface
- IPosition Interface
Area: Oxygene Language
Compiler version: Oxygene 5
Language Glossary — Keywords — Types — FAQ — How To