org.objectweb.medor.expression.lib

Class BasicExpression

Implemented Interfaces:
java.lang.Cloneable, org.objectweb.medor.clone.api.Cloneable, Expression, Serializable
Known Direct Subclasses:
BasicOperand, BasicOperator

public abstract class BasicExpression
extends org.objectweb.medor.clone.lib.BasicCloneable
implements Expression

Is an abstract common class for expression. It contains the type and implements the cloning

Author:
S.Chassande-Barrioz

Field Summary

protected Logger
logger
protected PType
type

Constructor Summary

BasicExpression()
BasicExpression(PType type)
BasicExpression(BasicExpression be)

Method Summary

Object
clone(Object clone, java.util.Map obj2clone)
PType
getType()
It gets the result type of this expression

Methods inherited from class org.objectweb.medor.clone.lib.BasicCloneable

clone, clone, clone, getClone

Field Details

logger

protected Logger logger


type

protected PType type

Constructor Details

BasicExpression

public BasicExpression()


BasicExpression

public BasicExpression(PType type)


BasicExpression

public BasicExpression(BasicExpression be)

Method Details

clone

public Object clone(Object clone,
                    java.util.Map obj2clone)
            throws CloneNotSupportedException
Specified by:
clone in interface org.objectweb.medor.clone.api.Cloneable


getType

public PType getType()
It gets the result type of this expression
Specified by:
getType in interface Expression

Returns:
a PType object