public interface CodeGeneratorService
Modifier and Type | Method and Description |
---|---|
String |
cast(String variable,
Class target)
Generate a Java cast unless it is known to be unnecessary.
|
String |
getContextVariableName()
Get the name of the Java variable currently bound to the dynamic XPathContext object
|
String getContextVariableName()
String cast(String variable, Class target)
variable
- the name of the variable that possibly needs to be casttarget
- the required type for the expression where the variable is being used