Package hydra.ast
Class Ws
- java.lang.Object
-
- hydra.ast.Ws
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Ws>
- Direct Known Subclasses:
Ws.Break,Ws.BreakAndIndent,Ws.DoubleBreak,Ws.None,Ws.Space
public abstract class Ws extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<Ws>
One of several classes of whitespace- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWs.BreakA line breakstatic classWs.BreakAndIndentA line break followed by indentationstatic classWs.DoubleBreakTwo line breaksstatic classWs.NoneNo whitespacestatic interfaceWs.PartialVisitor<R>Partial visitor overWswith a defaultWs.PartialVisitor.otherwise(hydra.ast.Ws)branch.static classWs.SpaceA single spacestatic interfaceWs.Visitor<R>Visitor overWs.
-
Field Summary
Fields Modifier and Type Field Description static NameBREAKName of thehydra.ast.Ws.breakfield.static NameBREAK_AND_INDENTName of thehydra.ast.Ws.breakAndIndentfield.static NameDOUBLE_BREAKName of thehydra.ast.Ws.doubleBreakfield.static NameNONEName of thehydra.ast.Ws.nonefield.static NameSPACEName of thehydra.ast.Ws.spacefield.static NameTYPE_Name of thehydra.ast.Wstype.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract <R> Raccept(Ws.Visitor<R> visitor)Dispatch tovisitor.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.ast.Wstype.
-
NONE
public static final Name NONE
Name of thehydra.ast.Ws.nonefield.
-
SPACE
public static final Name SPACE
Name of thehydra.ast.Ws.spacefield.
-
BREAK
public static final Name BREAK
Name of thehydra.ast.Ws.breakfield.
-
BREAK_AND_INDENT
public static final Name BREAK_AND_INDENT
Name of thehydra.ast.Ws.breakAndIndentfield.
-
DOUBLE_BREAK
public static final Name DOUBLE_BREAK
Name of thehydra.ast.Ws.doubleBreakfield.
-
-
Method Detail
-
accept
public abstract <R> R accept(Ws.Visitor<R> visitor)
Dispatch tovisitor.
-
-