|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.bbk.dcs.automed.qproc.functions.string.Substring
public class Substring
Returns a substring of the input string based on the two other integer arguments.
The substring includes the letter denoted by the first integer argument, but does not inlude the letter denoted by the second integer argument. For example 'Substring 'string' 2 4' returns 'tr'.
| Constructor Summary | |
|---|---|
Substring()
|
|
| Method Summary | |
|---|---|
int |
getArity()
Returns the arity of the function. |
Cell |
perform(Cell[] args,
Evaluator e)
Returns a Cell object that is the root of a graph that represents the result of applying the built-in function to the arguments args. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Substring()
| Method Detail |
|---|
public int getArity()
BuiltInFunction
getArity in interface BuiltInFunction
public Cell perform(Cell[] args,
Evaluator e)
BuiltInFunction
perform in interface BuiltInFunction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||