|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.util.RegexpOptions
public class RegexpOptions
Field Summary | |
---|---|
static RegexpOptions |
NULL_OPTIONS
|
Constructor Summary | |
---|---|
RegexpOptions()
|
|
RegexpOptions(KCode kcode,
boolean isKCodeDefault)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object other)
|
static RegexpOptions |
fromEmbeddedOptions(int embeddedOptions)
|
static RegexpOptions |
fromJoniOptions(int joniOptions)
|
KCode |
getKCode()
|
java.lang.String |
getKCodeName()
|
int |
hashCode()
|
boolean |
isEmbeddable()
|
boolean |
isEncodingNone()
|
boolean |
isExtended()
|
boolean |
isFixed()
|
boolean |
isIgnorecase()
|
boolean |
isJava()
|
boolean |
isKcodeDefault()
Whether the kcode associated with this regexp is implicit (aka default) or is specified explicitly (via 'nesu' syntax postscript or flags to Regexp.new. |
boolean |
isLiteral()
|
boolean |
isMultiline()
|
boolean |
isOnce()
|
void |
setEncodingNone(boolean encodingNone)
|
void |
setExplicitKCode(KCode kcode)
This regexp has an explicit encoding flag or 'nesu' letter associated with it. |
void |
setExtended(boolean extended)
|
void |
setFixed(boolean fixed)
|
void |
setIgnorecase(boolean ignorecase)
|
void |
setJava(boolean java)
|
void |
setLiteral(boolean literal)
|
void |
setMultiline(boolean multiline)
|
void |
setOnce(boolean once)
|
org.jcodings.Encoding |
setup19(Ruby runtime)
Calculate the encoding based on kcode option set via 'nesu'. |
int |
toEmbeddedOptions()
This int value can be used by compiler or any place where we want an integer representation of the state of this object. |
int |
toJoniOptions()
This int value is meant to only be used when dealing directly with the joni regular expression library. |
java.lang.String |
toString()
|
RegexpOptions |
withoutOnce()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final RegexpOptions NULL_OPTIONS
Constructor Detail |
---|
public RegexpOptions()
public RegexpOptions(KCode kcode, boolean isKCodeDefault)
Method Detail |
---|
public boolean isExtended()
public void setExtended(boolean extended)
public boolean isIgnorecase()
public void setIgnorecase(boolean ignorecase)
public boolean isFixed()
public void setFixed(boolean fixed)
public KCode getKCode()
public java.lang.String getKCodeName()
public void setExplicitKCode(KCode kcode)
kcode
- to be setpublic boolean isKcodeDefault()
public boolean isMultiline()
public void setMultiline(boolean multiline)
public boolean isOnce()
public void setOnce(boolean once)
public boolean isJava()
public void setJava(boolean java)
public boolean isEncodingNone()
public void setEncodingNone(boolean encodingNone)
public boolean isLiteral()
public void setLiteral(boolean literal)
public boolean isEmbeddable()
public org.jcodings.Encoding setup19(Ruby runtime)
public int toEmbeddedOptions()
public int toJoniOptions()
public static RegexpOptions fromEmbeddedOptions(int embeddedOptions)
public static RegexpOptions fromJoniOptions(int joniOptions)
public RegexpOptions withoutOnce()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |