com.spoledge.audao.parser.gql.impl.soft.func
Class FuncINSTR

java.lang.Object
  extended by com.spoledge.audao.parser.gql.impl.soft.func.Func
      extended by com.spoledge.audao.parser.gql.impl.soft.func.FuncINSTR
All Implemented Interfaces:
SoftFunction

public class FuncINSTR
extends Func

INSTR( text, substring [, start [, occurrence ]) .
Searches for substring in the text. Returns the position fo the substring found or 0 if not found.
start: optional 1,2,3... (1 = first char) if negative, then searches backwards (-1 = last char) if 0, then starting at the first char.
occurrence: optional number 1,2,...


Constructor Summary
FuncINSTR()
           
 
Method Summary
protected  void checkNumOfParams(java.util.List<java.lang.Object> args)
           
protected  java.lang.Object getFunctionValueImpl(java.util.List<java.lang.Object> args)
           
 
Methods inherited from class com.spoledge.audao.parser.gql.impl.soft.func.Func
checkNumOfParams, checkNumOfParams, getFunctionName, getFunctionValue, getFunctionWithParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FuncINSTR

public FuncINSTR()
Method Detail

getFunctionValueImpl

protected java.lang.Object getFunctionValueImpl(java.util.List<java.lang.Object> args)
Specified by:
getFunctionValueImpl in class Func

checkNumOfParams

protected void checkNumOfParams(java.util.List<java.lang.Object> args)
Specified by:
checkNumOfParams in class Func


Copyright © 2010 Spolecne s.r.o. All Rights Reserved.