Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members

CCM::StubExpr Class Reference

Inheritance diagram for CCM::StubExpr:

CCM::Expr List of all members.

Detailed Description

Stub expression.


Public Types

enum  Op {
  NEW, ID, ASSIGN, CALL,
  ELEMENT, SETELEMENT
}
 Possible operations. More...


Public Member Functions

 StubExpr (Ref id)
 Create a variable / stub property reference expression.

 StubExpr (Class stub, List args)
 Create new expression: new stub( args ).

 StubExpr (Ref id, Expr e)
 Create assignment expression.

 StubExpr (ArrayExpr array, IntExpr index)
 Create array element access expression to array[index].

 StubExpr (ArrayExpr array, IntExpr index, Expr value)
 Create array element assignment expression: array[index] = value.

 StubExpr (Ref id, List args)
 Create method call expression to method(args).

override Type type ()
 Return the expression type.

override Object eval ()
 Evaluate expression and return its value.

override Expr makeElementAssign (Expr value)
 Return an expression that assigns value to the element if called on an array element access expression.

override string ToString ()

Private Attributes

Op op
Class stubclass


Member Enumeration Documentation

enum CCM::StubExpr::Op
 

Possible operations.

Enumeration values:
NEW 
ID 
ASSIGN 
CALL 
ELEMENT 
SETELEMENT 


Constructor & Destructor Documentation

CCM::StubExpr::StubExpr Ref  id  ) 
 

Create a variable / stub property reference expression.

CCM::StubExpr::StubExpr Class  stub,
List  args
 

Create new expression: new stub( args ).

CCM::StubExpr::StubExpr Ref  id,
Expr  e
 

Create assignment expression.

Parameters:
id Reference to assign to
e Expression to assign to id

CCM::StubExpr::StubExpr ArrayExpr  array,
IntExpr  index
 

Create array element access expression to array[index].

CCM::StubExpr::StubExpr ArrayExpr  array,
IntExpr  index,
Expr  value
 

Create array element assignment expression: array[index] = value.

CCM::StubExpr::StubExpr Ref  id,
List  args
 

Create method call expression to method(args).


Member Function Documentation

override Object CCM::StubExpr::eval  )  [virtual]
 

Evaluate expression and return its value.

Stub access expressions add transitions to the currently evaluated process.

Implements CCM::Expr.

override Expr CCM::StubExpr::makeElementAssign Expr  value  )  [virtual]
 

Return an expression that assigns value to the element if called on an array element access expression.

Implements CCM::Expr.

override string CCM::StubExpr::ToString  ) 
 

override Type CCM::StubExpr::type  )  [virtual]
 

Return the expression type.

This is generally the type of the expression value, not of the Expr itself (e. g. "int", not "IntExpr").

Implements CCM::Expr.


Member Data Documentation

Op CCM::StubExpr::op [private]
 

Class CCM::StubExpr::stubclass [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Jun 21 01:20:50 2004 for cs2ccmb by doxygen 1.3.7