MetaDone
|
Public Member Functions | |
GrasylaEngineTyped (Class< T > supportedType, GrasylaContext context, ConcreteObject expression, Engine parent) throws BadPreCondition | |
final Class< T > | getSupportedType () |
boolean | isClassSupported (Class<?> clComp) |
final Component<?extends T > | getComponent () |
Protected Member Functions | |
abstract Component<?extends T > | evaluateComponent (final BootstrapGrasyla grasyla) throws BadPreCondition |
final Component< T > | newComponent () |
final Component< T > | newComponent (T t) |
final Component< T > | newComponent (List<?extends T > list) |
Package Functions | |
public< C > Component<?extends C > | buildNewComponent (Class< C > clComp) |
Private Attributes | |
final Class< T > | supportedType |
A Grasyla engine with a supported type.
Useful for engines that will only support a single type.
<T> | The supported type |
metadone.client.grasyla2.base.GrasylaEngineTyped< T >.GrasylaEngineTyped | ( | Class< T > | supportedType, |
GrasylaContext | context, | ||
ConcreteObject | expression, | ||
Engine | parent | ||
) | throws BadPreCondition |
Initializes this engine.
supportedType | The supported type |
context | The context |
expression | The expression |
parent | The parent or null |
BadPreCondition |
public<C> Component<? extends C> metadone.client.grasyla2.base.GrasylaEngineTyped< T >.buildNewComponent | ( | Class< C > | clComp | ) | [package, virtual] |
Builds a new component.
<C> | The type |
clComp | The class |
BadPreCondition |
Implements metadone.client.grasyla2.GrasylaEngine.
abstract Component<? extends T> metadone.client.grasyla2.base.GrasylaEngineTyped< T >.evaluateComponent | ( | final BootstrapGrasyla | grasyla | ) | throws BadPreCondition [protected, pure virtual] |
Called by buildNewComponent(Class) to create the component.
grasyla | The grasyla |
BadPreCondition |
final Component<? extends T> metadone.client.grasyla2.base.GrasylaEngineTyped< T >.getComponent | ( | ) |
Gets the component using the supported type.
null
final Class<T> metadone.client.grasyla2.base.GrasylaEngineTyped< T >.getSupportedType | ( | ) |
Gets the supported type.
boolean metadone.client.grasyla2.base.GrasylaEngineTyped< T >.isClassSupported | ( | Class<?> | clComp | ) |
Tests if the given class can be used by this component.
clComp | The component class |
true
iff the class is supported Reimplemented from metadone.client.grasyla2.GrasylaEngine.
final Component<T> metadone.client.grasyla2.base.GrasylaEngineTyped< T >.newComponent | ( | T | t | ) | [protected] |
Builds a new component.
t | The value |
final Component<T> metadone.client.grasyla2.base.GrasylaEngineTyped< T >.newComponent | ( | ) | [protected] |
Builds a new empty component.
final Component<T> metadone.client.grasyla2.base.GrasylaEngineTyped< T >.newComponent | ( | List<?extends T > | list | ) | [protected] |
Builds a new component.
list | The list of values |
final Class<T> metadone.client.grasyla2.base.GrasylaEngineTyped< T >.supportedType [private] |