Skip navigation links
A B C D E F G I K L N O P R S T U V W 

A

addPackage(PackageID, BLangPackage) - Method in class org.ballerinalang.langserver.compiler.LSPackageCache
add package to the package map.

B

BallerinaFile - Class in org.ballerinalang.langserver.compiler.common.modal
Class which contains Ballerina model and Diagnostic information.
BallerinaFile() - Constructor for class org.ballerinalang.langserver.compiler.common.modal.BallerinaFile
 

C

canHandle(Path) - Method in class org.ballerinalang.langserver.compiler.LSContextManager.NullSourceDirectory
 
clearAll() - Method in class org.ballerinalang.langserver.compiler.CollectDiagnosticListener
 
clearAllContexts() - Method in class org.ballerinalang.langserver.compiler.LSContextManager
Clear all compiler contexts.
clearCache() - Method in class org.ballerinalang.langserver.compiler.LSPackageCache
 
closeFile(Path) - Method in class org.ballerinalang.langserver.compiler.workspace.ExtendedWorkspaceDocumentManagerImpl
 
closeFile(Path) - Method in interface org.ballerinalang.langserver.compiler.workspace.WorkspaceDocumentManager
Close the given file in document manager.
closeFile(Path) - Method in class org.ballerinalang.langserver.compiler.workspace.WorkspaceDocumentManagerImpl
 
CollectDiagnosticListener - Class in org.ballerinalang.langserver.compiler
This Diagnostic Listener can be used to collect all the Diagnostic information.
CollectDiagnosticListener(List<Diagnostic>) - Constructor for class org.ballerinalang.langserver.compiler.CollectDiagnosticListener
 
compileContent(String, CompilerPhase) - Method in class org.ballerinalang.langserver.compiler.LSCompiler
 
compileContent(String, CompilerPhase, boolean) - Method in class org.ballerinalang.langserver.compiler.LSCompiler
Returns a BallerinaFile compiling in-memory content.
compileContent(String, Path, CompilerPhase) - Method in class org.ballerinalang.langserver.compiler.LSCompiler
 
compileContent(String, Path, CompilerPhase, boolean) - Method in class org.ballerinalang.langserver.compiler.LSCompiler
 
compileContent(String, Path, CompilerPhase, WorkspaceDocumentManager, boolean) - Static method in class org.ballerinalang.langserver.compiler.LSCompiler
 
COMPILER_CONTEXT_KEY - Static variable in class org.ballerinalang.langserver.compiler.DocumentServiceKeys
 
createAndGetTempFile(String) - Static method in class org.ballerinalang.langserver.compiler.LSCompiler
Create and returns temp file.
createTempCompilerContext() - Static method in class org.ballerinalang.langserver.compiler.LSContextManager
Returns an unique temporary compiler context.
CURRENT_BLANG_PACKAGE_CONTEXT_KEY - Static variable in class org.ballerinalang.langserver.compiler.DocumentServiceKeys
 
CURRENT_PACKAGE_NAME_KEY - Static variable in class org.ballerinalang.langserver.compiler.DocumentServiceKeys
 
CustomErrorStrategyFactory - Class in org.ballerinalang.langserver.compiler.common
Custom error strategy factory.
CustomErrorStrategyFactory() - Constructor for class org.ballerinalang.langserver.compiler.common.CustomErrorStrategyFactory
 

D

DocumentServiceKeys - Class in org.ballerinalang.langserver.compiler
Text Document Service context keys for the completion operation context.
DocumentServiceKeys() - Constructor for class org.ballerinalang.langserver.compiler.DocumentServiceKeys
 

E

ExtendedWorkspaceDocumentManagerImpl - Class in org.ballerinalang.langserver.compiler.workspace
This class provides an abstraction layer for a given filePath.

F

FILE_NAME_KEY - Static variable in class org.ballerinalang.langserver.compiler.DocumentServiceKeys
 
FILE_URI_KEY - Static variable in class org.ballerinalang.langserver.compiler.DocumentServiceKeys
 
