Package org.eclipse.lemminx.services
Class CodeActionRequest
- java.lang.Object
-
- org.eclipse.lemminx.services.CodeActionRequest
-
- All Implemented Interfaces:
IBaseCodeActionRequest,ICodeActionRequest,IComponentProvider
public class CodeActionRequest extends Object implements ICodeActionRequest
Code action request implementation.- Author:
- Angelo ZERR
-
-
Constructor Summary
Constructors Constructor Description CodeActionRequest(org.eclipse.lsp4j.Diagnostic diagnostic, org.eclipse.lsp4j.Range range, DOMDocument document, IComponentProvider componentProvider, SharedSettings sharedSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TgetComponent(Class clazz)Returns the component class instance from the given class and null otherwise.org.eclipse.lsp4j.DiagnosticgetDiagnostic()Returns the diagnostic.DOMDocumentgetDocument()Returns the DOM document.LineIndentInfogetLineIndentInfo()org.eclipse.lsp4j.RangegetRange()Returns the code action range.SharedSettingsgetSharedSettings()Returns the shared settings.XMLGeneratorgetXMLGenerator()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.lemminx.services.extensions.codeaction.IBaseCodeActionRequest
getDocument, getSharedSettings
-
Methods inherited from interface org.eclipse.lemminx.services.extensions.codeaction.ICodeActionRequest
canSupportResolve
-
Methods inherited from interface org.eclipse.lemminx.services.extensions.IComponentProvider
getComponent
-
-
-
-
Constructor Detail
-
CodeActionRequest
public CodeActionRequest(org.eclipse.lsp4j.Diagnostic diagnostic, org.eclipse.lsp4j.Range range, DOMDocument document, IComponentProvider componentProvider, SharedSettings sharedSettings)
-
-
Method Detail
-
getDiagnostic
public org.eclipse.lsp4j.Diagnostic getDiagnostic()
Description copied from interface:ICodeActionRequestReturns the diagnostic.- Specified by:
getDiagnosticin interfaceICodeActionRequest- Returns:
- the diagnostic.
-
getRange
public org.eclipse.lsp4j.Range getRange()
Description copied from interface:ICodeActionRequestReturns the code action range.- Specified by:
getRangein interfaceICodeActionRequest- Returns:
- the code action range.
-
getXMLGenerator
public XMLGenerator getXMLGenerator() throws BadLocationException
- Specified by:
getXMLGeneratorin interfaceICodeActionRequest- Throws:
BadLocationException
-
getLineIndentInfo
public LineIndentInfo getLineIndentInfo() throws BadLocationException
- Throws:
BadLocationException
-
getComponent
public <T> T getComponent(Class clazz)
Description copied from interface:IComponentProviderReturns the component class instance from the given class and null otherwise.- Specified by:
getComponentin interfaceIComponentProvider- Parameters:
clazz- class of the component.- Returns:
- the component class instance from the given class and null otherwise.
-
getDocument
public DOMDocument getDocument()
Description copied from interface:IBaseCodeActionRequestReturns the DOM document.- Specified by:
getDocumentin interfaceIBaseCodeActionRequest- Returns:
- the DOM document
-
getSharedSettings
public SharedSettings getSharedSettings()
Description copied from interface:IBaseCodeActionRequestReturns the shared settings.- Specified by:
getSharedSettingsin interfaceIBaseCodeActionRequest- Returns:
- the shared settings.
-
-