org.datanucleus.util
Class MacroString

java.lang.Object
  extended by org.datanucleus.util.MacroString

public class MacroString
extends java.lang.Object

Macro String Utilities


Nested Class Summary
static class MacroString.IdentifierMacro
          Inner class : Identifier Macro
static interface MacroString.MacroHandler
          Inner class : Macro Handler
static class MacroString.ParameterMacro
          Inner class : Parameter Macro
 
Field Summary
protected static Localiser LOCALISER
           
 
Constructor Summary
MacroString(java.lang.String className, java.lang.String importsString, java.lang.String macroString)
          Constructor.
 
Method Summary
 java.lang.String substituteMacros(MacroString.MacroHandler mh, ClassLoaderResolver clr)
          Utility to substitute macros using the supplier handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCALISER

protected static final Localiser LOCALISER
Constructor Detail

MacroString

public MacroString(java.lang.String className,
                   java.lang.String importsString,
                   java.lang.String macroString)
Constructor.

Parameters:
className - The class name
importsString - String containing IMPORTs
macroString - String containing macro
Method Detail

substituteMacros

public java.lang.String substituteMacros(MacroString.MacroHandler mh,
                                         ClassLoaderResolver clr)
Utility to substitute macros using the supplier handler.

Parameters:
mh - Macro handler.
clr - ClassLoaderResolver
Returns:
The updated string


Copyright © 2011. All Rights Reserved.