| java.lang.Object spoon.reflect.factory.SubFactory spoon.reflect.factory.FieldFactory
Method Summary | |
public CtField<T> | create(CtSimpleType> target, Set<ModifierKind> modifiers, CtTypeReference<T> type, String name) Creates a field. | public CtField<T> | create(CtSimpleType> target, Set<ModifierKind> modifiers, CtTypeReference<T> type, String name, CtExpression<T> defaultExpression) Creates a field. | public CtField<T> | create(CtType> target, CtField<T> source) Creates a field by copying an existing field. | public CtFieldReference<T> | createReference(CtField<T> field) Creates a field reference from an existing field. | public CtFieldReference<T> | createReference(CtTypeReference> declaringType, CtTypeReference<T> type, String fieldName) Creates a field reference. | public CtFieldReference<T> | createReference(Field field) Creates a field reference from a java.lang.reflect field. | public CtFieldReference<T> | createReference(String signature) Creates a field reference from its signature, as defined by the field
reference's toString. |
FieldFactory | public FieldFactory(Factory factory)(Code) | | Creates a new field sub-factory.
Parameters: factory - the parent factory |
create | public CtField<T> create(CtSimpleType> target, Set<ModifierKind> modifiers, CtTypeReference<T> type, String name)(Code) | | Creates a field.
Parameters: target - the target type to which the field is added Parameters: modifiers - the modifiers Parameters: type - the field's type Parameters: name - the field's name |
create | public CtField<T> create(CtSimpleType> target, Set<ModifierKind> modifiers, CtTypeReference<T> type, String name, CtExpression<T> defaultExpression)(Code) | | Creates a field.
Parameters: target - the target type to which the field is added Parameters: modifiers - the modifiers Parameters: type - the field's type Parameters: name - the field's name Parameters: defaultExpression - the initializing expression |
create | public CtField<T> create(CtType> target, CtField<T> source)(Code) | | Creates a field by copying an existing field.
< Parameters: T - >the type of the field Parameters: target - the target type where the new field has to be inserted to Parameters: source - the source field to be copied the newly created field |
createReference | public CtFieldReference<T> createReference(String signature)(Code) | | Creates a field reference from its signature, as defined by the field
reference's toString.
|
|
|