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 classIgnoredChar.IgnoredCharKind
-
Field Summary
Fields Modifier and Type Field Description private IgnoredChar.IgnoredCharKindkindprivate SourceLocationsourceLocationprivate java.lang.Stringvalue
-
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 booleanequals(java.lang.Object o)IgnoredChar.IgnoredCharKindgetKind()SourceLocationgetSourceLocation()java.lang.StringgetValue()inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
value
private final java.lang.String value
-
kind
private final IgnoredChar.IgnoredCharKind kind
-
sourceLocation
private final SourceLocation sourceLocation
-
-
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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-