public class FilterUtils extends Object
Constructor and Description |
---|
FilterUtils() |
Modifier and Type | Method and Description |
---|---|
static List<SymbolInfo> |
getClientActions(BObjectTypeSymbol bObjectTypeSymbol)
Get the actions defined over and endpoint.
|
static List<SymbolInfo> |
getInvocationAndFieldSymbolsOnVar(LSServiceOperationContext context,
String variableName,
String delimiter,
List<SymbolInfo> symbolInfos)
Get the invocations and fields against an identifier (functions, actions and fields).
|
static List<SymbolInfo> |
getInvocationAndFieldSymbolsOnVar(LSServiceOperationContext context,
String variableName,
String delimiter,
List<SymbolInfo> symbolInfos,
boolean addBuiltIn)
Get the invocations and fields against an identifier (functions, actions and fields).
|
static SymbolInfo |
getVariableByName(String name,
List<SymbolInfo> symbols)
Get the variable symbol info by the name.
|
public static List<SymbolInfo> getInvocationAndFieldSymbolsOnVar(LSServiceOperationContext context, String variableName, String delimiter, List<SymbolInfo> symbolInfos, boolean addBuiltIn)
context
- Text Document Service context (Completion Context)variableName
- Variable name to evaluate against (Can be package alias or defined variable)delimiter
- delimiter String either dot or action invocation symbolsymbolInfos
- List of visible symbol infoaddBuiltIn
- Add built-in functionsArrayList
List of filtered symbol infopublic static List<SymbolInfo> getInvocationAndFieldSymbolsOnVar(LSServiceOperationContext context, String variableName, String delimiter, List<SymbolInfo> symbolInfos)
context
- Text Document Service context (Completion Context)variableName
- Variable name to evaluate against (Can be package alias or defined variable)delimiter
- delimiter String either dot or action invocation symbolsymbolInfos
- List of visible symbol infoArrayList
List of filtered symbol infopublic static List<SymbolInfo> getClientActions(BObjectTypeSymbol bObjectTypeSymbol)
bObjectTypeSymbol
- Endpoint variable symbol to evaluateList
List of extracted actions as Symbol Infopublic static SymbolInfo getVariableByName(String name, List<SymbolInfo> symbols)
name
- name of the variablesymbols
- list of symbol infoSymbolInfo
Symbol Info extractedCopyright © 2019 WSO2. All rights reserved.