class PHPExcel_Calculation_FormulaToken

PHPExcelCalculationFormulaToken

Copyright (c) 2006 - 2015 PHPExcel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Constants

TOKEN_TYPE_NOOP

TOKEN_TYPE_OPERAND

TOKEN_TYPE_FUNCTION

TOKEN_TYPE_SUBEXPRESSION

TOKEN_TYPE_ARGUMENT

TOKEN_TYPE_OPERATORPREFIX

TOKEN_TYPE_OPERATORINFIX

TOKEN_TYPE_OPERATORPOSTFIX

TOKEN_TYPE_WHITESPACE

TOKEN_TYPE_UNKNOWN

TOKEN_SUBTYPE_NOTHING

TOKEN_SUBTYPE_START

TOKEN_SUBTYPE_STOP

TOKEN_SUBTYPE_TEXT

TOKEN_SUBTYPE_NUMBER

TOKEN_SUBTYPE_LOGICAL

TOKEN_SUBTYPE_ERROR

TOKEN_SUBTYPE_RANGE

TOKEN_SUBTYPE_MATH

TOKEN_SUBTYPE_CONCATENATION

TOKEN_SUBTYPE_INTERSECTION

TOKEN_SUBTYPE_UNION

Methods

__construct(string $pValue, string $pTokenType = PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN, string $pTokenSubType = PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING)

Create a new PHPExcelCalculationFormulaToken

string
getValue()

Get Value

setValue(string $value)

Set Value

string
getTokenType()

Get Token Type (represented by TOKENTYPE*)

setTokenType(string $value = PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN)

Set Token Type

string
getTokenSubType()

Get Token SubType (represented by TOKENSUBTYPE*)

setTokenSubType(string $value = PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING)

Set Token SubType

Details

at line 118
__construct(string $pValue, string $pTokenType = PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN, string $pTokenSubType = PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING)

Create a new PHPExcelCalculationFormulaToken

Parameters

string $pValue
string $pTokenType Token type (represented by TOKENTYPE*)
string $pTokenSubType Token Subtype (represented by TOKENSUBTYPE*)

at line 131
string getValue()

Get Value

Return Value

string

at line 141
setValue(string $value)

Set Value

Parameters

string $value

at line 151
string getTokenType()

Get Token Type (represented by TOKENTYPE*)

Return Value

string

at line 161
setTokenType(string $value = PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN)

Set Token Type

Parameters

string $value

at line 171
string getTokenSubType()

Get Token SubType (represented by TOKENSUBTYPE*)

Return Value

string

at line 181
setTokenSubType(string $value = PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING)

Set Token SubType

Parameters

string $value