Download Sources

com.liguorien.flex.generator
Annotation Type FlexDefault


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface FlexDefault

Used to define the default value of a property.

It can be declared on the getter method of a property

You can either put a raw value or the keyword "new" to instanciate the property using the constructor of the property type

Exemple :

 @FlexDefault("new")
 public Person getPerson() {
     return _person;
 }

Will generates :

private var _person:Person = new Person();

 @FlexDefault("-1")
 public int getId() {
     return _id;
 }

Will generates :

private var _id:int = -1;

Version:
0.2
Author:
Nicolas Désy

Required Element Summary
 java.lang.String value
           
 

Element Detail

value

public abstract java.lang.String value

FlexGenerator

Copyright 2006 Nicolas Désy. All rights reserved.