Interface SModel.Problem

  • Enclosing interface:
    SModel

    public static interface SModel.Problem
    Represents a problem with the persistence.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  SModel.Problem.Kind  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getColumn()  
      SModel.Problem.Kind getKind()
      Returns whether it was a save or load problem.
      int getLine()  
      String getLocation()
      When line and column are available, returns the location of the stream, where the problem occurred, or just plain text description of the location otherwise.
      SNode getNode()
      The incomplete node (when available) for load problems, or a node which caused troubles during save operation.
      String getText()  
      boolean isError()
      Errors usually cause model to be partially loaded, so it cannot be saved back to the storage later.
    • Method Detail

      • getKind

        SModel.Problem.Kind getKind()
        Returns whether it was a save or load problem. Save problems can arise when an AST content doesn't fit into the persistence format.
      • getLocation

        String getLocation()
        When line and column are available, returns the location of the stream, where the problem occurred, or just plain text description of the location otherwise.
      • getColumn

        int getColumn()
      • getLine

        int getLine()
      • isError

        boolean isError()
        Errors usually cause model to be partially loaded, so it cannot be saved back to the storage later.
      • getNode

        SNode getNode()
        The incomplete node (when available) for load problems, or a node which caused troubles during save operation.