pmp
Class Version

java.lang.Object
  extended by pmp.AbstractMacro
      extended by pmp.Version

public final class Version
extends AbstractMacro

Version info for PMP.

Title: PMP: Macroprocessor

Description: Java macroprocessor

Copyright: Copyright (c) 2005

History

2006-05-24 / 0.9.5.45 - moved to CVS

Version:
1.0
Author:
Luděk Hlaváček

Field Summary
static java.lang.String AUTHOR
          Author of this project.
static java.lang.String CVS_AUTHOR
          Last user who commited this file.
static java.lang.String CVS_DATE
          Date of last commit.
static java.lang.String CVS_ID
          CVS Id of this file.
static java.lang.String CVS_NAME
          CVS tag name.
static java.lang.String CVS_RCSFILE
          Name of this source file in repository.
static java.lang.String CVS_REVISION
          Revision number of this file.
static java.lang.String CVS_ROOT
          Location of CVS repository.
static java.lang.String CVS_SOURCE
          Full path to this source file in repository.
static java.lang.String LAST_MODIFIED
          Last modified date.
static int PARAMS_REQUIRED
           
static java.lang.String PROJECT_NAME
          Name of this project.
static java.lang.String VERSION
          Current version number.
static java.lang.String XMLCONFIG_VERSION
          Version of config files this build uses.
 
Constructor Summary
Version()
           
 
Method Summary
 java.lang.String run(Macroprocessor mp, java.lang.String[] args)
          Main method of macro.
 java.lang.String toString()
           Returns string representation of macro.
 
Methods inherited from class pmp.AbstractMacro
getRequiredParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CVS_ROOT

public static final java.lang.String CVS_ROOT
Location of CVS repository.

See Also:
Constant Field Values

CVS_ID

public static final java.lang.String CVS_ID
CVS Id of this file.

See Also:
Constant Field Values

CVS_REVISION

public static final java.lang.String CVS_REVISION
Revision number of this file.

See Also:
Constant Field Values

CVS_DATE

public static final java.lang.String CVS_DATE
Date of last commit.

See Also:
Constant Field Values

CVS_AUTHOR

public static final java.lang.String CVS_AUTHOR
Last user who commited this file.

See Also:
Constant Field Values

CVS_NAME

public static final java.lang.String CVS_NAME
CVS tag name.

See Also:
Constant Field Values

CVS_SOURCE

public static final java.lang.String CVS_SOURCE
Full path to this source file in repository.

See Also:
Constant Field Values

CVS_RCSFILE

public static final java.lang.String CVS_RCSFILE
Name of this source file in repository.

See Also:
Constant Field Values

VERSION

public static final java.lang.String VERSION
Current version number.

See Also:
Constant Field Values

LAST_MODIFIED

public static final java.lang.String LAST_MODIFIED
Last modified date.

See Also:
Constant Field Values

PROJECT_NAME

public static final java.lang.String PROJECT_NAME
Name of this project.

See Also:
Constant Field Values

AUTHOR

public static final java.lang.String AUTHOR
Author of this project.

See Also:
Constant Field Values

XMLCONFIG_VERSION

public static final java.lang.String XMLCONFIG_VERSION
Version of config files this build uses.

See Also:
Constant Field Values

PARAMS_REQUIRED

public static final int PARAMS_REQUIRED
See Also:
Constant Field Values
Constructor Detail

Version

public Version()
Method Detail

toString

public java.lang.String toString()
Description copied from class: AbstractMacro

Returns string representation of macro. This method is used by defn macro. If you want reimplement this method, you must make sure it will not return null.

For user-defined macros it should return definition and for builtin ones empty string unless it has some meaning.

Overrides:
toString in class AbstractMacro
Returns:
empty String
See Also:
Defn

run

public java.lang.String run(Macroprocessor mp,
                            java.lang.String[] args)
Description copied from class: AbstractMacro
Main method of macro. This method is called when this macro is invoked. All subclasses must imlement this method

Specified by:
run in class AbstractMacro
Parameters:
mp - reference to Macroprocessor
args - parameters of macro. In args[0] is stored name of macro. Subclasses are free to modify this array.
Returns:
result of the macro as String