Class EqualityNameRule

  • All Implemented Interfaces:
    org.eclipse.jface.text.rules.IRule

    public class EqualityNameRule
    extends RegexRule
    Rule using a regex rule to highlight an equality. For example, the following lines are valid for this rule:
    • foo=
    • foo=foo
    • foo = foo
    However "=foo" wont be accepted.
    • Constructor Summary

      Constructors 
      Constructor Description
      EqualityNameRule​(org.eclipse.jface.text.rules.IToken pToken)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.jface.text.rules.IToken evaluate​(org.eclipse.jface.text.rules.ICharacterScanner pScanner)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EqualityNameRule

        public EqualityNameRule​(org.eclipse.jface.text.rules.IToken pToken)
        Constructor.
        Parameters:
        pToken - the token to analyze.
    • Method Detail

      • evaluate

        public org.eclipse.jface.text.rules.IToken evaluate​(org.eclipse.jface.text.rules.ICharacterScanner pScanner)
        Specified by:
        evaluate in interface org.eclipse.jface.text.rules.IRule
        Overrides:
        evaluate in class RegexRule