Documentation

FormulaToken
in package

PARTLY BASED ON: Copyright (c) 2007 E. W. Bachtal, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

https://ewbi.blogs.com/develops/2007/03/excel_formula_p.html https://ewbi.blogs.com/develops/2004/12/excel_formula_p.html

Table of Contents

Constants

TOKEN_SUBTYPE_CONCATENATION  = 'Concatenation'
TOKEN_SUBTYPE_ERROR  = 'Error'
TOKEN_SUBTYPE_INTERSECTION  = 'Intersection'
TOKEN_SUBTYPE_LOGICAL  = 'Logical'
TOKEN_SUBTYPE_MATH  = 'Math'
TOKEN_SUBTYPE_NOTHING  = 'Nothing'
TOKEN_SUBTYPE_NUMBER  = 'Number'
TOKEN_SUBTYPE_RANGE  = 'Range'
TOKEN_SUBTYPE_START  = 'Start'
TOKEN_SUBTYPE_STOP  = 'Stop'
TOKEN_SUBTYPE_TEXT  = 'Text'
TOKEN_SUBTYPE_UNION  = 'Union'
TOKEN_TYPE_ARGUMENT  = 'Argument'
TOKEN_TYPE_FUNCTION  = 'Function'
TOKEN_TYPE_NOOP  = 'Noop'
TOKEN_TYPE_OPERAND  = 'Operand'
TOKEN_TYPE_OPERATORINFIX  = 'OperatorInfix'
TOKEN_TYPE_OPERATORPOSTFIX  = 'OperatorPostfix'
TOKEN_TYPE_OPERATORPREFIX  = 'OperatorPrefix'
TOKEN_TYPE_SUBEXPRESSION  = 'Subexpression'
TOKEN_TYPE_UNKNOWN  = 'Unknown'
TOKEN_TYPE_WHITESPACE  = 'Whitespace'

Properties

$tokenSubType  : string
Token SubType (represented by TOKEN_SUBTYPE_*).
$tokenType  : string
Token Type (represented by TOKEN_TYPE_*).
$value  : string
Value.

Methods

__construct()  : mixed
Create a new FormulaToken.
getTokenSubType()  : string
Get Token SubType (represented by TOKEN_SUBTYPE_*).
getTokenType()  : string
Get Token Type (represented by TOKEN_TYPE_*).
getValue()  : string
Get Value.
setTokenSubType()  : void
Set Token SubType (represented by TOKEN_SUBTYPE_*).
setTokenType()  : void
Set Token Type (represented by TOKEN_TYPE_*).
setValue()  : void
Set Value.

Constants

TOKEN_SUBTYPE_CONCATENATION

public mixed TOKEN_SUBTYPE_CONCATENATION = 'Concatenation'

TOKEN_SUBTYPE_ERROR

public mixed TOKEN_SUBTYPE_ERROR = 'Error'

TOKEN_SUBTYPE_INTERSECTION

public mixed TOKEN_SUBTYPE_INTERSECTION = 'Intersection'

TOKEN_SUBTYPE_LOGICAL

public mixed TOKEN_SUBTYPE_LOGICAL = 'Logical'

TOKEN_SUBTYPE_MATH

public mixed TOKEN_SUBTYPE_MATH = 'Math'

TOKEN_SUBTYPE_NOTHING

public mixed TOKEN_SUBTYPE_NOTHING = 'Nothing'

TOKEN_SUBTYPE_NUMBER

public mixed TOKEN_SUBTYPE_NUMBER = 'Number'

TOKEN_SUBTYPE_RANGE

public mixed TOKEN_SUBTYPE_RANGE = 'Range'

TOKEN_SUBTYPE_START

public mixed TOKEN_SUBTYPE_START = 'Start'

TOKEN_SUBTYPE_STOP

public mixed TOKEN_SUBTYPE_STOP = 'Stop'

TOKEN_SUBTYPE_TEXT

public mixed TOKEN_SUBTYPE_TEXT = 'Text'

TOKEN_SUBTYPE_UNION

public mixed TOKEN_SUBTYPE_UNION = 'Union'

TOKEN_TYPE_ARGUMENT

public mixed TOKEN_TYPE_ARGUMENT = 'Argument'

TOKEN_TYPE_FUNCTION

public mixed TOKEN_TYPE_FUNCTION = 'Function'

TOKEN_TYPE_OPERAND

public mixed TOKEN_TYPE_OPERAND = 'Operand'

TOKEN_TYPE_OPERATORINFIX

public mixed TOKEN_TYPE_OPERATORINFIX = 'OperatorInfix'

TOKEN_TYPE_OPERATORPOSTFIX

public mixed TOKEN_TYPE_OPERATORPOSTFIX = 'OperatorPostfix'

TOKEN_TYPE_OPERATORPREFIX

public mixed TOKEN_TYPE_OPERATORPREFIX = 'OperatorPrefix'

TOKEN_TYPE_SUBEXPRESSION

public mixed TOKEN_TYPE_SUBEXPRESSION = 'Subexpression'

TOKEN_TYPE_UNKNOWN

public mixed TOKEN_TYPE_UNKNOWN = 'Unknown'

TOKEN_TYPE_WHITESPACE

public mixed TOKEN_TYPE_WHITESPACE = 'Whitespace'

Properties

$tokenSubType

Token SubType (represented by TOKEN_SUBTYPE_*).

private string $tokenSubType

$tokenType

Token Type (represented by TOKEN_TYPE_*).

private string $tokenType

Methods

__construct()

Create a new FormulaToken.

public __construct(string $value[, string $tokenType = self::TOKEN_TYPE_UNKNOWN ][, string $tokenSubType = self::TOKEN_SUBTYPE_NOTHING ]) : mixed
Parameters
$value : string
$tokenType : string = self::TOKEN_TYPE_UNKNOWN

Token type (represented by TOKEN_TYPE_*)

$tokenSubType : string = self::TOKEN_SUBTYPE_NOTHING

Token Subtype (represented by TOKEN_SUBTYPE_*)

getTokenSubType()

Get Token SubType (represented by TOKEN_SUBTYPE_*).

public getTokenSubType() : string
Return values
string

getTokenType()

Get Token Type (represented by TOKEN_TYPE_*).

public getTokenType() : string
Return values
string

getValue()

Get Value.

public getValue() : string
Return values
string

setTokenSubType()

Set Token SubType (represented by TOKEN_SUBTYPE_*).

public setTokenSubType(string $value) : void
Parameters
$value : string

setTokenType()

Set Token Type (represented by TOKEN_TYPE_*).

public setTokenType(string $value) : void
Parameters
$value : string

setValue()

Set Value.

public setValue(string $value) : void
Parameters
$value : string

        
On this page

Search results