public abstract class PatternBasedElement
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
PatternBasedElement() |
Modifier and Type | Method and Description |
---|---|
PatternBasedElement |
clone() |
protected abstract java.lang.String |
getPattern(int groupOffset)
Get the regular expression pattern that matches this element.
|
protected abstract int |
getPatternGroupCount()
The number of capturing groups in the
pattern . |
protected abstract PatternBasedElementProcessor |
newProcessor()
create a new processor for processing the type of element detected by this class.
|
protected abstract java.lang.String getPattern(int groupOffset)
groupOffset
- the offset of the groups in the pattern, 0 indicating no offsetprotected abstract int getPatternGroupCount()
pattern
. Note that implementations must take care
to return the correct value otherwise the markup language will not work correctly.protected abstract PatternBasedElementProcessor newProcessor()
public PatternBasedElement clone()
clone
in class java.lang.Object
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