Class GssError
- java.lang.Object
-
- com.google.common.css.compiler.ast.GssError
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<GssError>
public class GssError extends java.lang.Object implements java.lang.Comparable<GssError>, java.io.Serializable
GSS parser error description.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGssError.MessageFormatArgsA String template, together with values for the template holes.
-
Constructor Summary
Constructors Constructor Description GssError(java.lang.String message, SourceCodeLocation location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(GssError o)Compare errors by source name, location and message.booleanequals(java.lang.Object o)java.lang.Stringformat()java.lang.StringgetLine()SourceCodeLocationgetLocation()java.lang.StringgetMessage()inthashCode()GssError.MessageFormatArgsmessageFormat()Returns a MessageFormatArgs representation of the object.
-
-
-
Constructor Detail
-
GssError
public GssError(java.lang.String message, SourceCodeLocation location)
-
-
Method Detail
-
getLocation
public SourceCodeLocation getLocation()
-
getMessage
public java.lang.String getMessage()
-
getLine
public java.lang.String getLine()
-
format
public java.lang.String format()
-
messageFormat
public GssError.MessageFormatArgs messageFormat()
Returns a MessageFormatArgs representation of the object. This is a parbaked precursor to the value given byformat, intended for use in FormattingLoggers and other contexts where it is useful to maintain separation between boilerplate and details.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-