Package 

Class ParserOptions

  • All Implemented Interfaces:

    
    public final class ParserOptions
    
                        

    Configure options for parsing GraphQL queries and schema definition language documents. Settings here override the defaults set by GraphQL Java.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ParserOptions()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Integer getMaxTokens() Modify the maximum number of tokens read to prevent processing extremely large queries
      final Unit setMaxTokens(@Parameter() Integer maxTokens) Modify the maximum number of tokens read to prevent processing extremely large queries
      final Integer getMaxWhitespaceTokens() Modify the maximum number of whitespace tokens read to prevent processing extremely large queries
      final Unit setMaxWhitespaceTokens(@Parameter() Integer maxWhitespaceTokens) Modify the maximum number of whitespace tokens read to prevent processing extremely large queries
      final Boolean getCaptureIgnoredChars() Memory usage is significantly reduced by not capturing ignored characters, especially in SDL parsing.
      final Unit setCaptureIgnoredChars(@Parameter() Boolean captureIgnoredChars) Memory usage is significantly reduced by not capturing ignored characters, especially in SDL parsing.
      final Boolean getCaptureLineComments() Single-line comments do not have any semantic meaning in GraphQL source documents and can be ignored
      final Unit setCaptureLineComments(@Parameter() Boolean captureLineComments) Single-line comments do not have any semantic meaning in GraphQL source documents and can be ignored
      final Boolean getCaptureSourceLocation() Memory usage is reduced by not setting SourceLocations on AST nodes, especially in SDL parsing.
      final Unit setCaptureSourceLocation(@Parameter() Boolean captureSourceLocation) Memory usage is reduced by not setting SourceLocations on AST nodes, especially in SDL parsing.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ParserOptions

        ParserOptions()
    • Method Detail

      • getMaxTokens

         final Integer getMaxTokens()

        Modify the maximum number of tokens read to prevent processing extremely large queries

      • setMaxTokens

         final Unit setMaxTokens(@Parameter() Integer maxTokens)

        Modify the maximum number of tokens read to prevent processing extremely large queries

      • getMaxWhitespaceTokens

         final Integer getMaxWhitespaceTokens()

        Modify the maximum number of whitespace tokens read to prevent processing extremely large queries

      • setMaxWhitespaceTokens

         final Unit setMaxWhitespaceTokens(@Parameter() Integer maxWhitespaceTokens)

        Modify the maximum number of whitespace tokens read to prevent processing extremely large queries

      • getCaptureIgnoredChars

         final Boolean getCaptureIgnoredChars()

        Memory usage is significantly reduced by not capturing ignored characters, especially in SDL parsing.

      • setCaptureIgnoredChars

         final Unit setCaptureIgnoredChars(@Parameter() Boolean captureIgnoredChars)

        Memory usage is significantly reduced by not capturing ignored characters, especially in SDL parsing.

      • getCaptureLineComments

         final Boolean getCaptureLineComments()

        Single-line comments do not have any semantic meaning in GraphQL source documents and can be ignored

      • setCaptureLineComments

         final Unit setCaptureLineComments(@Parameter() Boolean captureLineComments)

        Single-line comments do not have any semantic meaning in GraphQL source documents and can be ignored

      • getCaptureSourceLocation

         final Boolean getCaptureSourceLocation()

        Memory usage is reduced by not setting SourceLocations on AST nodes, especially in SDL parsing.

      • setCaptureSourceLocation

         final Unit setCaptureSourceLocation(@Parameter() Boolean captureSourceLocation)

        Memory usage is reduced by not setting SourceLocations on AST nodes, especially in SDL parsing.