public class PatternEntityReferenceReplacementToken extends PatternBasedElement
EntityReplacementTokenProcessor
Constructor and Description |
---|
PatternEntityReferenceReplacementToken(java.lang.String pattern,
java.lang.String replacement) |
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 PatternEntityReferenceReplacementToken(java.lang.String pattern, java.lang.String replacement)
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 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
protected PatternBasedElementProcessor newProcessor()
PatternBasedElement
newProcessor
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