Package org.eclipse.lsp4j
Class InlineValueVariableLookup
- java.lang.Object
-
- org.eclipse.lsp4j.InlineValueVariableLookup
-
public class InlineValueVariableLookup extends java.lang.ObjectProvide inline value through a variable lookup.If only a range is specified, the variable name will be extracted from the underlying document.
An optional variable name can be used to override the extracted name.
Since 3.17.0
-
-
Constructor Summary
Constructors Constructor Description InlineValueVariableLookup()InlineValueVariableLookup(Range range, boolean caseSensitiveLookup)InlineValueVariableLookup(Range range, boolean caseSensitiveLookup, java.lang.String variableName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)RangegetRange()The document range for which the inline value applies.java.lang.StringgetVariableName()If specified the name of the variable to look up.inthashCode()booleanisCaseSensitiveLookup()How to perform the lookup.voidsetCaseSensitiveLookup(boolean caseSensitiveLookup)How to perform the lookup.voidsetRange(Range range)The document range for which the inline value applies.voidsetVariableName(java.lang.String variableName)If specified the name of the variable to look up.java.lang.StringtoString()
-
-
-
Constructor Detail
-
InlineValueVariableLookup
public InlineValueVariableLookup()
-
InlineValueVariableLookup
public InlineValueVariableLookup(Range range, boolean caseSensitiveLookup)
-
InlineValueVariableLookup
public InlineValueVariableLookup(Range range, boolean caseSensitiveLookup, java.lang.String variableName)
-
-
Method Detail
-
getRange
public Range getRange()
The document range for which the inline value applies. The range is used to extract the variable name 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 variable name from the underlying document.
-
getVariableName
public java.lang.String getVariableName()
If specified the name of the variable to look up.
-
setVariableName
public void setVariableName(java.lang.String variableName)
If specified the name of the variable to look up.
-
isCaseSensitiveLookup
public boolean isCaseSensitiveLookup()
How to perform the lookup.
-
setCaseSensitiveLookup
public void setCaseSensitiveLookup(boolean caseSensitiveLookup)
How to perform the lookup.
-
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
-
-