Class Scope


  • public class Scope
    extends java.lang.Object
    Scope description.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Scope.Type  
    • Constructor Summary

      Constructors 
      Constructor Description
      Scope​(Scope.Type type, RemoteObject object, java.util.Optional<java.lang.String> name, java.util.Optional<Location> startLocation, java.util.Optional<Location> endLocation)  
    • Constructor Detail

      • Scope

        public Scope​(Scope.Type type,
                     RemoteObject object,
                     java.util.Optional<java.lang.String> name,
                     java.util.Optional<Location> startLocation,
                     java.util.Optional<Location> endLocation)
    • Method Detail

      • getType

        public Scope.Type getType()
        Scope type.
      • getObject

        public RemoteObject getObject()
        Object representing the scope. For `global` and `with` scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.
      • getName

        public java.util.Optional<java.lang.String> getName()
      • getStartLocation

        public java.util.Optional<Location> getStartLocation()
        Location in the source code where scope starts
      • getEndLocation

        public java.util.Optional<Location> getEndLocation()
        Location in the source code where scope ends