Package com.singularsys.jep.configurableparser.tokens

# Class MultiLineToken

java.lang.Object
com.singularsys.jep.configurableparser.tokens.Token
com.singularsys.jep.configurableparser.tokens.MultiLineToken

All Implemented Interfaces:
  `TokenMatcher`, `Serializable`

public class MultiLineToken extends Token implements TokenMatcher
A token representing a token which spans multiple lines.

See Also:
  - `MultiLineMatcher`
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MultiLineToken(String source, TokenMatcher em, TokenBuilder builder)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `append(String line)`
  `Token`
  `getCompleteToken()`
  A token representing the complete matched input.
  `void`
  `init(Jep j)`
  Initialize the matcher when the Jep instance is known.
  `Token`
  `match(String line)`
  Matches the end of the token.

  ### Methods inherited from class com.singularsys.jep.configurableparser.tokens.Token

  `equals, getColumnNumber, getLength, getLineNumber, getSource, hashCode, isBinary, isComment, isFunction, isIdentifier, isImplicitMulRhs, isNumber, isOperator, isPrefix, isString, isSuffix, isSymbol, isTerminal, isTernary, isWhiteSpace, setPosition, toString`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### MultiLineToken

    public MultiLineToken(String source, TokenMatcher em, TokenBuilder builder)

- ## Method Details

  - ### match

    public Token match(String line) throws ParseException
    Matches the end of the token.
    Specified by:
      `match` in interface `TokenMatcher`
    Parameters:
      `line` - the next line of input
    Returns:
      token representing part of the current line matched, or null if the end of the token is not found.
    Throws:
      `ParseException` - on syntax error

  - ### append

    public void append(String line)

  - ### getCompleteToken

    public Token getCompleteToken() throws ParseException
    A token representing the complete matched input.
    Returns:
      the complete token
    Throws:
      `ParseException`

  - ### init

    public void init(Jep j)
    Description copied from interface: `TokenMatcher`
    Initialize the matcher when the Jep instance is known.
    Specified by:
      `init` in interface `TokenMatcher`
    Parameters:
      `j` - Jep instance