org.joni.ast
Class StringNode

java.lang.Object
  extended by org.joni.ast.Node
      extended by org.joni.ast.StringNode
All Implemented Interfaces:
NodeType, StringType

public final class StringNode
extends Node
implements StringType


Field Summary
 byte[] bytes
           
 int end
           
 int p
           
 
Fields inherited from class org.joni.ast.Node
parent
 
Fields inherited from interface org.joni.constants.StringType
NSTR_AMBIG, NSTR_DONT_GET_OPT_INFO, NSTR_RAW, NSTR_SHARED
 
Fields inherited from interface org.joni.constants.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
 
Constructor Summary
StringNode()
           
StringNode(byte c)
           
StringNode(byte[] bytes, int p, int end)
           
 
Method Summary
 boolean canBeSplit(Encoding enc)
           
 void cat(byte c)
           
 void cat(byte[] cat, int catP, int catEnd)
           
 void clear()
           
 void clearAmbig()
           
 void clearDontGetOptInfo()
           
 void clearRaw()
           
 void clearShared()
           
 void ensure(int ahead)
           
 int getLength()
           
 int getLength(Encoding enc)
           
 java.lang.String getName()
           
 int getType()
           
 boolean isAmbig()
           
 boolean isDontGetOptInfo()
           
 boolean isRaw()
           
 boolean isShared()
           
 int length()
           
 int length(Encoding enc)
           
 void set(byte[] bytes, int p, int end)
           
 void setAmbig()
           
 void setDontGetOptInfo()
           
 void setRaw()
           
 void setShared()
           
 StringNode splitLastChar(Encoding enc)
           
 java.lang.String toString(int level)
           
 
Methods inherited from class org.joni.ast.Node
getAddressName, getChild, getType2Bit, isAllowedInLookBehind, isInvalidQuantifier, isSimple, pad, setChild, swap, toString, verifyTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bytes

public byte[] bytes

p

public int p

end

public int end
Constructor Detail

StringNode

public StringNode()

StringNode

public StringNode(byte[] bytes,
                  int p,
                  int end)

StringNode

public StringNode(byte c)
Method Detail

ensure

public void ensure(int ahead)

getType

public int getType()
Specified by:
getType in class Node

getName

public java.lang.String getName()
Specified by:
getName in class Node

toString

public java.lang.String toString(int level)
Specified by:
toString in class Node

length

public int length()

length

public int length(Encoding enc)

splitLastChar

public StringNode splitLastChar(Encoding enc)

canBeSplit

public boolean canBeSplit(Encoding enc)

set

public void set(byte[] bytes,
                int p,
                int end)

cat

public void cat(byte[] cat,
                int catP,
                int catEnd)

cat

public void cat(byte c)

clear

public void clear()

getLength

public int getLength()

getLength

public int getLength(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()

setShared

public void setShared()

clearShared

public void clearShared()

isShared

public boolean isShared()


Copyright © 2008. All Rights Reserved.