findPackage(CompilerContext, PackageID) - Method in class org.ballerinalang.langserver.compiler.LSPackageCache
Find the package by Package ID.
findProjectRoot(String) - Static method in class org.ballerinalang.langserver.compiler.LSCompiler
Find project root directory.

G

generateJSON(Node, Map<String, Node>) - Static method in class org.ballerinalang.langserver.compiler.format.TextDocumentFormatUtil
Generate json representation for the given node.
get(LSContext.Key<V>) - Method in interface org.ballerinalang.langserver.compiler.LSContext
Get property by Key.
get(LSContext.Key<V>) - Method in class org.ballerinalang.langserver.compiler.LSServiceOperationContext
 
getAST(DocumentFormattingParams, WorkspaceDocumentManager, LSContext) - Static method in class org.ballerinalang.langserver.compiler.format.TextDocumentFormatUtil
Get the AST for the current text document's content.
getBLangPackage() - Method in class org.ballerinalang.langserver.compiler.common.modal.BallerinaFile
 
getBLangPackage(LSContext, WorkspaceDocumentManager, boolean, Class, boolean) - Static method in class org.ballerinalang.langserver.compiler.LSCompiler
Get the BLangPackage for a given program.
getBuiltinPackages(CompilerContext) - Static method in class org.ballerinalang.langserver.compiler.LSPackageLoader
Get the Builtin Package.
getBuiltInPackagesCompilerContext() - Method in class org.ballerinalang.langserver.compiler.LSContextManager
Returns a global singleton compiler context for the static builtin packages.
getCode() - Method in class org.ballerinalang.langserver.compiler.workspace.repository.WorkspacePackageRepository.WorkspacePackageSource.WorkspacePackageSourceEntry
 
getCompilerContext(PackageID, String) - Method in class org.ballerinalang.langserver.compiler.LSContextManager
Returns a unique compiler context for the provided project directory path.
getCompilerContext(String) - Method in class org.ballerinalang.langserver.compiler.LSContextManager
Returns a unique compiler context for the provided project directory path.
getCompilerContext(PackageID, String, boolean) - Method in class org.ballerinalang.langserver.compiler.LSContextManager
Returns a unique compiler context for the project directory path.
getContent() - Method in class org.ballerinalang.langserver.compiler.workspace.WorkspaceDocument
 
getConverter() - Method in class org.ballerinalang.langserver.compiler.LSContextManager.NullSourceDirectory
 
getConverter() - Method in class org.ballerinalang.langserver.compiler.workspace.repository.LangServerFSProgramDirectory
 
getConverter() - Method in class org.ballerinalang.langserver.compiler.workspace.repository.LangServerFSProjectDirectory
 
getCustomErrorStrategy(Class, LSContext) - Static method in class org.ballerinalang.langserver.compiler.common.CustomErrorStrategyFactory
Get custom error strategy for given class.
getDiagnostics() - Method in class org.ballerinalang.langserver.compiler.CollectDiagnosticListener
 
getDiagnostics() - Method in class org.ballerinalang.langserver.compiler.common.modal.BallerinaFile
 
getEntryName() - Method in class org.ballerinalang.langserver.compiler.workspace.repository.WorkspacePackageRepository.WorkspacePackageSource.WorkspacePackageSourceEntry
 
getEntryNames() - Method in class org.ballerinalang.langserver.compiler.workspace.repository.WorkspacePackageRepository.WorkspacePackageSource
 
getFileContent(Path) - Method in class org.ballerinalang.langserver.compiler.workspace.ExtendedWorkspaceDocumentManagerImpl
 
getFileContent(Path) - Method in interface org.ballerinalang.langserver.compiler.workspace.WorkspaceDocumentManager
Gets uptodate content of the file.
getFileContent(Path) - Method in class org.ballerinalang.langserver.compiler.workspace.WorkspaceDocumentManagerImpl
 
getInstance() - Static method in class org.ballerinalang.langserver.compiler.LSContextManager
 
getInstance(CompilerContext) - Static method in class org.ballerinalang.langserver.compiler.LSPackageCache
 
getInstance() - Static method in class org.ballerinalang.langserver.compiler.workspace.ExtendedWorkspaceDocumentManagerImpl
 
