WACT_TEMPLATE
[ class tree: WACT_TEMPLATE ] [ index: WACT_TEMPLATE ] [ all elements ]

Class: ConstantProperty

Source Location: /framework/template/compiler/property/constant.inc.php

Class Overview

CompilerProperty
   |
   --ConstantProperty

A property representing a constant value.

Version:

  • $Id: property.inc.php,v 1.1 2004/05/31 22:18:50 jeffmoore Exp $

Variables

Methods


Inherited Variables

Inherited Methods

Class: CompilerProperty

CompilerProperty::activate()
CompilerProperty::generateExpression()
Generate the code to read the data value at run time Must generate only a valid PHP Expression.
CompilerProperty::generatePostStatement()
Generate tear down code for an expression reference
CompilerProperty::generatePreStatement()
Generate setup code for an expression reference
CompilerProperty::generateScopeEntry()
Generate setup code when a property enters a scope in which it is valid.
CompilerProperty::generateScopeExit()
Generate tear down code when a property enters a scope in which it is valid.
CompilerProperty::getValue()
Return this value as a PHP value
CompilerProperty::isActive()
CompilerProperty::isConstant()
Does this property refer to a constant value at compile time?

Class Details

A property representing a constant value.
version:  $Id: property.inc.php,v 1.1 2004/05/31 22:18:50 jeffmoore Exp $
access:  public

Class Variables


$value =

Type:   mixed

Class Methods


constructor ConstantProperty



ConstantProperty ConstantProperty( mixed $value)

method generateExpression

Generate the code to read the data value at run time Must generate only a valid PHP Expression.

void generateExpression( CodeWriter &$code)

API Tags:

access:  protected
Overrides CompilerProperty::generateExpression() (Generate the code to read the data value at run time Must generate only a valid PHP Expression.)

Parameters:

CodeWriter   &$code  

method getValue

Return this value as a PHP value

String getValue( )

API Tags:

access:  public
Overrides CompilerProperty::getValue() (Return this value as a PHP value)

method isConstant

Does this property refer to a constant value at compile time?

Boolean isConstant( )

API Tags:

access:  public
Overrides CompilerProperty::isConstant() (Does this property refer to a constant value at compile time?)

method prepare



void prepare( )
WACT: Copyright 2003 Procata, Inc. Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html)
Documentation generated on Sun, 28 Nov 2004 19:44:53 -0800 by phpDocumentor 1.2.3