Package org.eclipse.lsp4j
Class InlineValueEvaluatableExpression
- java.lang.Object
-
- org.eclipse.lsp4j.InlineValueEvaluatableExpression
-
public class InlineValueEvaluatableExpression extends java.lang.ObjectProvide an inline value through an expression evaluation.If only a range is specified, the expression will be extracted from the underlying document.
An optional expression can be used to override the extracted expression.
Since 3.17.0
-
-
Constructor Summary
Constructors Constructor Description InlineValueEvaluatableExpression()InlineValueEvaluatableExpression(Range range)InlineValueEvaluatableExpression(Range range, java.lang.String expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetExpression()If specified the name of the variable to look up.RangegetRange()The document range for which the inline value applies.inthashCode()voidsetExpression(java.lang.String expression)If specified the name of the variable to look up.voidsetRange(Range range)The document range for which the inline value applies.java.lang.StringtoString()
-
-
-
Method Detail
-
getRange
public Range getRange()
The document range for which the inline value applies. The range is used to extract the evaluatable expression from the underlying document.
-
setRange
public void setRange(Range range)
The document range for which the inline value applies. The range is used to extract the evaluatable expression from the underlying document.
-
getExpression
public java.lang.String getExpression()
If specified the name of the variable to look up.
-
setExpression
public void setExpression(java.lang.String expression)
If specified the name of the variable to look up.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-