|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.iu.cnets.klatsch.lang.Value
edu.iu.cnets.klatsch.lang.VString
public class VString
String values.
Field Summary | |
---|---|
java.lang.String |
val
the value actually being stored |
Constructor Summary | |
---|---|
VString(java.lang.String val)
Initialize a new string value. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
This override is necessary to use the class as a key in a HashMap object. |
int |
hashCode()
This override is necessary to use the class as a key in a HashMap object. |
Value |
method_cap(Value... args)
cap() : Capitalizes the first letter of the string. |
Value |
method_contains(Value... args)
contains(s) : Tests whether the string contains s. |
Value |
method_len(Value... args)
len() : Returns the length of the string. |
Value |
method_list(Value... args)
list() : Converts the string into a list of single-character substrings. |
Value |
method_lower(Value... args)
lower() : Returns the lowercase version of the string. |
Value |
method_matches(Value... args)
s.matches(r) : Tests whether the string matches r. |
Value |
method_num(Value... args)
num() : Returns a numeric version of the string. |
Value |
method_split(Value... args)
split(r, {n}) : Returns the string as split by the regex r (limit of n pieces). |
Value |
method_substr(Value... args)
substr(n1, {n2}) : Returns the substring from n1 to n2-1 or from n1 to the end. |
Value |
method_trim(Value... args)
trim() : Strips leading and trailing whitespace from the string. |
Value |
method_upper(Value... args)
upper() : Returns the uppercase version of the string. |
java.lang.String |
toString()
Convert the string to a string, which isn't difficult. |
Methods inherited from class edu.iu.cnets.klatsch.lang.Value |
---|
require, requireCount, requireType, toJson |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final java.lang.String val
Constructor Detail |
---|
public VString(java.lang.String val)
val
- the stringMethod Detail |
---|
public boolean equals(java.lang.Object other)
HashMap
object.
equals
in class java.lang.Object
public int hashCode()
HashMap
object.
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class Value
public Value method_cap(Value... args) throws EvaluationException
EvaluationException
public Value method_contains(Value... args) throws EvaluationException
EvaluationException
public Value method_len(Value... args) throws EvaluationException
EvaluationException
public Value method_list(Value... args) throws EvaluationException
EvaluationException
public Value method_lower(Value... args) throws EvaluationException
EvaluationException
public Value method_matches(Value... args) throws EvaluationException
EvaluationException
public Value method_num(Value... args) throws EvaluationException
EvaluationException
public Value method_split(Value... args) throws EvaluationException
EvaluationException
public Value method_substr(Value... args) throws EvaluationException
EvaluationException
public Value method_trim(Value... args) throws EvaluationException
EvaluationException
public Value method_upper(Value... args) throws EvaluationException
EvaluationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |