org.radrails.rails.internal.ui.editors.rhtml
Class HTMLTagScanner
java.lang.Object
org.eclipse.jface.text.rules.RuleBasedScanner
org.radrails.rails.internal.ui.editors.rhtml.HTMLTagScanner
- All Implemented Interfaces:
- org.eclipse.jface.text.rules.ICharacterScanner, IEditorPropertyChangeListener, org.eclipse.jface.text.rules.ITokenScanner
- public class HTMLTagScanner
- extends org.eclipse.jface.text.rules.RuleBasedScanner
- implements IEditorPropertyChangeListener
Rule based scanner for HTML tags. Scans the contents of an HTML tag and
identifies attribute names and values.
- Author:
- kyle
| Fields inherited from interface org.eclipse.jface.text.rules.ICharacterScanner |
EOF |
| Methods inherited from class org.eclipse.jface.text.rules.RuleBasedScanner |
getColumn, getLegalLineDelimiters, getTokenLength, getTokenOffset, read, setDefaultReturnToken, setRules, unread |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static HTMLTagScanner getInstance()
- Returns:
- the singleton instance of the scanner
setRange
public void setRange(org.eclipse.jface.text.IDocument document,
int offset,
int length)
- Specified by:
setRange in interface org.eclipse.jface.text.rules.ITokenScanner
isEOF
public boolean isEOF()
- Returns:
- true if the scanner offset is equal to the range end, false
otherwise
nextToken
public org.eclipse.jface.text.rules.IToken nextToken()
- Specified by:
nextToken in interface org.eclipse.jface.text.rules.ITokenScanner
applyPropertyChange
public void applyPropertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
- Description copied from interface:
IEditorPropertyChangeListener
- Apply the property change as appropriate.
- Specified by:
applyPropertyChange in interface IEditorPropertyChangeListener
- Parameters:
event - the event describing the property change