public abstract class APreprocessingFunction extends Object implements IPreprocessingFunction
| Modifier and Type | Field and Description |
|---|---|
static String |
AT |
static Pattern |
checkFunctionString |
static String |
commaNotInsideQuotation
Matches comma if that comma is not followed by quotation mark
|
| Constructor and Description |
|---|
APreprocessingFunction() |
| Modifier and Type | Method and Description |
|---|---|
Instance |
applyFunction(Instance inst,
String property,
String... arguments)
Applies the function to this instance
|
abstract Instance |
applyFunctionAfterCheck(Instance inst,
String property,
String... arguments) |
String[] |
retrieveArguments(String args)
Retrieves the arguments for a function, but ignores the function id
|
String |
retrieveKeywordArgumentValue(String arg,
String keyword) |
void |
sanityCheckArguments(String args) |
void |
testIfNumberOfArgumentsIsLegal(String... arguments) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmaxNumberOfArguments, minNumberOfArgumentspublic static final String AT
public static final String commaNotInsideQuotation
public static final Pattern checkFunctionString
public Instance applyFunction(Instance inst, String property, String... arguments)
IPreprocessingFunctionapplyFunction in interface IPreprocessingFunctioninst - the instance that will be preprocessedproperty - for unary operators this is the property on which the function will be applied,
for n-ary fucntions this is the name of the new property where the result of the preprocessing will be storedarguments - some functions take argumentspublic abstract Instance applyFunctionAfterCheck(Instance inst, String property, String... arguments)
public void testIfNumberOfArgumentsIsLegal(String... arguments) throws IllegalNumberOfParametersException
public String[] retrieveArguments(String args)
args - the string from the config e.g. replace(test,)[test,]public void sanityCheckArguments(String args)
Copyright © 2018. All rights reserved.