getInstance(CompilerContext, Path, WorkspaceDocumentManager) - Static method in class org.ballerinalang.langserver.compiler.workspace.repository.LangServerFSProgramDirectory
 
getInstance(CompilerContext, Path, WorkspaceDocumentManager) - Static method in class org.ballerinalang.langserver.compiler.workspace.repository.LangServerFSProjectDirectory
 
getInstance() - Static method in class org.ballerinalang.langserver.compiler.workspace.WorkspaceDocumentManagerImpl
 
getKind() - Method in class org.ballerinalang.langserver.compiler.workspace.repository.WorkspacePackageRepository.WorkspacePackageSource
 
getLock() - Method in class org.ballerinalang.langserver.compiler.workspace.WorkspaceDocument
 
getLockFileContent() - Method in class org.ballerinalang.langserver.compiler.LSContextManager.NullSourceDirectory
 
getManifestContent() - Method in class org.ballerinalang.langserver.compiler.LSContextManager.NullSourceDirectory
 
getName() - Method in class org.ballerinalang.langserver.compiler.workspace.repository.WorkspacePackageRepository.WorkspacePackageSource
 
getPackageById(CompilerContext, PackageID) - Static method in class org.ballerinalang.langserver.compiler.LSPackageLoader
Get the package by ID via Package loader.
getPackageCache() - Method in class org.ballerinalang.langserver.compiler.LSPackageCache
 
getPackageId() - Method in class org.ballerinalang.langserver.compiler.workspace.repository.WorkspacePackageRepository.WorkspacePackageSource
 
getPackageID() - Method in class org.ballerinalang.langserver.compiler.workspace.repository.WorkspacePackageRepository.WorkspacePackageSource.WorkspacePackageSourceEntry
 
getPackageMap() - Method in class org.ballerinalang.langserver.compiler.LSPackageCache
 
getPackageNameForGivenFile(String, String) - Static method in class org.ballerinalang.langserver.compiler.LSCompiler
Get the package name for given file.
getPackageRepository() - Method in class org.ballerinalang.langserver.compiler.workspace.repository.WorkspacePackageRepository.WorkspacePackageSource
 
getPackageSourceEntries() - Method in class org.ballerinalang.langserver.compiler.workspace.repository.WorkspacePackageRepository.WorkspacePackageSource
 
getPackageSourceEntry(String) - Method in class org.ballerinalang.langserver.compiler.workspace.repository.WorkspacePackageRepository.WorkspacePackageSource
 
getPath() - Method in class org.ballerinalang.langserver.compiler.common.LSDocument
Get the path of the given URI.
getPath() - Method in class org.ballerinalang.langserver.compiler.LSContextManager.NullSourceDirectory
 
getPath() - Method in class org.ballerinalang.langserver.compiler.workspace.WorkspaceDocument
 
getRepoHierarchy() - Method in class org.ballerinalang.langserver.compiler.workspace.repository.WorkspacePackageRepository.WorkspacePackageSource
 
getSourceFileNames() - Method in class org.ballerinalang.langserver.compiler.LSContextManager.NullSourceDirectory
 
getSourcePackageNames() - Method in class org.ballerinalang.langserver.compiler.LSContextManager.NullSourceDirectory
 
getSourceRoot() - Method in class org.ballerinalang.langserver.compiler.common.LSDocument
Get source root.
getSourceRoot(Path) - Static method in class org.ballerinalang.langserver.compiler.LSCompiler
Get the source root for the given package.
getSourceRootPath() - Method in class org.ballerinalang.langserver.compiler.common.LSDocument
Get source root path.
getStaticPkgNames() - Static method in class org.ballerinalang.langserver.compiler.LSPackageLoader
Returns a static packages list.
getType(Node) - Static method in class org.ballerinalang.langserver.compiler.format.TextDocumentFormatUtil
Get Type of the node as an Json Array.
getUnsavedFileIdOrNull(String) - Static method in class org.ballerinalang.langserver.compiler.LSCompiler
Returns unsaved file id or null.
getURI() - Method in class org.ballerinalang.langserver.compiler.common.LSDocument
Get the URI of the given string URI.
getURIString() - Method in class org.ballerinalang.langserver.compiler.common.LSDocument
Get the uri.

