test_class.declarator: document
test_class.modifier: private
test_class.original_string: private WorkspaceDocument document;
test_class.type: WorkspaceDocument
test_class.var_name: document
test_class.declarator: filePath1
test_class.modifier: private
test_class.original_string: private Path filePath1;
test_class.type: Path
test_class.var_name: filePath1
test_class.declarator: filePath2
test_class.modifier: private
test_class.original_string: private Path filePath2;
test_class.type: Path
test_class.var_name: filePath2
test_class.declarator: INITIAL_CONTENT = "initial content"
test_class.modifier: private static final
test_class.original_string: private static final String INITIAL_CONTENT = "initial content";
test_class.type: String
test_class.var_name: INITIAL_CONTENT
test_class.file: language-server/modules/langserver-compiler/src/test/java/org/ballerinalang/langserver/compiler/workspace/WorkspaceDocumentTest.java
test_class.identifier: WorkspaceDocumentTest
test_case.body: @Test
      public void testSetContent() {
          String newContent = "new content";
          document.setContent(newContent);
          Assert.assertEquals(newContent, document.getContent());
          document.setContent(INITIAL_CONTENT);
      }
test_case.class_method_signature: WorkspaceDocumentTest.testSetContent()
test_case.full_signature: @Test public void testSetContent()
test_case.identifier: testSetContent
test_case.invocations: setContent assertEquals getContent setContent
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSetContent()
focal_class.declarator: codeLenses
focal_class.modifier: private
focal_class.original_string: private List<CodeLens> codeLenses;
focal_class.type: List<CodeLens>
focal_class.var_name: codeLenses
focal_class.declarator: path
focal_class.modifier: private
focal_class.original_string: private Path path;
focal_class.type: Path
focal_class.var_name: path
focal_class.declarator: content
focal_class.modifier: private
focal_class.original_string: private String content;
focal_class.type: String
focal_class.var_name: content
focal_class.declarator: lsDocument
focal_class.modifier: private
focal_class.original_string: private LSDocumentIdentifier lsDocument;
focal_class.type: LSDocumentIdentifier
focal_class.var_name: lsDocument
focal_class.declarator: tree
focal_class.modifier: private
focal_class.original_string: private SyntaxTree tree;
focal_class.type: SyntaxTree
focal_class.var_name: tree
focal_class.file: language-server/modules/langserver-compiler/src/main/java/org/ballerinalang/langserver/compiler/workspace/WorkspaceDocument.java
focal_class.identifier: WorkspaceDocument
focal_class.class_method_signature: WorkspaceDocument.WorkspaceDocument(Path path, String content, boolean isTempFile)
focal_class.full_signature: public  WorkspaceDocument(Path path, String content, boolean isTempFile)
focal_class.identifier: WorkspaceDocument
focal_class.modifiers: public
focal_class.parameters: (Path path, String content, boolean isTempFile)
focal_class.signature:  WorkspaceDocument(Path path, String content, boolean isTempFile)
focal_class.class_method_signature: WorkspaceDocument.WorkspaceDocument(Path path, String content)
focal_class.full_signature: public  WorkspaceDocument(Path path, String content)
focal_class.identifier: WorkspaceDocument
focal_class.modifiers: public
focal_class.parameters: (Path path, String content)
focal_class.signature:  WorkspaceDocument(Path path, String content)
focal_class.class_method_signature: WorkspaceDocument.getCodeLenses()
focal_class.full_signature: public List<CodeLens> getCodeLenses()
focal_class.identifier: getCodeLenses
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<CodeLens>
focal_class.signature: List<CodeLens> getCodeLenses()
focal_class.class_method_signature: WorkspaceDocument.setCodeLenses(List<CodeLens> codeLenses)
focal_class.full_signature: public void setCodeLenses(List<CodeLens> codeLenses)
focal_class.identifier: setCodeLenses
focal_class.modifiers: public
focal_class.parameters: (List<CodeLens> codeLenses)
focal_class.return: void
focal_class.signature: void setCodeLenses(List<CodeLens> codeLenses)
focal_class.class_method_signature: WorkspaceDocument.getPath()
focal_class.full_signature: public Path getPath()
focal_class.identifier: getPath
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Path
focal_class.signature: Path getPath()
focal_class.class_method_signature: WorkspaceDocument.setPath(Path path)
focal_class.full_signature: public void setPath(Path path)
focal_class.identifier: setPath
focal_class.modifiers: public
focal_class.parameters: (Path path)
focal_class.return: void
focal_class.signature: void setPath(Path path)
focal_class.class_method_signature: WorkspaceDocument.getContent()
focal_class.full_signature: public String getContent()
focal_class.identifier: getContent
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getContent()
focal_class.class_method_signature: WorkspaceDocument.setContent(String content)
focal_class.full_signature: public void setContent(String content)
focal_class.identifier: setContent
focal_class.modifiers: public
focal_class.parameters: (String content)
focal_class.return: void
focal_class.signature: void setContent(String content)
focal_class.class_method_signature: WorkspaceDocument.setIncrementContent(String content)
focal_class.full_signature: public void setIncrementContent(String content)
focal_class.identifier: setIncrementContent
focal_class.modifiers: public
focal_class.parameters: (String content)
focal_class.return: void
focal_class.signature: void setIncrementContent(String content)
focal_class.class_method_signature: WorkspaceDocument.getTree()
focal_class.full_signature: public SyntaxTree getTree()
focal_class.identifier: getTree
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: SyntaxTree
focal_class.signature: SyntaxTree getTree()
focal_class.class_method_signature: WorkspaceDocument.setTree(SyntaxTree tree)
focal_class.full_signature: public void setTree(SyntaxTree tree)
focal_class.identifier: setTree
focal_class.modifiers: public
focal_class.parameters: (SyntaxTree tree)
focal_class.return: void
focal_class.signature: void setTree(SyntaxTree tree)
focal_class.class_method_signature: WorkspaceDocument.getLSDocument()
focal_class.full_signature: public LSDocumentIdentifier getLSDocument()
focal_class.identifier: getLSDocument
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: LSDocumentIdentifier
focal_class.signature: LSDocumentIdentifier getLSDocument()
focal_class.class_method_signature: WorkspaceDocument.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: public void setContent(String content) {
          this.content = content;
          // TODO: Fix this, each time creates a new tree
          setTree(SyntaxTree.from(TextDocuments.from(this.content)));
      }
focal_method.class_method_signature: WorkspaceDocument.setContent(String content)
focal_method.full_signature: public void setContent(String content)
focal_method.identifier: setContent
focal_method.invocations: setTree from from
focal_method.modifiers: public
focal_method.parameters: (String content)
focal_method.return: void
focal_method.signature: void setContent(String content)