Fork me on GitHub

Syntax.Builder

In package com.mitchellbosecke.pebble.lexer

public static class Syntax.Builder extends Object

Helper class to create new instances of {@link Syntax}.

Constructors

public Builder()
Parameters:
  • No parameters

Methods

public String getCommentOpenDelimiter()
Parameters:
  • No parameters
public Builder setCommentOpenDelimiter(String commentOpenDelimiter)
Parameters:
  • String commentOpenDelimiter

    the commentOpenDelimiter to set

public String getCommentCloseDelimiter()
Parameters:
  • No parameters
public Builder setCommentCloseDelimiter(String commentCloseDelimiter)
Parameters:
  • String commentCloseDelimiter

    the commentCloseDelimiter to set

public String getExecuteOpenDelimiter()
Parameters:
  • No parameters
public Builder setExecuteOpenDelimiter(String executeOpenDelimiter)
Parameters:
  • String executeOpenDelimiter

    the executeOpenDelimiter to set

public String getExecuteCloseDelimiter()
Parameters:
  • No parameters
public Builder setExecuteCloseDelimiter(String executeCloseDelimiter)
Parameters:
  • String executeCloseDelimiter

    the executeCloseDelimiter to set

public String getPrintOpenDelimiter()
Parameters:
  • No parameters
public Builder setPrintOpenDelimiter(String printOpenDelimiter)
Parameters:
  • String printOpenDelimiter

    the printOpenDelimiter to set

public String getPrintCloseDelimiter()
Parameters:
  • No parameters
public Builder setPrintCloseDelimiter(String printCloseDelimiter)
Parameters:
  • String printCloseDelimiter

    the printCloseDelimiter to set

public String getWhitespaceTrim()
Parameters:
  • No parameters
public Builder setWhitespaceTrim(String whitespaceTrim)
Parameters:
  • String whitespaceTrim
public String getInterpolationOpenDelimiter()
Parameters:
  • No parameters
public void setInterpolationOpenDelimiter(String delimiterInterpolationOpen)
Parameters:
  • String delimiterInterpolationOpen
public String getInterpolationCloseDelimiter()
Parameters:
  • No parameters
public void setInterpolationCloseDelimiter(String delimiterInterpolationClose)
Parameters:
  • String delimiterInterpolationClose
public boolean isEnableNewLineTrimming()
Parameters:
  • No parameters
public Builder setEnableNewLineTrimming(boolean enableNewLineTrimming)
Parameters:
  • boolean enableNewLineTrimming
public Syntax build()
Parameters:
  • No parameters