Package adams.parser.plugin
Class Println
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.parser.plugin.AbstractParserProcedure
-
- adams.parser.plugin.Println
-
- All Implemented Interfaces:
LoggingSupporter
,SizeOfHandler
,ParserProcedure
,Serializable
public class Println extends AbstractParserProcedure
Example function that simply outputs the parameters on the command-line.- Version:
- $Revision$
- 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 Println()
-
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 void
doCallProcedure(Object[] params)
Gets called from the parser.String
getProcedureHelp()
Returns the help string for the procedure.String
getProcedureName()
Returns the procedure name.String
getProcedureSignature()
Returns the signature of the procedure.-
Methods inherited from class adams.parser.plugin.AbstractParserProcedure
callProcedure, getProcedures
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
getProcedureName
public String getProcedureName()
Returns the procedure name. Can only consist of letters, underscores, numbers.- Specified by:
getProcedureName
in interfaceParserProcedure
- Specified by:
getProcedureName
in classAbstractParserProcedure
- Returns:
- the name of the procedure
-
getProcedureSignature
public String getProcedureSignature()
Returns the signature of the procedure.- Specified by:
getProcedureSignature
in interfaceParserProcedure
- Specified by:
getProcedureSignature
in classAbstractParserProcedure
- Returns:
- the signature
-
getProcedureHelp
public String getProcedureHelp()
Returns the help string for the procedure.- Specified by:
getProcedureHelp
in interfaceParserProcedure
- Specified by:
getProcedureHelp
in classAbstractParserProcedure
- Returns:
- the help string
-
check
protected String check(Object[] params)
Performs some checks on the input parameters.- Specified by:
check
in classAbstractParserProcedure
- Parameters:
params
- the input parameters- Returns:
- always null
-
doCallProcedure
protected void doCallProcedure(Object[] params)
Gets called from the parser.- Specified by:
doCallProcedure
in classAbstractParserProcedure
- Parameters:
params
- the parameters obtained through the parser
-
-