| java.lang.Object org.netbeans.lib.lexer.LanguageOperation
LanguageOperation | final public class LanguageOperation implements PropertyChangeListener(Code) | | The operation behind the language hierarchy.
author: Miloslav Metelka version: 1.00 |
findLanguagePaths | public static void findLanguagePaths(Set<LanguagePath> existingLanguagePaths, Set<LanguagePath> newLanguagePaths, Set<Language<?>> exploredLanguages, LanguagePath lp)(Code) | | Find the language paths either for this language only
or from TokenHierarchyOperation when adding a new default or custom embedding
to the token hierarchy.
As a language may finally be embedded in itself (e.g. someone might
want to syntax color java code snippet embedded in javadoc)
this method must prevent creation of infinite language paths
by using exploredLanguages parameter.
Parameters: existingLanguagePaths - set of language paths that are already known.This set is not modified by the method. Parameters: newLanguagePaths - newly discovered language paths will be added to this set. Parameters: exploredLanguages - used for checking whether the subpaths containingthis language were already discovered. Parameters: lp - language path that will be checked. Its innermost languagewill be checked for embeddings automatically. |
getEmbedding | public synchronized LanguageEmbedding<T> getEmbedding(int startSkipLength, int endSkipLength, boolean joinSections)(Code) | | Get cached or create a new embedding with the language of this operation
and the given start and end skip lengths.
non-null embedding. |
|
|