Module com.speedment.common.codegen
Interface AnonymousValue
-
- All Superinterfaces:
HasClasses<AnonymousValue>,HasCopy<Value<Type>>,HasFields<AnonymousValue>,HasImports<AnonymousValue>,HasInitializers<AnonymousValue>,HasMethods<AnonymousValue>,HasValues<AnonymousValue>,Value<Type>
public interface AnonymousValue extends Value<Type>, HasImports<AnonymousValue>, HasValues<AnonymousValue>, HasMethods<AnonymousValue>, HasFields<AnonymousValue>, HasInitializers<AnonymousValue>, HasClasses<AnonymousValue>
A value representing a reference to an abstract implementation used anonymously to set a field.- Since:
- 2.4.6
- Author:
- Emil Forslund
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AnonymousValueadd(Type typeParameter)Adds the specified type parameter to the end of thegetTypeParameters()list.List<Type>getTypeParameters()Returns a list of type parameters to set when instantiating the anonymous type.AnonymousValuesetValue(Type value)Sets the inner value of this.-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasClasses
add, addAllClasses, getClasses
-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasFields
add, addAllFields, constant, constant, constant, constant, field, field, getFields
-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasImports
add, getImports, imports, imports, imports
-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasInitializers
add, getInitializers
-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasMethods
add, getMethods
-
-
-
-
Method Detail
-
setValue
AnonymousValue setValue(Type value)
Description copied from interface:ValueSets the inner value of this.
-
getTypeParameters
List<Type> getTypeParameters()
Returns a list of type parameters to set when instantiating the anonymous type.The returned list is mutable.
- Returns:
- list of type parameters
-
add
default AnonymousValue add(Type typeParameter)
Adds the specified type parameter to the end of thegetTypeParameters()list.- Parameters:
typeParameter- the type parameter to add- Returns:
- a reference to this
-
-