Class MacroString
java.lang.Object
org.datanucleus.util.MacroString
Macro String Utilities
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInner class : Identifier Macrostatic interfaceInner class : Macro Handlerstatic classInner class : Parameter Macro -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMacroString(String className, String importsString, String macroString) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprivate MacroString.IdentifierMacroparseIdentifierMacro(String unparsed, ClassLoaderResolver clr) Utility to parse the identitifer macro.private ClassresolveClassDeclaration(String className, ClassLoaderResolver clr) Utility to resolve a class declaration.Utility to substitute macros using the supplier handler.
-
Field Details
-
thisClassName
-
imports
-
macroString
-
-
Constructor Details
-
MacroString
-
-
Method Details
-
substituteMacros
Utility to substitute macros using the supplier handler.- Parameters:
mh- Macro handler.clr- ClassLoaderResolver- Returns:
- The updated string
-
resolveClassDeclaration
Utility to resolve a class declaration.- Parameters:
className- Name of the classclr- the ClassLoaderResolver- Returns:
- The class
-
parseIdentifierMacro
Utility to parse the identitifer macro.- Parameters:
unparsed- The unparsed stringclr- ClassLoaderResolver- Returns:
- The parsed string
-