All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.squarespace.template.expr.CallToken Maven / Gradle / Ivy

There is a newer version: 2.10.0
Show newest version
package com.squarespace.template.expr;

import java.util.Objects;

/**
 * Token representing a function call.
 */
public class CallToken extends Token {

  public final String name;

  public CallToken(String name) {
    super(ExprTokenType.CALL);
    this.name = name;
  }

  @Override
  public boolean equals(Object obj) {
    if (obj instanceof CallToken) {
      return Objects.equals(name, ((CallToken)obj).name);
    }
    return false;
  }

  @Override
  public String toString() {
    return "CallToken[" + name + "]";
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy