ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
PHPExcel_Calculation_FormulaToken Class Reference
+ Collaboration diagram for PHPExcel_Calculation_FormulaToken:

Public Member Functions

 __construct ($pValue, $pTokenType=PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN, $pTokenSubType=PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING)
 Create a new PHPExcel_Calculation_FormulaToken. More...
 
 getValue ()
 Get Value. More...
 
 setValue ($value)
 Set Value. More...
 
 getTokenType ()
 Get Token Type (represented by TOKEN_TYPE_*) More...
 
 setTokenType ($value=PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN)
 Set Token Type. More...
 
 getTokenSubType ()
 Get Token SubType (represented by TOKEN_SUBTYPE_*) More...
 
 setTokenSubType ($value=PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING)
 Set Token SubType. More...
 

Data Fields

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

Private Attributes

 $_value
 
 $_tokenType
 
 $_tokenSubType
 

Detailed Description

Definition at line 60 of file FormulaToken.php.

Constructor & Destructor Documentation

◆ __construct()

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

Create a new PHPExcel_Calculation_FormulaToken.

Parameters
string$pValue
string$pTokenTypeToken type (represented by TOKEN_TYPE_*)
string$pTokenSubTypeToken Subtype (represented by TOKEN_SUBTYPE_*)

Definition at line 115 of file FormulaToken.php.

116  {
117  // Initialise values
118  $this->_value = $pValue;
119  $this->_tokenType = $pTokenType;
120  $this->_tokenSubType = $pTokenSubType;
121  }

Member Function Documentation

◆ getTokenSubType()

PHPExcel_Calculation_FormulaToken::getTokenSubType ( )

Get Token SubType (represented by TOKEN_SUBTYPE_*)

Returns
string

Definition at line 164 of file FormulaToken.php.

References $_tokenSubType.

◆ getTokenType()

PHPExcel_Calculation_FormulaToken::getTokenType ( )

Get Token Type (represented by TOKEN_TYPE_*)

Returns
string

Definition at line 146 of file FormulaToken.php.

References $_tokenType.

146  {
147  return $this->_tokenType;
148  }

◆ getValue()

PHPExcel_Calculation_FormulaToken::getValue ( )

Get Value.

Returns
string

Definition at line 128 of file FormulaToken.php.

References $_value.

128  {
129  return $this->_value;
130  }

◆ setTokenSubType()

PHPExcel_Calculation_FormulaToken::setTokenSubType (   $value = PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING)

Set Token SubType.

Parameters
string$value

Definition at line 173 of file FormulaToken.php.

173  {
174  $this->_tokenSubType = $value;
175  }

◆ setTokenType()

PHPExcel_Calculation_FormulaToken::setTokenType (   $value = PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN)

Set Token Type.

Parameters
string$value

Definition at line 155 of file FormulaToken.php.

155  {
156  $this->_tokenType = $value;
157  }

◆ setValue()

PHPExcel_Calculation_FormulaToken::setValue (   $value)

Set Value.

Parameters
string$value

Definition at line 137 of file FormulaToken.php.

137  {
138  $this->_value = $value;
139  }

Field Documentation

◆ $_tokenSubType

PHPExcel_Calculation_FormulaToken::$_tokenSubType
private

Definition at line 106 of file FormulaToken.php.

Referenced by getTokenSubType().

◆ $_tokenType

PHPExcel_Calculation_FormulaToken::$_tokenType
private

Definition at line 99 of file FormulaToken.php.

Referenced by getTokenType().

◆ $_value

PHPExcel_Calculation_FormulaToken::$_value
private

Definition at line 92 of file FormulaToken.php.

Referenced by getValue().

◆ TOKEN_SUBTYPE_CONCATENATION

const PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_CONCATENATION = 'Concatenation'

Definition at line 83 of file FormulaToken.php.

Referenced by PHPExcel_Calculation_FormulaParser\_parseToTokens().

◆ TOKEN_SUBTYPE_ERROR

const PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_ERROR = 'Error'

Definition at line 80 of file FormulaToken.php.

Referenced by PHPExcel_Calculation_FormulaParser\_parseToTokens().

◆ TOKEN_SUBTYPE_INTERSECTION

const PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_INTERSECTION = 'Intersection'

Definition at line 84 of file FormulaToken.php.

Referenced by PHPExcel_Calculation_FormulaParser\_parseToTokens().

