public class LitString extends ExpressionBase implements Literal, ExprString
Modifier and Type | Class and Description |
---|---|
static class |
LitString.Range |
Modifier and Type | Field and Description |
---|---|
static LitString |
EMPTY |
static int |
MAX_SIZE |
static int |
TYPE_LOWER |
static int |
TYPE_ORIGINAL |
static int |
TYPE_UPPER |
MODE_REF, MODE_VALUE
Constructor and Description |
---|
LitString(String str,
Position start,
Position end)
constructor of the class
|
Modifier and Type | Method and Description |
---|---|
org.objectweb.asm.Type |
_writeOut(BytecodeContext bc,
int mode)
write out the stament to the adater
|
LitString |
duplicate() |
boolean |
equals(Object obj) |
boolean |
fromBracket() |
void |
fromBracket(boolean fromBracket) |
Boolean |
getBoolean(Boolean defaultValue) |
Double |
getDouble(Double defaultValue) |
String |
getString() |
void |
lowerCase() |
static ExprString |
toExprString(String str) |
static ExprString |
toExprString(String str,
Position start,
Position end) |
static LitString |
toLitString(String str) |
String |
toString() |
void |
upperCase() |
org.objectweb.asm.Type |
writeOut(BytecodeContext bc,
int mode,
int caseType) |
getEnd, getStart, setEnd, setStart, writeOut
public static final int MAX_SIZE
public static final int TYPE_ORIGINAL
public static final int TYPE_UPPER
public static final int TYPE_LOWER
public static ExprString toExprString(String str, Position start, Position end)
public static ExprString toExprString(String str)
public static LitString toLitString(String str)
public String getString()
getString
in interface Literal
Literal.getString()
public org.objectweb.asm.Type _writeOut(BytecodeContext bc, int mode) throws BytecodeException
ExpressionBase
_writeOut
in class ExpressionBase
BytecodeException
public org.objectweb.asm.Type writeOut(BytecodeContext bc, int mode, int caseType) throws BytecodeException
BytecodeException
public Double getDouble(Double defaultValue)
getDouble
in interface Literal
Literal.getDouble(java.lang.Double)
public Boolean getBoolean(Boolean defaultValue)
getBoolean
in interface Literal
Literal.getBoolean(java.lang.Boolean)
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
public void upperCase()
public void lowerCase()
public void fromBracket(boolean fromBracket)
public boolean fromBracket()
Copyright © 2015 Lucee