Class FixNameStrategy
java.lang.Object
ch.obermuhlner.scriptengine.java.name.FixNameStrategy
- All Implemented Interfaces:
NameStrategy
A
NameStrategy
implementation that returns a fixed name.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFixNameStrategy
(String fullName) Constructs aFixNameStrategy
with the specified fully qualified name. -
Method Summary
Modifier and TypeMethodDescriptiongetFullName
(String script) Returns the fully qualified name of the Java class in the specified script.
-
Field Details
-
fullName
-
-
Constructor Details
-
FixNameStrategy
Constructs aFixNameStrategy
with the specified fully qualified name.- Parameters:
fullName
- the fully qualified class name to return
-
-
Method Details
-
getFullName
Description copied from interface:NameStrategy
Returns the fully qualified name of the Java class in the specified script.- Specified by:
getFullName
in interfaceNameStrategy
- Parameters:
script
- the Java script- Returns:
- the fully qualified class name
-