Class FixNameStrategy

java.lang.Object
ch.obermuhlner.scriptengine.java.name.FixNameStrategy
All Implemented Interfaces:
NameStrategy

public class FixNameStrategy extends Object implements NameStrategy
A NameStrategy implementation that returns a fixed name.
  • Field Details

    • fullName

      private final String fullName
  • Constructor Details

    • FixNameStrategy

      public FixNameStrategy(String fullName)
      Constructs a FixNameStrategy with the specified fully qualified name.
      Parameters:
      fullName - the fully qualified class name to return
  • Method Details

    • getFullName

      public String getFullName(String script)
      Description copied from interface: NameStrategy
      Returns the fully qualified name of the Java class in the specified script.
      Specified by:
      getFullName in interface NameStrategy
      Parameters:
      script - the Java script
      Returns:
      the fully qualified class name