Class ScriptEvaluator.Script

java.lang.Object
org.codehaus.janino.ScriptEvaluator.Script
Enclosing class:
ScriptEvaluator

class ScriptEvaluator.Script extends Object
Represents one script that this ScriptEvaluator declares. Typically there exactly one such script, but there can be two or more - see ScriptEvaluator().
  • Field Details

    • overrideMethod

      protected boolean overrideMethod
      Whether the generated method overrides a method declared by a supertype; defaults to false.
    • staticMethod

      protected boolean staticMethod
      Whether the method is generated static; defaults to true.
    • returnType

      @Nullable protected Class<?> returnType
      The generated method's return type. null means "use the default return type".
      See Also:
    • methodName

      private String methodName
      The name of the generated method.
    • parameterNames

      private String[] parameterNames
    • parameterTypes

      private Class<?>[] parameterTypes
    • thrownExceptions

      private Class<?>[] thrownExceptions
  • Constructor Details

    • Script

      Script(String methodName)