public class LimitedHtmlEndTagPhraseModifier extends PatternBasedElement
LimitedHtmlStartTagPhraseModifier
Constructor and Description |
---|
LimitedHtmlEndTagPhraseModifier(java.lang.String... elementNames) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getPattern(int groupOffset)
Get the regular expression pattern that matches this element.
|
protected int |
getPatternGroupCount()
The number of capturing groups in the
pattern . |
protected PatternBasedElementProcessor |
newProcessor()
create a new processor for processing the type of element detected by this class.
|
clone
public LimitedHtmlEndTagPhraseModifier(java.lang.String... elementNames)
elementNames
- the element names to be detected.protected java.lang.String getPattern(int groupOffset)
PatternBasedElement
getPattern
in class PatternBasedElement
groupOffset
- the offset of the groups in the pattern, 0 indicating no offsetprotected PatternBasedElementProcessor newProcessor()
PatternBasedElement
newProcessor
in class PatternBasedElement
protected int getPatternGroupCount()
PatternBasedElement
pattern
. Note that implementations must take care
to return the correct value otherwise the markup language will not work correctly.getPatternGroupCount
in class PatternBasedElement
Copyright © 2007, 2013 David Green and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html