public class DefaultNameStrategy extends java.lang.Object implements NameStrategy
NameStrategy that scans the Java script to determine the package name and class name defined in the script.| Constructor and Description |
|---|
DefaultNameStrategy() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFullName(java.lang.String script)
Returns the fully qualified name of the Java class in the specified script.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitextractPackageName, extractSimpleNamepublic java.lang.String getFullName(java.lang.String script)
throws javax.script.ScriptException
NameStrategygetFullName in interface NameStrategyscript - the Java scriptjavax.script.ScriptException - if no class name could be determined