I

isBallerinaProject() - Method in class org.ballerinalang.langserver.compiler.common.modal.BallerinaFile
 
isExplicitMode() - Method in class org.ballerinalang.langserver.compiler.workspace.ExtendedWorkspaceDocumentManagerImpl
 
isFileOpen(Path) - Method in class org.ballerinalang.langserver.compiler.workspace.ExtendedWorkspaceDocumentManagerImpl
 
isFileOpen(Path) - Method in interface org.ballerinalang.langserver.compiler.workspace.WorkspaceDocumentManager
Checks whether the given file is open in workspace.
isFileOpen(Path) - Method in class org.ballerinalang.langserver.compiler.workspace.WorkspaceDocumentManagerImpl
 
isProjectDir(String, String) - Static method in class org.ballerinalang.langserver.compiler.LSCompiler
Check whether given directory is a project dir.

K

Key() - Constructor for class org.ballerinalang.langserver.compiler.LSContext.Key
 

L

LangServerFSProgramDirectory - Class in org.ballerinalang.langserver.compiler.workspace.repository
FS program directory handler for the language server.
LangServerFSProgramDirectory(CompilerContext, Path, WorkspaceDocumentManager) - Constructor for class org.ballerinalang.langserver.compiler.workspace.repository.LangServerFSProgramDirectory
 
LangServerFSProjectDirectory - Class in org.ballerinalang.langserver.compiler.workspace.repository
Lang Server File System Project Directory.
lockFile(Path) - Method in interface org.ballerinalang.langserver.compiler.workspace.WorkspaceDocumentManager
Acquire a file lock.
lockFile(Path) - Method in class org.ballerinalang.langserver.compiler.workspace.WorkspaceDocumentManagerImpl
 
lockWriteAndEnableExplicitMode(Path) - Method in class org.ballerinalang.langserver.compiler.workspace.ExtendedWorkspaceDocumentManagerImpl
Enables explicit mode.
lookupPackageSource(PackageID) - Method in class org.ballerinalang.langserver.compiler.workspace.repository.WorkspacePackageRepository
 
lookupPackageSource(PackageID, String) - Method in class org.ballerinalang.langserver.compiler.workspace.repository.WorkspacePackageRepository
 
LSCompiler - Class in org.ballerinalang.langserver.compiler
Language server compiler implementation for Ballerina.
LSCompiler(WorkspaceDocumentManager) - Constructor for class org.ballerinalang.langserver.compiler.LSCompiler
 
LSContext - Interface in org.ballerinalang.langserver.compiler
Ballerina Language server context.
LSContext.Key<K> - Class in org.ballerinalang.langserver.compiler
 
LSContextManager - Class in org.ballerinalang.langserver.compiler
This class will hold compiler contexts against the project directory.
LSContextManager.NullSourceDirectory - Class in org.ballerinalang.langserver.compiler
Null source directory.
LSCustomErrorStrategy - Class in org.ballerinalang.langserver.compiler.common
Custom error strategy for language server.
LSCustomErrorStrategy(LSContext) - Constructor for class org.ballerinalang.langserver.compiler.common.LSCustomErrorStrategy
 
LSDocument - Class in org.ballerinalang.langserver.compiler.common
Document class to hold the file path used in the LS.
LSDocument() - Constructor for class org.ballerinalang.langserver.compiler.common.LSDocument
 
LSDocument(String) - Constructor for class org.ballerinalang.langserver.compiler.common.LSDocument
 
LSDocument(String, String) - Constructor for class org.ballerinalang.langserver.compiler.common.LSDocument
 
LSPackageCache - Class in org.ballerinalang.langserver.compiler
Package context to keep the builtin and the current package.
LSPackageLoader - Class in org.ballerinalang.langserver.compiler
Loads the Ballerina builtin core and builtin packages.
LSPackageLoader() - Constructor for class org.ballerinalang.langserver.compiler.LSPackageLoader
 
