Свойство | Type | Description | |
---|---|---|---|
$typeOf | maps class names to data types | ||
$value | value of the literal type |
Méthode | Description | |
---|---|---|
__construct ( string $value = null, $context ) : SassLiteral | class constructor | |
__get ( string $name ) : mixed | Getter. | |
__toString ( ) | ||
addChild ( sassLiteral $sassLiteral ) | Adds a child object to this. | |
assertInRange ( SassLiteral $literal, float $min, float $max, string $units = '' ) | Asserts that the value of a literal is within the expected range | |
assertType ( $literal, string $type ) | Asserts that the literal is the expected type | |
getChildren ( ) | ||
getTypeOf ( ) : string | Returns the type of this | |
getValue ( ) : mixed | Returns the value of this | |
isa ( string $subject ) : mixed | Returns a value indicating if a token of this type can be matched at the start of the subject string. | |
op_and ( sassLiteral $other ) : SassLiteral | The SassScript and operation. | |
op_assign ( $other ) | ||
op_bw_and ( string $other ) : string | Bitwise AND the value of other and this value | |
op_bw_not ( ) : string | Bitwise NOT the value of other and the value of this | |
op_bw_or ( SassNumber $other ) : string | Bitwise OR the value of other and this value | |
op_bw_xor ( SassNumber $other ) : string | Bitwise XOR the value of other and the value of this | |
op_comma ( sassLiteral $other ) : sassString | SassScript ',' operation. | |
op_concat ( sassLiteral $other ) : sassString | The SassScript default operation (e.g. $a $b, "foo" "bar"). | |
op_div ( SassLiteral $other ) : sassString | SassScript '/' operation. | |
op_eq ( sassLiteral $other ) : SassBoolean | The SassScript == operation. | |
op_gt ( sassLiteral $other ) : SassBoolean | The SassScript > operation. | |
op_gte ( sassLiteral $other ) : SassBoolean | The SassScript >= operation. | |
op_lt ( sassLiteral $other ) : SassBoolean | The SassScript < operation. | |
op_lte ( sassLiteral $other ) : SassBoolean | The SassScript <= operation. | |
op_minus ( SassLiteral $other ) : sassString | SassScript '-' operation. | |
op_modulo ( SassLiteral $other ) : SassLiteral | SassScript '%' operation. | |
op_neq ( sassLiteral $other ) : SassBoolean | The SassScript != operation. | |
op_not ( ) : SassBoolean | The SassScript not operation. | |
op_or ( sassLiteral $other ) : SassLiteral | The SassScript or operation. | |
op_plus ( sassLiteral $other ) : sassString | SassScript '+' operation. | |
op_shiftl ( SassNumber $other ) : string | Shifts the value of this left by the number of bits given in value | |
op_shiftr ( SassNumber $other ) : string | Shifts the value of this right by the number of bits given in value | |
op_times ( SassLiteral $other ) : sassString | SassScript '*' operation. | |
op_xor ( sassLiteral $other ) : SassBoolean | The SassScript xor operation. | |
render ( ) | ||
toBoolean ( ) : boolean | Returns the boolean representation of the value of this | |
toString ( ) : string | Returns a string representation of the value. |
public __construct ( string $value = null, $context ) : SassLiteral | ||
$value | string | value of the literal type |
Résultat | SassLiteral |
public addChild ( sassLiteral $sassLiteral ) | ||
$sassLiteral | sassLiteral | the child object |
public static assertType ( $literal, string $type ) | ||
$type | string | expected type |
public op_and ( sassLiteral $other ) : SassLiteral | ||
$other | sassLiteral | the value to and with this |
Résultat | SassLiteral | other if this is boolean true, this if false |
public op_comma ( sassLiteral $other ) : sassString | ||
$other | sassLiteral | the value to concatenate with a comma to this |
Résultat | sassString | the string values of this and other seperated by "," |
public op_concat ( sassLiteral $other ) : sassString | ||
$other | sassLiteral | the value to concatenate with a space to this |
Résultat | sassString | the string values of this and other seperated by " " |
public op_div ( SassLiteral $other ) : sassString | ||
$other | SassLiteral | value to divide by |
Résultat | sassString | the string values of this and other seperated by '/' |
public op_eq ( sassLiteral $other ) : SassBoolean | ||
$other | sassLiteral | the value to compare to this |
Résultat | SassBoolean | SassBoolean object with the value true if this and other are equal, false if they are not |
public op_gt ( sassLiteral $other ) : SassBoolean | ||
$other | sassLiteral | the value to compare to this |
Résultat | SassBoolean | SassBoolean object with the value true if the values of this is greater than the value of other, false if it is not |
public op_gte ( sassLiteral $other ) : SassBoolean | ||
$other | sassLiteral | the value to compare to this |
Résultat | SassBoolean | SassBoolean object with the value true if the values of this is greater than or equal to the value of other, false if it is not |
public op_lt ( sassLiteral $other ) : SassBoolean | ||
$other | sassLiteral | the value to compare to this |
Résultat | SassBoolean | SassBoolean object with the value true if the values of this is less than the value of other, false if it is not |
public op_lte ( sassLiteral $other ) : SassBoolean | ||
$other | sassLiteral | the value to compare to this |
Résultat | SassBoolean | SassBoolean object with the value true if the values of this is less than or equal to the value of other, false if it is not |
public op_minus ( SassLiteral $other ) : sassString | ||
$other | SassLiteral | value to subtract |
Résultat | sassString | the string values of this and other seperated by '-' |
public op_modulo ( SassLiteral $other ) : SassLiteral | ||
$other | SassLiteral | value to take the modulus of |
Résultat | SassLiteral | result |
public op_neq ( sassLiteral $other ) : SassBoolean | ||
$other | sassLiteral | the value to compare to this |
Résultat | SassBoolean | SassBoolean object with the value true if this and other are not equal, false if they are |
public op_not ( ) : SassBoolean | ||
Résultat | SassBoolean | SassBoolean object with the value true if the boolean of this is false or false if it is true |
public op_or ( sassLiteral $other ) : SassLiteral | ||
$other | sassLiteral | the value to or with this |
Résultat | SassLiteral | this if this is boolean true, other if false |
public op_plus ( sassLiteral $other ) : sassString | ||
$other | sassLiteral | value to add |
Résultat | sassString | the string values of this and other with no seperation |
public op_times ( SassLiteral $other ) : sassString | ||
$other | SassLiteral | value to multiply by |
Résultat | sassString | the string values of this and other seperated by '*' |
public op_xor ( sassLiteral $other ) : SassBoolean | ||
$other | sassLiteral | the value to xor with this |
Résultat | SassBoolean | SassBoolean object with the value true if this or other, but not both, are true, false if not |