public override bool declareClassAndMetaclass() { if (IsVerbose) { Console.WriteLine("Declaring trait: #" + Name); } thisClass = null; if (baseEnvironment == null) { thisClass = objectSpace.newTrait(Name); } else { thisClass = baseEnvironment.defineTrait(Name, AccessPrivilegeLevel.Public, null); } thisMetaclass = thisClass.ClassTrait; return(true); }
public override T applyToClassTrait(ESClassTrait operand) { return(operation.applyToClassTrait(operand)); }
public virtual T applyToClassTrait(ESClassTrait operand) { return(applyToESObject(operand)); }