◆ TOKEN_SUBTYPE_LOGICAL

const PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_LOGICAL = 'Logical'

Definition at line 79 of file FormulaToken.php.

Referenced by PHPExcel_Calculation_FormulaParser\_parseToTokens().

◆ TOKEN_SUBTYPE_MATH

const PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_MATH = 'Math'

Definition at line 82 of file FormulaToken.php.

Referenced by PHPExcel_Calculation_FormulaParser\_parseToTokens().

◆ TOKEN_SUBTYPE_NOTHING

const PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING = 'Nothing'

Definition at line 74 of file FormulaToken.php.

Referenced by PHPExcel_Calculation_FormulaParser\_parseToTokens().

◆ TOKEN_SUBTYPE_NUMBER

const PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NUMBER = 'Number'

Definition at line 78 of file FormulaToken.php.

Referenced by PHPExcel_Calculation_FormulaParser\_parseToTokens().

◆ TOKEN_SUBTYPE_RANGE

const PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_RANGE = 'Range'

Definition at line 81 of file FormulaToken.php.

Referenced by PHPExcel_Calculation_FormulaParser\_parseToTokens().

◆ TOKEN_SUBTYPE_START

const PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START = 'Start'

Definition at line 75 of file FormulaToken.php.

Referenced by PHPExcel_Calculation_FormulaParser\_parseToTokens().

◆ TOKEN_SUBTYPE_STOP

const PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP = 'Stop'

Definition at line 76 of file FormulaToken.php.

Referenced by PHPExcel_Calculation_FormulaParser\_parseToTokens().

◆ TOKEN_SUBTYPE_TEXT

const PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_TEXT = 'Text'

Definition at line 77 of file FormulaToken.php.

Referenced by PHPExcel_Calculation_FormulaParser\_parseToTokens().

◆ TOKEN_SUBTYPE_UNION

const PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_UNION = 'Union'

Definition at line 85 of file FormulaToken.php.

Referenced by PHPExcel_Calculation_FormulaParser\_parseToTokens().

◆ TOKEN_TYPE_ARGUMENT

const PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_ARGUMENT = 'Argument'

Definition at line 66 of file FormulaToken.php.

Referenced by PHPExcel_Calculation_FormulaParser\_parseToTokens().

◆ TOKEN_TYPE_FUNCTION

const PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION = 'Function'

Definition at line 64 of file FormulaToken.php.

Referenced by PHPExcel_Calculation_FormulaParser\_parseToTokens().

◆ TOKEN_TYPE_NOOP

const PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_NOOP = 'Noop'

Definition at line 62 of file FormulaToken.php.

◆ TOKEN_TYPE_OPERAND

const PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND = 'Operand'

Definition at line 63 of file FormulaToken.php.

Referenced by PHPExcel_Calculation_FormulaParser\_parseToTokens().

◆ TOKEN_TYPE_OPERATORINFIX

const PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX = 'OperatorInfix'

Definition at line 68 of file FormulaToken.php.

Referenced by PHPExcel_Calculation_FormulaParser\_parseToTokens().

◆ TOKEN_TYPE_OPERATORPOSTFIX

const PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPOSTFIX = 'OperatorPostfix'

Definition at line 69 of file FormulaToken.php.

Referenced by PHPExcel_Calculation_FormulaParser\_parseToTokens().

◆ TOKEN_TYPE_OPERATORPREFIX

const PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPREFIX = 'OperatorPrefix'

Definition at line 67 of file FormulaToken.php.

Referenced by PHPExcel_Calculation_FormulaParser\_parseToTokens().

◆ TOKEN_TYPE_SUBEXPRESSION

const PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION = 'Subexpression'

Definition at line 65 of file FormulaToken.php.

Referenced by PHPExcel_Calculation_FormulaParser\_parseToTokens().

◆ TOKEN_TYPE_UNKNOWN

const PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN = 'Unknown'

Definition at line 71 of file FormulaToken.php.

Referenced by PHPExcel_Calculation_FormulaParser\_parseToTokens().

◆ TOKEN_TYPE_WHITESPACE

const PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_WHITESPACE = 'Whitespace'

Definition at line 70 of file FormulaToken.php.

Referenced by PHPExcel_Calculation_FormulaParser\_parseToTokens().


The documentation for this class was generated from the following file: