eu.lindenbaum.maven.erlang
Class FilterForAttributeScript
java.lang.Object
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
Fields inherited from interface eu.lindenbaum.maven.erlang.Script |
NL |
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 |
script
protected final String script
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 filterattribute
- to look after
- Throws:
org.apache.maven.plugin.MojoExecutionException
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.