public interface SourceFactory
Modifier and Type | Method and Description |
---|---|
Source |
fromFile(File file)
gets source from script file.
|
Source |
fromText(String text)
gets source from script text.
|
Source |
fromText(String text,
String desiredClassName)
gets source from script text and desired class name.
|
Source |
fromUrl(URL url)
gets source from script URL.
|
Source fromText(String text)
text
- script textSource fromText(String text, String desiredClassName)
text
- script textdesiredClassName
- desired class nameSource fromFile(File file)
file
- script file