Class Indent

java.lang.Object
com.palantir.javaformat.Indent
Direct Known Subclasses:
Indent.Const, Indent.If

@Immutable public abstract class Indent extends Object
An indent for a Level or Break. The indent is either a constant int, or a conditional expression whose value depends on whether or not a Break has been broken.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A constant function, returning a constant indent.
    static final class 
    A conditional function, whose value depends on whether a break was taken.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract int
    eval(State state)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Indent

      public Indent()
  • Method Details

    • eval

      public abstract int eval(State state)