Class AtlCodeScanner
java.lang.Object
org.eclipse.jface.text.rules.RuleBasedScanner
org.eclipse.m2m.atl.adt.ui.text.AbstractScanner
org.eclipse.m2m.atl.adt.ui.text.atl.AtlCodeScanner
- All Implemented Interfaces:
org.eclipse.jface.text.rules.ICharacterScanner,org.eclipse.jface.text.rules.ITokenScanner
This class controls the highlight syntaxing coloration for the ATL editor.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassRule to detect atl literals.classRule to detect atl identifier.protected classRule to detect symbols. -
Field Summary
Fields inherited from class org.eclipse.jface.text.rules.RuleBasedScanner
fColumn, fDefaultReturnToken, fDelimiters, fDocument, fOffset, fRangeEnd, fRules, fTokenOffset, UNDEFINEDFields inherited from interface org.eclipse.jface.text.rules.ICharacterScanner
EOF -
Constructor Summary
ConstructorsConstructorDescriptionAtlCodeScanner(AtlTextTools textTools) Creates a new instance of the ATL scanner. -
Method Summary
Modifier and TypeMethodDescriptionvoidadaptToPreferenceChange(org.eclipse.jface.util.PropertyChangeEvent event) booleanaffectsBehavior(org.eclipse.jface.util.PropertyChangeEvent event) protected List<org.eclipse.jface.text.rules.IRule> Creates the list of rules controlling this scanner.protected String[]Returns a list of constants matching the token.Methods inherited from class org.eclipse.m2m.atl.adt.ui.text.AbstractScanner
getTextTools, getToken, initializeMethods inherited from class org.eclipse.jface.text.rules.RuleBasedScanner
getColumn, getLegalLineDelimiters, getTokenLength, getTokenOffset, nextToken, read, setDefaultReturnToken, setRange, setRules, unread
-
Constructor Details
-
AtlCodeScanner
Creates a new instance of the ATL scanner.- Parameters:
textTools- the ATL text tools
-
-
Method Details
-
adaptToPreferenceChange
public void adaptToPreferenceChange(org.eclipse.jface.util.PropertyChangeEvent event) - Overrides:
adaptToPreferenceChangein classAbstractScanner- See Also:
-
affectsBehavior
public boolean affectsBehavior(org.eclipse.jface.util.PropertyChangeEvent event) - Overrides:
affectsBehaviorin classAbstractScanner- See Also:
-
createRules
Creates the list of rules controlling this scanner.- Specified by:
createRulesin classAbstractScanner- Returns:
- the list of rules
- See Also:
-
getPropertyNames
Returns a list of constants matching the token.- Specified by:
getPropertyNamesin classAbstractScanner- Returns:
- the list of constants
- See Also:
-