public class TokenReplacer extends Object
| Constructor and Description |
|---|
TokenReplacer()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsTokens(String value)
Given a String, determines whether the string contains tokens.
|
void |
replaceToken(Node node,
String sourceFileName)
Replace any tokens in the value of the node or the text child of the node.
|
void |
reportTokens()
Used by the parser to report the replaced tokens once logging is setup.
|
public void replaceToken(Node node, String sourceFileName)
node - The node whose value will be searched for tokens.sourceFileName - The source file where the node came from.public void reportTokens()
public static boolean containsTokens(String value)
value - The String to check.Copyright © 2015 The Apache Software Foundation. All rights reserved.