public class ScriptFragment extends Object
| Constructor and Description |
|---|
ScriptFragment(String methodName)
Create a ScriptFragment
|
ScriptFragment(String methodName,
String... arguments)
Create a ScriptFragment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendToTail(ScriptFragment scriptFragment)
Append ScriptFragment to tail.
|
List<String> |
getArguments()
Get script arguments.
|
String |
getMethodName()
Get script method name.
|
ScriptFragment |
getNext()
Get next(trailing) ScriptFragment.
|
boolean |
hasArguments()
Check existence of arguments.
|
static boolean |
isScript(FixtureValue fixtureValue) |
static ScriptFragment |
of(FixtureValue fixtureValue)
Parse a FixtueValue to ScriptFragments
|
static ScriptFragment |
of(String script)
Parse a String to ScriptFragments
|
String |
toScriptString()
Get string of all trailing script.
|
public ScriptFragment(String methodName)
methodName - public static ScriptFragment of(FixtureValue fixtureValue)
fixtureValue - the FixtureValuepublic static ScriptFragment of(String script)
script - the string of scriptpublic static boolean isScript(FixtureValue fixtureValue)
public String getMethodName()
public boolean hasArguments()
public ScriptFragment getNext()
public void appendToTail(ScriptFragment scriptFragment)
public String toScriptString()
Copyright © 2018. All rights reserved.