1 18 package org.objectweb.medor.expression.lib; 19 20 import org.objectweb.medor.expression.api.Expression; 21 import org.objectweb.medor.clone.lib.BasicCloneable; 22 import org.objectweb.jorm.type.api.PType; 23 import org.objectweb.util.monolog.Monolog; 24 import org.objectweb.util.monolog.api.Logger; 25 26 31 public abstract class BasicExpression extends BasicCloneable implements Expression { 32 33 protected PType type = null; 34 transient protected Logger logger; 35 36 public BasicExpression() { 37 logger = Monolog.getMonologFactory().getLogger(getClass().getName()); 38 } 39 40 public BasicExpression(PType type) { 41 this(); 42 this.type = type; 43 } 44 45 public BasicExpression(BasicExpression be) { 46 this(be.type); 47 } 48 49 public PType getType() { 50 return type; 51 } 52 53 public Object clone(Object clone, java.util.Map obj2clone) throws CloneNotSupportedException { 54 clone = super.clone(clone, obj2clone); 55 ((BasicExpression) clone).type = type; 56 ((BasicExpression) clone).logger = logger; 57 return clone; 58 } 59 } 60 | Popular Tags |