Package org.codehaus.janino
Class ScriptEvaluator.Script
- java.lang.Object
-
- org.codehaus.janino.ScriptEvaluator.Script
-
- Enclosing class:
- ScriptEvaluator
class ScriptEvaluator.Script extends java.lang.ObjectRepresents one script that thisScriptEvaluatordeclares. Typically there exactly one such script, but there can be two or more - seeScriptEvaluator().
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringmethodNameThe name of the generated method.protected booleanoverrideMethodWhether the generated method overrides a method declared by a supertype; defaults tofalse.private java.lang.String[]parameterNamesprivate java.lang.Class<?>[]parameterTypesprotected java.lang.Class<?>returnTypeThe generated method's return type.protected booleanstaticMethodWhether the method is generatedstatic; defaults totrue.private java.lang.Class<?>[]thrownExceptions
-
Constructor Summary
Constructors Constructor Description Script(java.lang.String methodName)
-
-
-
Field Detail
-
overrideMethod
protected boolean overrideMethod
Whether the generated method overrides a method declared by a supertype; defaults tofalse.
-
staticMethod
protected boolean staticMethod
Whether the method is generatedstatic; defaults totrue.
-
returnType
@Nullable protected java.lang.Class<?> returnType
The generated method's return type.nullmeans "use the default return type".
-
methodName
private java.lang.String methodName
The name of the generated method.
-
parameterNames
private java.lang.String[] parameterNames
-
parameterTypes
private java.lang.Class<?>[] parameterTypes
-
thrownExceptions
private java.lang.Class<?>[] thrownExceptions
-
-