public class Constant extends Object implements TemplateElement
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ghost |
DEFAULT_GHOST_VALUE| Constructor and Description |
|---|
Constant()
Default constructor.
|
Constant(String value)
Create constant with value.
|
Constant(String value,
boolean ignoreCase)
Create constant.
|
Constant(String value,
boolean ignoreCase,
boolean ghost)
Create constant.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getValue() |
int |
hashCode() |
boolean |
isGhost()
If it's true then processor parse it but no move the cursor.
|
boolean |
isIgnoreCase()
Ignore case or no.
|
void |
setGhost(boolean ghost) |
void |
setIgnoreCase(boolean ignoreCase)
Set ignore case behavior.
|
void |
setValue(String value) |
public Constant()
public Constant(String value)
value - constant value.public Constant(String value, boolean ignoreCase)
value - constant valueignoreCase - ignore case or nopublic Constant(String value, boolean ignoreCase, boolean ghost)
value - constant valueignoreCase - ignore case or noghost - if true then processor parses it but not moves the cursorpublic String getValue()
public void setValue(String value)
value - constant valuepublic boolean isIgnoreCase()
public void setIgnoreCase(boolean ignoreCase)
ignoreCase - true if ignore case, false otherwise.public boolean isGhost()
public void setGhost(boolean ghost)
ghost - If it's true then processor parse it but no move the cursor.Copyright © 2016. All rights reserved.