public class Variable extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_NAME |
DEFAULT_GHOST_VALUE| Constructor and Description |
|---|
Variable() |
Variable(String name) |
Variable(String name,
Pattern regex) |
| Modifier and Type | Method and Description |
|---|---|
Action |
getAction()
Get the action of the variable.
|
String |
getName() |
Pattern |
getRegex()
Get regular expression for validate variable.
|
boolean |
isGhost()
If it's true then processor parse it but no move the cursor.
|
void |
setAction(Action action)
Set the action of the variable.
|
void |
setGhost(boolean ghost) |
void |
setName(String name) |
void |
setRegex(Pattern regex)
Set a regex pattern for validate variable.
|
public static final String DEFAULT_NAME
public Variable()
public Variable(String name)
public Pattern getRegex()
public void setRegex(Pattern regex)
regex - patternpublic Action getAction()
public void setAction(Action action)
action - actionpublic boolean isGhost()
public void setGhost(boolean ghost)
ghost - If it's true then processor parse it but no move the cursor.public String getName()
public void setName(String name)
Copyright © 2016. All rights reserved.