Class Declaration


public class Declaration extends AbstractSyntaxTree
A "declaration" associates a "propertyName" with a list of preserved tokens. If the list of preserved tokens is empty, the declaration must be ignored.
Author:
Werner Randelshofer
  • Constructor Details

    • Declaration

      public Declaration(@Nullable SourceLocator sourceLocator, @Nullable String namespace, String propertyName, List<CssToken> terms, int startPos, int endPos, int lineNumber)
  • Method Details

    • getLineNumber

      public int getLineNumber()
    • getNamespace

      public @Nullable String getNamespace()
    • getPropertyName

      public String getPropertyName()
    • getTerms

      public ImmutableList<CssToken> getTerms()
    • getTermsAsString

      public String getTermsAsString()
    • toString

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

      public int getStartPos()
    • getEndPos

      public int getEndPos()