Package adams.parser.plugin
Class Env
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.parser.plugin.AbstractParserFunction
-
- adams.parser.plugin.Env
-
- All Implemented Interfaces:
LoggingSupporter
,SizeOfHandler
,ParserFunction
,Serializable
public class Env extends AbstractParserFunction
Example function that simply outputs the parameters on the command-line.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description Env()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
check(Object[] params)
Performs some checks on the input parameters.protected Object
doCallFunction(Object[] params)
Gets called from the parser.String
getFunctionHelp()
Returns the help string for the function.String
getFunctionName()
Returns the function name.String
getFunctionSignature()
Returns the signature of the function.-
Methods inherited from class adams.parser.plugin.AbstractParserFunction
callFunction, getFunctions
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
getFunctionName
public String getFunctionName()
Returns the function name. Can only consist of letters, underscores, numbers.- Specified by:
getFunctionName
in interfaceParserFunction
- Specified by:
getFunctionName
in classAbstractParserFunction
- Returns:
- the name of the function
-
getFunctionSignature
public String getFunctionSignature()
Returns the signature of the function.- Specified by:
getFunctionSignature
in interfaceParserFunction
- Specified by:
getFunctionSignature
in classAbstractParserFunction
- Returns:
- the signature
-
getFunctionHelp
public String getFunctionHelp()
Returns the help string for the function.- Specified by:
getFunctionHelp
in interfaceParserFunction
- Specified by:
getFunctionHelp
in classAbstractParserFunction
- Returns:
- the help string
-
check
protected String check(Object[] params)
Performs some checks on the input parameters.- Specified by:
check
in classAbstractParserFunction
- Parameters:
params
- the input parameters- Returns:
- always null
-
doCallFunction
protected Object doCallFunction(Object[] params)
Gets called from the parser.- Specified by:
doCallFunction
in classAbstractParserFunction
- Parameters:
params
- the parameters obtained through the parser- Returns:
- the result to be used further in the parser
-
-