eu.lindenbaum.maven.erlang
Class FilterForAttributeScript

java.lang.Object
  extended by eu.lindenbaum.maven.erlang.FilterForAttributeScript
All Implemented Interfaces:
Script<String>

public class FilterForAttributeScript
extends Object

A Script that filters a list of modules for the specification of a certain attribute.

Author:
Tobias Schlager , Olle Törnström

Field Summary
protected  String script
           
 
Fields inherited from interface eu.lindenbaum.maven.erlang.Script
NL
 
Constructor Summary
FilterForAttributeScript(List<File> modules, String attribute)
          Filters a list of modules for a specific attribute.
 
Method Summary
 String get()
          Returns an evaluateable String containing the erlang script of the implementing class.
 String handle(com.ericsson.otp.erlang.OtpErlangObject result)
          Converts the result of the Script execution into a String containing an erlang list of modules specifying a specific attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

script

protected final String script
Constructor Detail

FilterForAttributeScript

public FilterForAttributeScript(List<File> modules,
                                String attribute)
                         throws org.apache.maven.plugin.MojoExecutionException
Filters a list of modules for a specific attribute.

Parameters:
modules - to filter
attribute - to look after
Throws:
org.apache.maven.plugin.MojoExecutionException
Method Detail

get

public String get()
Description copied from interface: Script
Returns an evaluateable String containing the erlang script of the implementing class.

Returns:
An erlang script that can be evaluated.

handle

public String handle(com.ericsson.otp.erlang.OtpErlangObject result)
Converts the result of the Script execution into a String containing an erlang list of modules specifying a specific attribute.

Parameters:
result - to convert
Returns:
A list of modules, never null.


Copyright © 2012 Lindenbaum GmbH. All Rights Reserved.