Interface NameStrategy
- All Known Implementing Classes:
DefaultNameStrategy, FixNameStrategy
public interface NameStrategy
The strategy used to determine the name of a Java class in a script.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringextractPackageName(String fullName) Extracts the package name from a fully qualified class name.static StringextractSimpleName(String fullName) Extracts the simple name from a fully qualified class name.getFullName(String script) Returns the fully qualified name of the Java class in the specified script.
-
Method Details
-
getFullName
Returns the fully qualified name of the Java class in the specified script.- Parameters:
script- the Java script- Returns:
- the fully qualified class name
- Throws:
ScriptException- if no class name could be determined
-
extractSimpleName
-
extractPackageName
-