org.radrails.rails.internal.ui.editors.ruby
Class RubyCodeScanner

java.lang.Object
  extended byorg.eclipse.jface.text.rules.RuleBasedScanner
      extended byorg.radrails.rails.internal.ui.editors.ruby.RubyCodeScanner
All Implemented Interfaces:
EditorPropertyChangeListener, org.eclipse.jface.text.rules.ICharacterScanner, org.eclipse.jface.text.rules.ITokenScanner

public class RubyCodeScanner
extends org.eclipse.jface.text.rules.RuleBasedScanner
implements EditorPropertyChangeListener

Code scanner for Ruby source files. The scanner has rules for the following:

Author:
mkent

Field Summary
 
Fields inherited from class org.eclipse.jface.text.rules.RuleBasedScanner
fColumn, fDefaultReturnToken, fDelimiters, fDocument, fOffset, fRangeEnd, fRules, fTokenOffset, UNDEFINED
 
Fields inherited from interface org.eclipse.jface.text.rules.ICharacterScanner
EOF
 
Method Summary
 void applyPropertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
          Apply the property change as appropriate.
static RubyCodeScanner getInstance()
           
 
Methods inherited from class org.eclipse.jface.text.rules.RuleBasedScanner
getColumn, getLegalLineDelimiters, getTokenLength, getTokenOffset, nextToken, read, setDefaultReturnToken, setRange, setRules, unread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RubyCodeScanner getInstance()
Returns:
the singleton instance of the scanner

applyPropertyChange

public void applyPropertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
Description copied from interface: EditorPropertyChangeListener
Apply the property change as appropriate.

Specified by:
applyPropertyChange in interface EditorPropertyChangeListener
Parameters:
event - the event describing the property change