Fork me on GitHub

Syntax

In package com.mitchellbosecke.pebble.lexer

public final class Syntax extends Object

The syntax describes the different syntax parts of the Pebble language.

This object is immutable after the creation. This is to make sure the syntax cannot be changed during the execution.

Constructors

public Syntax(String delimiterCommentOpen, String delimiterCommentClose, String delimiterExecuteOpen, String delimiterExecuteClose, String delimiterPrintOpen, String delimiterPrintClose, String delimiterInterpolationOpen, String delimiterInterpolationClose, String whitespaceTrim, boolean enableNewLineTrimming)
Parameters:
  • String delimiterCommentOpen
  • String delimiterCommentClose
  • String delimiterExecuteOpen
  • String delimiterExecuteClose
  • String delimiterPrintOpen
  • String delimiterPrintClose
  • String delimiterInterpolationOpen
  • String delimiterInterpolationClose
  • String whitespaceTrim
  • boolean enableNewLineTrimming

Methods

public String getCommentOpenDelimiter()
Parameters:
  • No parameters
public String getCommentCloseDelimiter()
Parameters:
  • No parameters
public String getExecuteOpenDelimiter()
Parameters:
  • No parameters
public String getExecuteCloseDelimiter()
Parameters:
  • No parameters
public String getPrintOpenDelimiter()
Parameters:
  • No parameters
public String getPrintCloseDelimiter()
Parameters:
  • No parameters
public String getInterpolationOpenDelimiter()
Parameters:
  • No parameters
public String getInterpolationCloseDelimiter()
Parameters:
  • No parameters
public String getWhitespaceTrim()
Parameters:
  • No parameters