Class Scope
java.lang.Object
com.oracle.truffle.tools.dap.types.JSONBase
com.oracle.truffle.tools.dap.types.Scope
A Scope is a named container for variables. Optionally a scope can map to a source or a range
within a source.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ScopebooleanOptional start column of the range covered by this scope.Optional end column of the range covered by this scope.Optional end line of the range covered by this scope.The number of indexed variables in this scope.getLine()Optional start line of the range covered by this scope.getName()Name of the scope such as 'Arguments', 'Locals', or 'Registers'.The number of named variables in this scope.An optional hint for how to present this scope in the UI.Optional source for this scope.intThe variables of this scope can be retrieved by passing the value of variablesReference to the VariablesRequest.inthashCode()booleanIf true, the number of variables in this scope is large or expensive to retrieve.setEndColumn(Integer endColumn) setEndLine(Integer endLine) setExpensive(boolean expensive) setIndexedVariables(Integer indexedVariables) setNamedVariables(Integer namedVariables) setPresentationHint(String presentationHint) setVariablesReference(int variablesReference)
-
Method Details
-
getName
Name of the scope such as 'Arguments', 'Locals', or 'Registers'. This string is shown in the UI as is and can be translated. -
setName
-
getPresentationHint
An optional hint for how to present this scope in the UI. If this attribute is missing, the scope is shown with a generic UI. Values: 'arguments': Scope contains method arguments. 'locals': Scope contains local variables. 'registers': Scope contains registers. Only a single 'registers' scope should be returned from a 'scopes' request. etc. -
setPresentationHint
-
getVariablesReference
public int getVariablesReference()The variables of this scope can be retrieved by passing the value of variablesReference to the VariablesRequest. -
setVariablesReference
-
getNamedVariables
The number of named variables in this scope. The client can use this optional information to present the variables in a paged UI and fetch them in chunks. -
setNamedVariables
-
getIndexedVariables
The number of indexed variables in this scope. The client can use this optional information to present the variables in a paged UI and fetch them in chunks. -
setIndexedVariables
-
isExpensive
public boolean isExpensive()If true, the number of variables in this scope is large or expensive to retrieve. -
setExpensive
-
getSource
Optional source for this scope. -
setSource
-
getLine
Optional start line of the range covered by this scope. -
setLine
-
getColumn
Optional start column of the range covered by this scope. -
setColumn
-
getEndLine
Optional end line of the range covered by this scope. -
setEndLine
-
getEndColumn
Optional end column of the range covered by this scope. -
setEndColumn
-
equals
-
hashCode
public int hashCode() -
create
-