Class FixNameStrategy
- java.lang.Object
-
- ch.obermuhlner.scriptengine.java.name.FixNameStrategy
-
- All Implemented Interfaces:
NameStrategy
public class FixNameStrategy extends java.lang.Object implements NameStrategy
ANameStrategyimplementation that returns a fixed name.
-
-
Constructor Summary
Constructors Constructor Description FixNameStrategy(java.lang.String fullName)Constructs aFixNameStrategywith the specified fully qualified name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFullName(java.lang.String script)Returns the fully qualified name of the Java class in the specified script.
-
-
-
Constructor Detail
-
FixNameStrategy
public FixNameStrategy(java.lang.String fullName)
Constructs aFixNameStrategywith the specified fully qualified name.- Parameters:
fullName- the fully qualified class name to return
-
-
Method Detail
-
getFullName
public java.lang.String getFullName(java.lang.String script)
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
-
-