public class MatchStatementResolverUtil extends Object
Constructor and Description |
---|
MatchStatementResolverUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
generateMatchPattern(String matchValue,
LSContext ctx)
Generate the match pattern clause for the given value.
|
static String |
getStructuredFixedValueMatch(BType bType)
Get the Structured fixed value match.
|
static String |
getTupleDestructured(BTupleType bTupleType,
List<String> varNames,
LSContext context)
Get the tuple destructured pattern.
|
static String |
getVariableValueDestructurePattern(LSContext ctx)
Get the variable value destruture pattern.
|
public static String getVariableValueDestructurePattern(LSContext ctx)
ctx
- LS Service Operation contextString
Generated Pattern clausepublic static String getTupleDestructured(BTupleType bTupleType, List<String> varNames, LSContext context)
bTupleType
- Tuple typevarNames
- Variable names list currently addedcontext
- LS Operation contextString
Generated pattern clausepublic static String getStructuredFixedValueMatch(BType bType)
bType
- Structured type, either BRecordType or a BTupleTypeString
Generate pattern clauseCopyright © 2019 WSO2. All rights reserved.