LSServiceOperationContext - Class in org.ballerinalang.langserver.compiler
Language server context for text document server.
LSServiceOperationContext() - Constructor for class org.ballerinalang.langserver.compiler.LSServiceOperationContext
 

N

NullSourceDirectory() - Constructor for class org.ballerinalang.langserver.compiler.LSContextManager.NullSourceDirectory
 

O

openFile(Path, String) - Method in class org.ballerinalang.langserver.compiler.workspace.ExtendedWorkspaceDocumentManagerImpl
 
openFile(Path, String) - Method in interface org.ballerinalang.langserver.compiler.workspace.WorkspaceDocumentManager
Opens the given file in document manager.
openFile(Path, String) - Method in class org.ballerinalang.langserver.compiler.workspace.WorkspaceDocumentManagerImpl
 
OPERATION_META_CONTEXT_KEY - Static variable in class org.ballerinalang.langserver.compiler.DocumentServiceKeys
 
org.ballerinalang.langserver.compiler - package org.ballerinalang.langserver.compiler
 
org.ballerinalang.langserver.compiler.common - package org.ballerinalang.langserver.compiler.common
 
org.ballerinalang.langserver.compiler.common.modal - package org.ballerinalang.langserver.compiler.common.modal
 
org.ballerinalang.langserver.compiler.format - package org.ballerinalang.langserver.compiler.format
 
org.ballerinalang.langserver.compiler.workspace - package org.ballerinalang.langserver.compiler.workspace
 
org.ballerinalang.langserver.compiler.workspace.repository - package org.ballerinalang.langserver.compiler.workspace.repository
 

P

PARSER_RULE_CONTEXT_KEY - Static variable in class org.ballerinalang.langserver.compiler.DocumentServiceKeys
 
POSITION_KEY - Static variable in class org.ballerinalang.langserver.compiler.DocumentServiceKeys
 
prepareCompilerContext(PackageID, PackageRepository, LSDocument, boolean, WorkspaceDocumentManager) - Static method in class org.ballerinalang.langserver.compiler.LSCompiler
Prepare the compiler context.
prepareCompilerContext(PackageID, PackageRepository, LSDocument, boolean, WorkspaceDocumentManager, CompilerPhase) - Static method in class org.ballerinalang.langserver.compiler.LSCompiler
Prepare the compiler context.
put(LSContext.Key<V>, V) - Method in interface org.ballerinalang.langserver.compiler.LSContext
Add new Context property.
put(LSContext.Key<V>, V) - Method in class org.ballerinalang.langserver.compiler.LSServiceOperationContext
 

R

received(Diagnostic) - Method in class org.ballerinalang.langserver.compiler.CollectDiagnosticListener
 
removeCompilerContext(String, CompilerContext) - Method in class org.ballerinalang.langserver.compiler.LSContextManager
Remove a compiler context by project directory.
removePackage(PackageID) - Method in class org.ballerinalang.langserver.compiler.LSPackageCache
removes package from the package map.
reportInputMismatch(Parser, InputMismatchException) - Method in class org.ballerinalang.langserver.compiler.common.LSCustomErrorStrategy
 
reportMissingToken(Parser) - Method in class org.ballerinalang.langserver.compiler.common.LSCustomErrorStrategy
 
reportNoViableAlternative(Parser, NoViableAltException) - Method in class org.ballerinalang.langserver.compiler.common.LSCustomErrorStrategy
 
reportUnwantedToken(Parser) - Method in class org.ballerinalang.langserver.compiler.common.LSCustomErrorStrategy
 

S

saveCompiledPackage(InputStream, String) - Method in class org.ballerinalang.langserver.compiler.LSContextManager.NullSourceDirectory
 
saveCompiledProgram(InputStream, String) - Method in class org.ballerinalang.langserver.compiler.LSContextManager.NullSourceDirectory
 
setBallerinaProject(boolean) - Method in class org.ballerinalang.langserver.compiler.common.modal.BallerinaFile
 
setBLangPackage(BLangPackage) - Method in class org.ballerinalang.langserver.compiler.common.modal.BallerinaFile
 
