Class FixNameStrategy
- java.lang.Object
-
- ch.obermuhlner.scriptengine.java.name.FixNameStrategy
-
- All Implemented Interfaces:
NameStrategy
public class FixNameStrategy extends java.lang.Object implements NameStrategy
ANameStrategy
implementation that returns a fixed name.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
fullName
-
Constructor Summary
Constructors Constructor Description FixNameStrategy(java.lang.String fullName)
Constructs aFixNameStrategy
with the specified fully qualified name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFullName(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 aFixNameStrategy
with 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: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
-
-