Class Placeholder


  • public class Placeholder
    extends Object
    A placeholder.
    • Constructor Detail

      • Placeholder

        public Placeholder​(String text,
                           int startPosition,
                           int endPosition)
        Create a new instance of Placeholder.
        Parameters:
        text - the placeholder text
        startPosition - position of first character of the placeholder
        endPosition - position of last character of the placeholder
    • Method Detail

      • getName

        public String getName()
        Returns:
        the placeholder name.
      • isUnquoted

        public boolean isUnquoted()
        Returns:
        true if the placeholder is unquoted.
      • getStartPosition

        public int getStartPosition()
        Returns:
        the placeholder start position in the text.
      • getEndPosition

        public int getEndPosition()
        Returns:
        the placeholder end position in the text.