Package org.joni.ast
Class StringNode
java.lang.Object
org.joni.ast.Node
org.joni.ast.StringNode
- All Implemented Interfaces:
NodeType
,StringType
-
Nested Class Summary
Nested classes/interfaces inherited from class org.joni.ast.Node
Node.TopNode
-
Field Summary
FieldsModifier and TypeFieldDescriptionbyte[]
static final StringNode
int
int
private static final int
private static final int
int
Fields inherited from interface org.joni.constants.internal.NodeType
ALLOWED_IN_LB, ALT, ANCHOR, BIT_ALT, BIT_ANCHOR, BIT_BREF, BIT_CALL, BIT_CANY, BIT_CCLASS, BIT_CTYPE, BIT_ENCLOSE, BIT_LIST, BIT_QTFR, BIT_STR, BREF, CALL, CANY, CCLASS, CTYPE, ENCLOSE, LIST, QTFR, SIMPLE, STR
Fields inherited from interface org.joni.constants.internal.StringType
NSTR_AMBIG, NSTR_DONT_GET_OPT_INFO, NSTR_RAW, NSTR_SHARED
-
Constructor Summary
ConstructorsModifierConstructorDescriptionStringNode
(byte[] bytes, int p, int end) private
StringNode
(int size) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canBeSplit
(org.jcodings.Encoding enc) void
catByte
(byte c) void
catBytes
(byte[] cat, int catP, int catEnd) void
catCode
(int code, org.jcodings.Encoding enc) void
void
void
clearRaw()
void
private void
ensure
(int ahead) static StringNode
fromCodePoint
(int code, org.jcodings.Encoding enc) getName()
boolean
isAmbig()
boolean
boolean
isRaw()
boolean
isShared()
int
length()
int
length
(org.jcodings.Encoding enc) private void
modifyEnsure
(int ahead) void
set
(byte[] bytes, int p, int end) void
setAmbig()
void
void
setRaw()
void
splitLastChar
(org.jcodings.Encoding enc) toString
(int level) Methods inherited from class org.joni.ast.Node
getAddressName, getChild, getType, getType2Bit, isSimple, newTop, pad, replaceWith, setChild, toString
-
Field Details
-
NODE_STR_MARGIN
private static final int NODE_STR_MARGIN- See Also:
-
NODE_STR_BUF_SIZE
private static final int NODE_STR_BUF_SIZE- See Also:
-
EMPTY
-
bytes
public byte[] bytes -
p
public int p -
end
public int end -
flag
public int flag
-
-
Constructor Details
-
StringNode
private StringNode(int size) -
StringNode
public StringNode() -
StringNode
public StringNode(byte[] bytes, int p, int end)
-
-
Method Details
-
fromCodePoint
-
ensure
private void ensure(int ahead) -
modifyEnsure
private void modifyEnsure(int ahead) -
getName
-
length
public int length() -
length
public int length(org.jcodings.Encoding enc) -
splitLastChar
-
canBeSplit
public boolean canBeSplit(org.jcodings.Encoding enc) -
set
public void set(byte[] bytes, int p, int end) -
catBytes
public void catBytes(byte[] cat, int catP, int catEnd) -
catByte
public void catByte(byte c) -
catCode
public void catCode(int code, org.jcodings.Encoding enc) -
setRaw
public void setRaw() -
clearRaw
public void clearRaw() -
isRaw
public boolean isRaw() -
setAmbig
public void setAmbig() -
clearAmbig
public void clearAmbig() -
isAmbig
public boolean isAmbig() -
setDontGetOptInfo
public void setDontGetOptInfo() -
clearDontGetOptInfo
public void clearDontGetOptInfo() -
isDontGetOptInfo
public boolean isDontGetOptInfo() -
flagsToString
-
toString
-