org.mulesoft.als.actions.codeactions.plugins.conversions
JsonSchemaToRamlType
Companion object JsonSchemaToRamlType
class JsonSchemaToRamlType extends CodeActionResponsePlugin with AmfObjectResolver with ExtractSameFileDeclaration
- Alphabetic
- By Inheritance
- JsonSchemaToRamlType
- ExtractSameFileDeclaration
- AmfObjectResolver
- ShapeExtractor
- BaseElementDeclarableExtractors
- DeclarationCreator
- TreeKnowledge
- CodeActionResponsePlugin
- CodeActionPlugin
- TelemeteredTask
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new JsonSchemaToRamlType(params: CodeActionRequestParams)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
afterInfoNode(baseUnit: BaseUnit, isJson: Boolean): Option[Position]
- Definition Classes
- DeclarationCreator
-
val
afterInfoRange: PositionRange
- Attributes
- protected
- Definition Classes
- BaseElementDeclarableExtractors
-
val
alsConfigurationState: ALSConfigurationState
- Attributes
- protected
- Definition Classes
- JsonSchemaToRamlType → AmfObjectResolver
-
lazy val
amfObject: Option[AmfObject]
- Attributes
- protected
- Definition Classes
- BaseElementDeclarableExtractors
-
def
appliesToDocument(): Boolean
- Attributes
- protected
- Definition Classes
- ExtractSameFileDeclaration
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
beginType(params: CodeActionRequestParams): MessageTypes
- Attributes
- protected
- Definition Classes
- JsonSchemaToRamlType → ExtractSameFileDeclaration → TelemeteredTask
- def buildEdit(editUri: String, editTextEdit: TextEdit): Seq[AbstractWorkspaceEdit]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
def
code(params: CodeActionRequestParams): String
- Attributes
- protected
- Definition Classes
- JsonSchemaToRamlType → ExtractSameFileDeclaration → TelemeteredTask
-
def
containsPosition(obj: AmfObject, position: Option[Position]): Boolean
- Definition Classes
- ShapeExtractor
-
def
declarationName(amfObject: AmfObject, dialect: Dialect): Option[String]
- Definition Classes
- DeclarationCreator
-
def
declarationPath(fdp: AmfObject, dialect: Dialect): Seq[String]
- Definition Classes
- DeclarationCreator
-
def
declarationPathForDialect(dialect: Dialect): Option[String]
- Definition Classes
- DeclarationCreator
-
lazy val
declaredElementTextEdit: Option[TextEdit]
- Attributes
- protected
- Definition Classes
- ExtractSameFileDeclaration
-
def
endType(params: CodeActionRequestParams): MessageTypes
- Attributes
- protected
- Definition Classes
- JsonSchemaToRamlType → ExtractSameFileDeclaration → TelemeteredTask
-
lazy val
entryAst: Option[YPart]
The original node with lexical info for the declared node
The original node with lexical info for the declared node
- Attributes
- protected
- Definition Classes
- BaseElementDeclarableExtractors
-
lazy val
entryIndentation: Int
The indentation for the existing node, as we already ensured it is a key, the first position gives de current indentation
The indentation for the existing node, as we already ensured it is a key, the first position gives de current indentation
- Attributes
- protected
- Definition Classes
- BaseElementDeclarableExtractors
-
lazy val
entryRange: Option[Range]
The original range info for the declared node
The original range info for the declared node
- Attributes
- protected
- Definition Classes
- BaseElementDeclarableExtractors
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
extractAmfObject(maybeTree: Option[ObjectInTree], dialect: Dialect): Option[AmfObject]
Selected object if there is a clean match in the range and it is a declarable, or the parents range
Selected object if there is a clean match in the range and it is a declarable, or the parents range
- Attributes
- protected
- Definition Classes
- BaseElementDeclarableExtractors
-
def
extractShapeFromAmfObject(obj: Option[AmfObject]): Option[AnyShape]
- Definition Classes
- AmfObjectResolver
-
def
extractable(maybeObject: Option[AmfObject], dialect: Dialect): Option[AmfObject]
- Attributes
- protected
- Definition Classes
- BaseElementDeclarableExtractors
-
val
findDialectForSemantic: (String) ⇒ Option[(SemanticExtension, Dialect)]
- Attributes
- protected
- Definition Classes
- JsonSchemaToRamlType → BaseElementDeclarableExtractors
-
def
findExistingKeyPart(bu: BaseUnit, uri: String, keyPath: Seq[String]): Seq[YMapEntry]
- Definition Classes
- DeclarationCreator
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
getExistingParts(maybePart: Option[ASTElement], keys: Seq[String]): Seq[YMapEntry]
- Definition Classes
- DeclarationCreator
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
lazy val
homogeneousVendor: Boolean
- Attributes
- protected
- Definition Classes
- ExtractSameFileDeclaration
- def inplaceRamlTypeTextEdit(shape: AnyShape, range: Range): Future[(String, TextEdit)]
-
val
isApplicable: Boolean
- Definition Classes
- JsonSchemaToRamlType → CodeActionPlugin
-
def
isInlinedJsonSchema(shape: Shape): Boolean
- Definition Classes
- ShapeExtractor
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isJsonSchemaShape(obj: AmfObject): Boolean
- Definition Classes
- ShapeExtractor
-
val
jsonOptions: JsonRenderOptions
- Attributes
- protected
- Definition Classes
- BaseElementDeclarableExtractors
-
lazy val
jsonRefEntry: YNode
Fallback entry, should not be necessary as the link should be rendered
Fallback entry, should not be necessary as the link should be rendered
- Attributes
- protected
- Definition Classes
- BaseElementDeclarableExtractors
-
val
kindTitle: CodeActionKindTitle
- Attributes
- protected
- Definition Classes
- JsonSchemaToRamlType → ExtractSameFileDeclaration
-
lazy val
linkEntry: Future[Option[TextEdit]]
The entry which holds the reference for the new declaration (
{"$ref": "declaration/$1"})The entry which holds the reference for the new declaration (
{"$ref": "declaration/$1"})- Definition Classes
- JsonSchemaToRamlType → BaseElementDeclarableExtractors
-
lazy val
maybeAnyShape: Option[AnyShape]
- Definition Classes
- JsonSchemaToRamlType → AmfObjectResolver
-
val
maybeTree: Option[ObjectInTree]
- Attributes
- protected
- Definition Classes
- TreeKnowledge
-
def
msg(params: CodeActionRequestParams): String
- Attributes
- protected
- Definition Classes
- JsonSchemaToRamlType → ExtractSameFileDeclaration → TelemeteredTask
-
final
def
nameNotInList(baseName: String, existing: Set[String], c: Option[Int]): String
- Definition Classes
- DeclarationCreator
- Annotations
- @tailrec()
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newName: String
Placeholder for the new name (key and reference)
Placeholder for the new name (key and reference)
- Attributes
- protected
- Definition Classes
- BaseElementDeclarableExtractors
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
val
params: CodeActionRequestParams
- Attributes
- protected
- Definition Classes
- JsonSchemaToRamlType → TreeKnowledge
-
lazy val
position: Option[Position]
Based on the chosen position from the range
Based on the chosen position from the range
- Attributes
- protected
- Definition Classes
- TreeKnowledge
-
def
positionIsExtracted: Boolean
- Attributes
- protected
- Definition Classes
- BaseElementDeclarableExtractors
-
def
rangeFromEntryBottom(maybeEntry: Option[YMapEntry]): Option[Range]
- Attributes
- protected
- Definition Classes
- ExtractSameFileDeclaration
-
def
renderDeclaredEntry(amfObject: Option[AmfObject], name: String): Option[(String, Option[YMapEntry])]
- Attributes
- protected
- Definition Classes
- ExtractSameFileDeclaration
-
lazy val
renderLink: Future[Option[YNode]]
Render of the link generated by the new object
Render of the link generated by the new object
- Attributes
- protected
- Definition Classes
- ExtractSameFileDeclaration → BaseElementDeclarableExtractors
-
def
resolveShape(anyShape: AnyShape): Option[AnyShape]
- Attributes
- protected
- Definition Classes
- AmfObjectResolver
-
lazy val
resolvedAmfObject: Option[AmfObject]
- Attributes
- protected
- Definition Classes
- AmfObjectResolver
-
final
def
run(params: CodeActionRequestParams): Future[Seq[AbstractCodeAction]]
- Definition Classes
- TelemeteredTask
-
lazy val
sourceName: String
- Attributes
- protected
- Definition Classes
- BaseElementDeclarableExtractors
-
lazy val
spec: Spec
- Attributes
- protected
- Definition Classes
- BaseElementDeclarableExtractors
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
task(params: CodeActionRequestParams): Future[Seq[AbstractCodeAction]]
- Attributes
- protected
- Definition Classes
- JsonSchemaToRamlType → ExtractSameFileDeclaration → TelemeteredTask
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def tryExtractFromTree(): Option[AnyShape]
-
def
uri(params: CodeActionRequestParams): String
- Attributes
- protected
- Definition Classes
- JsonSchemaToRamlType → ExtractSameFileDeclaration → TelemeteredTask
-
def
uuid(params: CodeActionRequestParams): String
- Attributes
- protected
- Definition Classes
- TelemeteredTask
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
lazy val
yPartBranch: Option[YPartBranch]
Information about the AST for the chosen position
Information about the AST for the chosen position
- Attributes
- protected
- Definition Classes
- TreeKnowledge
-
val
yamlOptions: YamlRenderOptions
- Attributes
- protected
- Definition Classes
- BaseElementDeclarableExtractors
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated