ITransformService¶
-
public interface
ITransformService
<P extends IParseUnit, A extends IAnalyzeUnit, TP extends ITransformUnit<P>, TA extends ITransformUnit<A>>¶ Interface for transformations on parsed or analyzed files.
Parameters: - <P> – Type of parse units.
- <A> – Type of analyze units.
- <TP> – Type of transform units with parse units as input.
- <TA> – Type of transform units with analyze units as input.
Methods¶
available¶
-
boolean
available
(IContext context, ITransformGoal goal)¶ Checks if transform actions are available for given context and goal.
Parameters: - context – Context to check transform actions from.
- goal – Goal to check transform actions for.
Returns: True if transform actions are available, false if not.
requiresAnalysis¶
-
boolean
requiresAnalysis
(IContext context, ITransformGoal goal)¶ Checks if analysis is required before transformation, for given context and goal.
Parameters: - context – Context to check from.
- goal – Goal to check for.
Returns: True if analysis is required, false if not.
transform¶
-
Collection<TP>
transform
(P input, IContext context, ITransformGoal goal)¶ Transforms parse input in a context with given goal.
Parameters: - input – Parsed input to transform.
- context – Context in which to apply transformation.
- goal – Transform goal to execute.
Throws: - TransformException – When the transformation fails unexpectedly.
Returns: Transformation result.
transform¶
-
Collection<TP>
transform
(P input, IContext context, ITransformGoal goal, ITransformConfig config)¶ Transforms parse input in a context with given goal.
Parameters: - input – Parsed input to transform.
- context – Context in which to apply transformation.
- goal – Transform goal to execute.
- config – Configuration settings for the execution of the transformation.
Throws: - TransformException – When the transformation fails unexpectedly.
Returns: Transformation result.
transform¶
-
TP
transform
(P input, IContext context, TransformActionContrib action)¶ Transforms parse input in a context with given action.
Parameters: - input – Parsed input to transform.
- context – Context in which to apply transformation.
- action – Transform action to execute.
Throws: - TransformException – When transformation action requires analysis.
Returns: Transformation result.
transform¶
-
TP
transform
(P input, IContext context, TransformActionContrib action, ITransformConfig config)¶ Transforms parse input in a context with given action.
Parameters: - input – Parsed input to transform.
- context – Context in which to apply transformation.
- action – Transform action to execute.
- config – Configuration settings for the execution of the transformation.
Throws: - TransformException – When transformation action requires analysis.
Returns: Transformation result.
transform¶
-
Collection<TA>
transform
(A input, IContext context, ITransformGoal goal)¶ Transforms analyzed input in a context with given goal.
Parameters: - input – Analyzed input to transform.
- context – Context in which to apply transformation.
- goal – Transform goal to execute.
Throws: - TransformException – When the transformation fails unexpectedly.
Returns: Transformation result.
transform¶
-
Collection<TA>
transform
(A input, IContext context, ITransformGoal goal, ITransformConfig config)¶ Transforms analyzed input in a context with given goal.
Parameters: - input – Analyzed input to transform.
- context – Context in which to apply transformation.
- goal – Transform goal to execute.
- config – Configuration settings for the execution of the transformation.
Throws: - TransformException – When the transformation fails unexpectedly.
Returns: Transformation result.
transform¶
-
TA
transform
(A input, IContext context, TransformActionContrib action)¶ Transforms analyzed input in a context with given action.
Parameters: - input – Analyzed input to transform.
- context – Context in which to apply transformation.
- action – Transform action to execute.
Throws: - TransformException – When the transformation fails unexpectedly.
Returns: Transformation result.
transform¶
-
TA
transform
(A input, IContext context, TransformActionContrib action, ITransformConfig config)¶ Transforms analyzed input in a context with given action.
Parameters: - input – Analyzed input to transform.
- context – Context in which to apply transformation.
- action – Transform action to execute.
- config – Configuration settings for the execution of the transformation.
Throws: - TransformException – When the transformation fails unexpectedly.
Returns: Transformation result.
transformAllAnalyzed¶
-
Collection<TA>
transformAllAnalyzed
(Iterable<A> inputs, IContext context, ITransformGoal goal)¶ Transforms analyzed inputs in a context with given goal.
Parameters: - inputs – Analyzed inputs to transform.
- context – Context in which to apply transformation.
- goal – Transform goal to execute.
Throws: - TransformException – When the transformation fails unexpectedly.
Returns: Transformation results.
transformAllAnalyzed¶
-
Collection<TA>
transformAllAnalyzed
(Iterable<A> inputs, IContext context, ITransformGoal goal, ITransformConfig config)¶ Transforms analyzed inputs in a context with given goal.
Parameters: - inputs – Analyzed inputs to transform.
- context – Context in which to apply transformation.
- goal – Transform goal to execute.
- config – Configuration settings for the execution of the transformation.
Throws: - TransformException – When the transformation fails unexpectedly.
Returns: Transformation results.
transformAllAnalyzed¶
-
Collection<TA>
transformAllAnalyzed
(Iterable<A> inputs, IContext context, TransformActionContrib action)¶ Transforms analyzed inputs in a context with given action.
Parameters: - input – Analyzed inputs to transform.
- context – Context in which to apply transformation.
- action – Transform action to execute.
Throws: - TransformException – When the transformation fails unexpectedly.
Returns: Transformation results.
transformAllAnalyzed¶
-
Collection<TA>
transformAllAnalyzed
(Iterable<A> inputs, IContext context, TransformActionContrib action, ITransformConfig config)¶ Transforms analyzed inputs in a context with given action.
Parameters: - input – Analyzed inputs to transform.
- context – Context in which to apply transformation.
- action – Transform action to execute.
- config – Configuration settings for the execution of the transformation.
Throws: - TransformException – When the transformation fails unexpectedly.
Returns: Transformation results.
transformAllParsed¶
-
Collection<TP>
transformAllParsed
(Iterable<P> inputs, IContext context, ITransformGoal goal)¶ Transforms parse inputs in a context with given goal.
Parameters: - inputs – Parsed inputs to transform.
- context – Context in which to apply transformation.
- goal – Transform goal to execute.
Throws: - TransformException – When the transformation fails unexpectedly.
Returns: Transformation results.
transformAllParsed¶
-
Collection<TP>
transformAllParsed
(Iterable<P> inputs, IContext context, ITransformGoal goal, ITransformConfig config)¶ Transforms parse inputs in a context with given goal.
Parameters: - inputs – Parsed inputs to transform.
- context – Context in which to apply transformation.
- goal – Transform goal to execute.
- config – Configuration settings for the execution of the transformation.
Throws: - TransformException – When the transformation fails unexpectedly.
Returns: Transformation results.
transformAllParsed¶
-
Collection<TP>
transformAllParsed
(Iterable<P> inputs, IContext context, TransformActionContrib action)¶ Transforms parse input in a context with given action.
Parameters: - inputs – Parsed inputs to transform.
- context – Context in which to apply transformation.
- action – Transform action to execute.
Throws: - TransformException – When transformation action requires analysis.
Returns: Transformation results.
transformAllParsed¶
-
Collection<TP>
transformAllParsed
(Iterable<P> inputs, IContext context, TransformActionContrib action, ITransformConfig config)¶ Transforms parse input in a context with given action.
Parameters: - inputs – Parsed inputs to transform.
- context – Context in which to apply transformation.
- action – Transform action to execute.
- config – Configuration settings for the execution of the transformation.
Throws: - TransformException – When transformation action requires analysis.
Returns: Transformation results.