public interface NameStrategy
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
extractPackageName(java.lang.String fullName)
Extracts the package name from a fully qualified class name.
|
static java.lang.String |
extractSimpleName(java.lang.String fullName)
Extracts the simple name from a fully qualified class name.
|
java.lang.String |
getFullName(java.lang.String script)
Returns the fully qualified name of the Java class in the specified script.
|
java.lang.String getFullName(java.lang.String script)
throws javax.script.ScriptException
script - the Java scriptjavax.script.ScriptException - if no class name could be determinedstatic java.lang.String extractSimpleName(java.lang.String fullName)
fullName - the fully qualified class namestatic java.lang.String extractPackageName(java.lang.String fullName)
fullName - the fully qualified class name"" if it is the default package