Package graphql.language
Class IgnoredChar
- java.lang.Object
-
- graphql.language.IgnoredChar
-
- All Implemented Interfaces:
java.io.Serializable
@PublicApi public class IgnoredChar extends java.lang.Object implements java.io.Serializable
Graphql syntax has a series of characters, such as spaces, new lines and commas that are not considered relevant to the syntax. However they can be captured and associated with the AST elements they belong to. This costs more memory but for certain use cases (like editors) this maybe be useful- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IgnoredChar.IgnoredCharKind
-
Constructor Summary
Constructors Constructor Description IgnoredChar(java.lang.String value, IgnoredChar.IgnoredCharKind kind, SourceLocation sourceLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
IgnoredChar.IgnoredCharKind
getKind()
SourceLocation
getSourceLocation()
java.lang.String
getValue()
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
IgnoredChar
public IgnoredChar(java.lang.String value, IgnoredChar.IgnoredCharKind kind, SourceLocation sourceLocation)
-
-
Method Detail
-
getValue
public java.lang.String getValue()
-
getKind
public IgnoredChar.IgnoredCharKind getKind()
-
getSourceLocation
public SourceLocation getSourceLocation()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-