setCompilerContext(String, CompilerContext) - Method in class org.ballerinalang.langserver.compiler.LSContextManager
Set compiler context for a given project directory
setContent(String) - Method in class org.ballerinalang.langserver.compiler.workspace.WorkspaceDocument
 
setContextException(Parser) - Method in class org.ballerinalang.langserver.compiler.common.LSCustomErrorStrategy
 
setDiagnostics(List<Diagnostic>) - Method in class org.ballerinalang.langserver.compiler.common.modal.BallerinaFile
 
setPath(Path) - Method in class org.ballerinalang.langserver.compiler.workspace.WorkspaceDocument
 
setSourceRoot(String) - Method in class org.ballerinalang.langserver.compiler.common.LSDocument
Set source root.
setUri(String) - Method in class org.ballerinalang.langserver.compiler.common.LSDocument
Set URI.
SYMBOL_LIST_KEY - Static variable in class org.ballerinalang.langserver.compiler.DocumentServiceKeys
 
SYMBOL_TABLE_KEY - Static variable in class org.ballerinalang.langserver.compiler.DocumentServiceKeys
 

T

TextDocumentFormatUtil - Class in org.ballerinalang.langserver.compiler.format
Utilities for text document format.
TextDocumentFormatUtil() - Constructor for class org.ballerinalang.langserver.compiler.format.TextDocumentFormatUtil
 
TOKEN_INDEX_KEY - Static variable in class org.ballerinalang.langserver.compiler.DocumentServiceKeys
 
TOKEN_STREAM_KEY - Static variable in class org.ballerinalang.langserver.compiler.DocumentServiceKeys
 

U

unlockWriteAndDisableExplicitMode(Lock) - Method in class org.ballerinalang.langserver.compiler.workspace.ExtendedWorkspaceDocumentManagerImpl
Disables explicit mode.
UNTITLED_BAL - Static variable in class org.ballerinalang.langserver.compiler.LSCompiler
 
updateFile(Path, String) - Method in class org.ballerinalang.langserver.compiler.workspace.ExtendedWorkspaceDocumentManagerImpl
 
updateFile(Path, String) - Method in interface org.ballerinalang.langserver.compiler.workspace.WorkspaceDocumentManager
Updates given file in document manager with new content.
updateFile(Path, String) - Method in class org.ballerinalang.langserver.compiler.workspace.WorkspaceDocumentManagerImpl
 

V

VOCABULARY_KEY - Static variable in class org.ballerinalang.langserver.compiler.DocumentServiceKeys
 

W

WorkspaceDocument - Class in org.ballerinalang.langserver.compiler.workspace
Represents a document open in workspace.
WorkspaceDocument(Path, String) - Constructor for class org.ballerinalang.langserver.compiler.workspace.WorkspaceDocument
 
WorkspaceDocumentManager - Interface in org.ballerinalang.langserver.compiler.workspace
This represents a Document Manager for the workspace.
WorkspaceDocumentManagerImpl - Class in org.ballerinalang.langserver.compiler.workspace
An in-memory document manager that keeps dirty files in-memory and will match the collection of files currently open in tool's workspace.
WorkspaceDocumentManagerImpl() - Constructor for class org.ballerinalang.langserver.compiler.workspace.WorkspaceDocumentManagerImpl
 
WorkspacePackageRepository - Class in org.ballerinalang.langserver.compiler.workspace.repository
Workspace Package repository for language server.
WorkspacePackageRepository(String, WorkspaceDocumentManager) - Constructor for class org.ballerinalang.langserver.compiler.workspace.repository.WorkspacePackageRepository
 
WorkspacePackageRepository.WorkspacePackageSource - Class in org.ballerinalang.langserver.compiler.workspace.repository
Workspace Package source implementation for language server.
WorkspacePackageRepository.WorkspacePackageSource.WorkspacePackageSourceEntry - Class in org.ballerinalang.langserver.compiler.workspace.repository
This represents workspace based PackageSourceEntry.
A B C D E F G I K L N O P R S T U V W 
Skip navigation links

Copyright © 2018 WSO2. All rights reserved.