public class Rule extends Object
| Modifier and Type | Field and Description |
|---|---|
protected InlineCodeFinder |
codeFinder |
protected String |
expr |
protected int |
nameGroup |
protected int |
noteGroup |
protected Pattern |
pattern |
protected boolean |
preserveWS |
protected String |
propertyName |
protected String |
propertyValue |
protected String |
ruleName |
protected int |
ruleType |
static int |
RULETYPE_CLOSEGROUP |
static int |
RULETYPE_COMMENT |
static int |
RULETYPE_CONTENT |
static int |
RULETYPE_NOTRANS |
static int |
RULETYPE_OPENGROUP |
static int |
RULETYPE_STRING |
protected String |
sample |
protected int |
sourceGroup |
protected int |
targetGroup |
protected boolean |
useCodeFinder |
| Modifier and Type | Method and Description |
|---|---|
void |
fromString(String data) |
String |
getCodeFinderRules() |
String |
getExpression() |
int |
getNameGroup() |
int |
getNoteGroup() |
String |
getPropertyName() |
String |
getPropertyValue() |
String |
getRuleName() |
int |
getRuleType() |
String |
getSample() |
int |
getSourceGroup() |
int |
getTargetGroup() |
boolean |
preserveWS() |
void |
setCodeFinderRules(String value) |
void |
setExpression(String value) |
void |
setNameGroup(int index) |
void |
setNoteGroup(int index) |
void |
setPreserveWS(boolean value) |
void |
setPropertyName(String value) |
void |
setPropertyValue(String value) |
void |
setRuleName(String value) |
void |
setRuleType(int value) |
void |
setSample(String value) |
void |
setSourceGroup(int index) |
void |
setTargetGroup(int index) |
void |
setUseCodeFinder(boolean value) |
String |
toString() |
boolean |
useCodeFinder() |
public static final int RULETYPE_STRING
public static final int RULETYPE_CONTENT
public static final int RULETYPE_COMMENT
public static final int RULETYPE_NOTRANS
public static final int RULETYPE_OPENGROUP
public static final int RULETYPE_CLOSEGROUP
protected String ruleName
protected String expr
protected int ruleType
protected boolean preserveWS
protected boolean useCodeFinder
protected InlineCodeFinder codeFinder
protected String propertyName
protected String propertyValue
protected String sample
protected int sourceGroup
protected int targetGroup
protected int nameGroup
protected int noteGroup
protected Pattern pattern
public Rule()
public Rule(Rule obj)
public String getRuleName()
public void setRuleName(String value)
public String getExpression()
public void setExpression(String value)
public String getSample()
public void setSample(String value)
public int getRuleType()
public void setRuleType(int value)
public int getSourceGroup()
public void setSourceGroup(int index)
public int getTargetGroup()
public void setTargetGroup(int index)
public int getNameGroup()
public void setNameGroup(int index)
public int getNoteGroup()
public void setNoteGroup(int index)
public boolean preserveWS()
public void setPreserveWS(boolean value)
public String getPropertyName()
public void setPropertyName(String value)
public String getPropertyValue()
public void setPropertyValue(String value)
public boolean useCodeFinder()
public void setUseCodeFinder(boolean value)
public String getCodeFinderRules()
public void setCodeFinderRules(String value)
public void fromString(String data)
Copyright © 2022. All rights reserved.