Class YamlMappingRule

  • All Implemented Interfaces:
    org.eclipse.jface.text.rules.IPredicateRule, org.eclipse.jface.text.rules.IRule
    Direct Known Subclasses:
    YamlProcessingInstructionRule

    public class YamlMappingRule
    extends Object
    implements org.eclipse.jface.text.rules.IPredicateRule
    A special rule to scan yaml variables.
    Author:
    Albert Tregnaghi
    • Constructor Detail

      • YamlMappingRule

        public YamlMappingRule​(org.eclipse.jface.text.rules.IToken token)
    • Method Detail

      • getSuccessToken

        public org.eclipse.jface.text.rules.IToken getSuccessToken()
        Specified by:
        getSuccessToken in interface org.eclipse.jface.text.rules.IPredicateRule
      • evaluate

        public org.eclipse.jface.text.rules.IToken evaluate​(org.eclipse.jface.text.rules.ICharacterScanner scanner)
        Specified by:
        evaluate in interface org.eclipse.jface.text.rules.IRule
      • evaluate

        public org.eclipse.jface.text.rules.IToken evaluate​(org.eclipse.jface.text.rules.ICharacterScanner scanner,
                                                            boolean resume)
        Specified by:
        evaluate in interface org.eclipse.jface.text.rules.IPredicateRule
      • isNewLine

        protected boolean isNewLine​(org.eclipse.jface.text.rules.ICharacterScanner scanner,
                                    char cbefore)
      • isWordStart

        protected boolean isWordStart​(char c)