Package | Description |
---|---|
org.ballerinalang.launcher.util |
Modifier and Type | Method and Description |
---|---|
static CompileResult |
BCompileUtil.compile(Object obj,
String sourceRoot,
String packageName)
Compile and return the semantic errors.
|
static CompileResult |
BCompileUtil.compile(String sourceFilePath)
Compile and return the semantic errors.
|
static CompileResult |
BCompileUtil.compile(String sourceFilePath,
boolean isSiddhiRuntimeEnabled) |
static CompileResult |
BCompileUtil.compile(String sourceFilePath,
CompilerPhase compilerPhase)
Compile and return the semantic errors.
|
static CompileResult |
BCompileUtil.compile(String sourceFilePath,
CompilerPhase compilerPhase,
boolean enableExpFeatures)
Compile and return the semantic errors.
|
static CompileResult |
BCompileUtil.compile(String sourceRoot,
String packageName,
CompilerPhase compilerPhase)
Compile and return the semantic errors.
|
static CompileResult |
BCompileUtil.compile(String sourceRoot,
String packageName,
CompilerPhase compilerPhase,
boolean enableExpFeatures)
Compile and return the semantic errors.
|
static CompileResult |
BCompileUtil.compile(String sourceRoot,
String packageName,
CompilerPhase compilerPhase,
boolean isSiddhiRuntimeEnabled,
boolean enableExpFeatures)
Compile and return the semantic errors.
|
static CompileResult |
BCompileUtil.compile(String sourceRoot,
String packageName,
CompilerPhase compilerPhase,
SourceDirectory sourceDirectory) |
static CompileResult |
BCompileUtil.compileAndGetBIR(String sourceFilePath)
Compile and return the semantic errors.
|
static CompileResult |
BCompileUtil.compileAndSetup(Object obj,
String sourceRoot,
String packageName)
Compile and return the semantic errors.
|
static CompileResult |
BCompileUtil.compileAndSetup(String sourceFilePath)
Compile and return the semantic errors.
|
static CompileResult |
BCompileUtil.compileWithoutExperimentalFeatures(String sourceFilePath) |
static CompileResult |
BCompileUtil.compileWithTests(CompilerContext context,
String packageName,
CompilerPhase compilerPhase)
Compile with tests and return the semantic errors.
|
static CompileResult |
BServiceUtil.setupProgramFile(Object obj,
String sourcePath)
Helper method to setup a Ballerina file for test.
|
static CompileResult |
BServiceUtil.setupProgramFile(Object obj,
String sourcePath,
String pkgPath)
Helper method to setup program file for tests.
|
Modifier and Type | Method and Description |
---|---|
static void |
BRunUtil.invoke(CompileResult compileResult,
FunctionInfo initFuncInfo,
WorkerExecutionContext context)
Invoke a ballerina function given context.
|
static BValue[] |
BRunUtil.invoke(CompileResult compileResult,
String functionName)
Invoke a ballerina function.
|
static BValue[] |
BRunUtil.invoke(CompileResult compileResult,
String functionName,
BValue[] args)
Invoke a ballerina function.
|
static BValue[] |
BRunUtil.invoke(CompileResult compileResult,
String packageName,
String functionName)
Invoke a ballerina function.
|
static BValue[] |
BRunUtil.invoke(CompileResult compileResult,
String packageName,
String functionName,
BValue[] args)
Invoke a ballerina function.
|
static BValue[] |
BRunUtil.invokeFunction(CompileResult compileResult,
String functionName)
Invoke a ballerina function to get BReference Value Objects.
|
static BValue[] |
BRunUtil.invokeFunction(CompileResult compileResult,
String functionName,
BValue[] args)
Invoke a ballerina function to get BReference Value Objects.
|
static void |
BRunUtil.invokePackageInit(CompileResult compileResult)
Invoke package init function.
|
protected static void |
BRunUtil.invokePackageInit(CompileResult compileResult,
String packageName)
Invoke package init function.
|
static BValue[] |
BRunUtil.invokeStateful(CompileResult compileResult,
String functionName)
Invoke a ballerina function with state.
|
static BValue[] |
BRunUtil.invokeStateful(CompileResult compileResult,
String functionName,
BValue[] args)
Invoke a ballerina function with state.
|
static BValue[] |
BRunUtil.invokeStateful(CompileResult compileResult,
String packageName,
String functionName)
Invoke a ballerina function with state.
|
static BValue[] |
BRunUtil.invokeStateful(CompileResult compileResult,
String packageName,
String functionName,
BValue[] args)
Invoke a ballerina function with state.
|
static void |
BServiceUtil.runService(CompileResult compileResult)
Helper method for running a service given a CompileResult instance.
|
static void |
BAssertUtil.validateError(CompileResult result,
int errorIndex,
int expectedErrLine,
int expectedErrCol)
Assert an error (without error message).
|
static void |
BAssertUtil.validateError(CompileResult result,
int errorIndex,
String expectedErrMsg,
int expectedErrLine,
int expectedErrCol)
Assert an error.
|
static void |
BAssertUtil.validateErrorMessageOnly(CompileResult result,
int errorIndex,
String expectedPartOfErrMsg)
Validate if given text is contained in the error message.
|
static void |
BAssertUtil.validateErrorMessageOnly(CompileResult result,
int errorIndex,
String[] expectedPartsOfErrMsg)
Validate if at least one in the given list of texts is contained in the error message.
|
static void |
BAssertUtil.validateWarning(CompileResult result,
int warningIndex,
String expectedWarnMsg,
int expectedWarnLine,
int expectedWarnCol)
Assert a warning.
|
Copyright © 2018 WSO2. All rights reserved.