com.caucho.quercus.expr
Class AbstractUnaryExprGenerator

java.lang.Object
  extended by com.caucho.quercus.expr.ExprGenerator
      extended by com.caucho.quercus.expr.AbstractUnaryExprGenerator

public abstract class AbstractUnaryExprGenerator
extends ExprGenerator

Represents a PHP boolean negation


Field Summary
 
Fields inherited from class com.caucho.quercus.expr.ExprGenerator
COMPILE_ARG_MAX
 
Constructor Summary
AbstractUnaryExprGenerator()
           
AbstractUnaryExprGenerator(Location location)
           
 
Method Summary
 ExprType analyze(AnalyzeInfo info)
          Analyze the expression
protected abstract  ExprGenerator getExpr()
          Returns the child expression.
 VarState getVarState(VarExprPro var, VarExprPro owner)
          Returns the variables state.
 boolean isVarAssigned(VarExpr var)
          Returns true if the variable is ever assigned.
 
Methods inherited from class com.caucho.quercus.expr.ExprGenerator
analyzeAssign, analyzeSetModified, analyzeSetPostIncrement, analyzeSetReference, analyzeTop, analyzeUnset, combineBinaryVarState, generate, generateAppend, generateArg, generateArray, generateAssign, generateAssignBoolean, generateAssignClose, generateAssignOpen, generateAssignRef, generateBoolean, generateChar, generateCopy, generateDirty, generateDouble, generateExpr, generateGetOut, generateInt, generateIsset, generateListEachStatement, generateLong, generateModifiedRead, generateObject, generatePrint, generateRef, generateRefArg, generateReturn, generateReturnRef, generateStatement, generateString, generateStringValue, generateTop, generateType, generateUnset, generateUnsetArray, generateValue, generateValueArg, generateVar, getConstant, getLiteral, getLocation, getType, isAssignment, isBoolean, isConstant, isDefault, isDouble, isLiteral, isLong, isNumber, isString, isVar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractUnaryExprGenerator

public AbstractUnaryExprGenerator()

AbstractUnaryExprGenerator

public AbstractUnaryExprGenerator(Location location)
Method Detail

getExpr

protected abstract ExprGenerator getExpr()
Returns the child expression.


analyze

public ExprType analyze(AnalyzeInfo info)
Analyze the expression

Specified by:
analyze in class ExprGenerator

getVarState

public VarState getVarState(VarExprPro var,
                            VarExprPro owner)
Returns the variables state.

Parameters:
var - the variables to test
owner - the owning expression

isVarAssigned

public boolean isVarAssigned(VarExpr var)
Returns true if the variable is ever assigned.

Overrides:
isVarAssigned in class ExprGenerator
Parameters:
var - the variable to test