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 aFixNameStrategywith 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 aFixNameStrategywith the specified fully qualified name.- Parameters:
fullName- the fully qualified class name to return
-
-
Method Details
-
getFullName
Description copied from interface:NameStrategyReturns the fully qualified name of the Java class in the specified script.- Specified by:
getFullNamein interfaceNameStrategy- Parameters:
script- the Java script- Returns:
- the fully qualified class name
-