org.sablecc.php4
Class PhpLexer
Object
org.sablecc.php4.lexer.Lexer
org.sablecc.php4.PhpLexer
- public class PhpLexer
- extends Lexer
Constructor Summary |
PhpLexer(PushbackReader pbr)
|
Method Summary |
String |
ds(String s)
Unescape double quote PHP string into a native java string. |
protected Token |
getToken()
|
boolean |
getUnescapeStrings()
|
void |
setUnescapeStrings(boolean val)
Set whether unescape the PHP strings. |
String |
ss(String s)
Unescape single quote PHP string into a native java string. |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PhpLexer
public PhpLexer(PushbackReader pbr)
setUnescapeStrings
public void setUnescapeStrings(boolean val)
- Set whether unescape the PHP strings. By default is true.
getUnescapeStrings
public boolean getUnescapeStrings()
getToken
protected Token getToken()
throws IOException,
LexerException
- Overrides:
getToken
in class Lexer
- Throws:
IOException
LexerException
ss
public String ss(String s)
- Unescape single quote PHP string into a native java string.
ds
public String ds(String s)
- Unescape double quote PHP string into a native java string.