Package hydra.ast
Class IndentStyle.AllLines
- java.lang.Object
-
- hydra.ast.IndentStyle
-
- hydra.ast.IndentStyle.AllLines
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<IndentStyle>
- Enclosing class:
- IndentStyle
public static final class IndentStyle.AllLines extends IndentStyle implements java.io.Serializable
Indent all lines with the given string- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hydra.ast.IndentStyle
IndentStyle.AllLines, IndentStyle.PartialVisitor<R>, IndentStyle.SubsequentLines, IndentStyle.Visitor<R>
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringvalue-
Fields inherited from class hydra.ast.IndentStyle
ALL_LINES, SUBSEQUENT_LINES, TYPE_
-
-
Constructor Summary
Constructors Constructor Description AllLines(java.lang.String value)Constructs an immutableIndentStyle.AllLines.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(IndentStyle.Visitor<R> visitor)Dispatch tovisitor.intcompareTo(IndentStyle other)booleanequals(java.lang.Object other)inthashCode()inthydraOrdinal()java.lang.StringtoString()
-
-
-
Constructor Detail
-
AllLines
public AllLines(java.lang.String value)
Constructs an immutableIndentStyle.AllLines.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(IndentStyle other)
- Specified by:
compareToin interfacejava.lang.Comparable<IndentStyle>
-
hydraOrdinal
public int hydraOrdinal()
- Specified by:
hydraOrdinalin classIndentStyle
-
accept
public <R> R accept(IndentStyle.Visitor<R> visitor)
Dispatch tovisitor.- Specified by:
acceptin classIndentStyle
-
-