java.lang.Object
com.github.javaparser.printer.concretesyntaxmodel.CsmToken
All Implemented Interfaces:
CsmElement

public class CsmToken extends Object implements CsmElement
  • Field Details

    • tokenType

      private final int tokenType
    • content

      private String content
  • Constructor Details

    • CsmToken

      public CsmToken(int tokenType)
    • CsmToken

      public CsmToken(int tokenType, String content)
  • Method Details

    • getTokenType

      public int getTokenType()
    • getContent

      public String getContent()
    • prettyPrint

      public void prettyPrint(Node node, SourcePrinter printer)
      Specified by:
      prettyPrint in interface CsmElement
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isWhiteSpace

      public boolean isWhiteSpace()
    • isWhiteSpaceNotEol

      public boolean isWhiteSpaceNotEol()
    • isNewLine

      public boolean isNewLine()
    • isCorrespondingElement

      public boolean isCorrespondingElement(TextElement textElement)
      Specified by:
      isCorrespondingElement in interface CsmElement