Examples of TraitClass


Examples of tv.porst.swfretools.parser.structures.TraitClass

  /**
   * Creates the child nodes of the node.
   */
  private void createChildren() {
    if (getUserObject() instanceof TraitClass) {
      final TraitClass cgradient = (TraitClass) getUserObject();
      addNode("slot_id", cgradient.getSlotId());
      addNode("class_index", cgradient.getClassIndex());
    }
    else if (getUserObject() instanceof TraitFunction) {
      final TraitFunction cgradient = (TraitFunction) getUserObject();
      addNode("slot_id", cgradient.getSlotId());
      addNode("function", cgradient.getFunction());
    }
    else if (getUserObject() instanceof TraitMethod) {
      final TraitMethod cgradient = (TraitMethod) getUserObject();
      addNode("disp_id", cgradient.getDispId());
      addNode("method", cgradient.getMethod());
    }
    else if (getUserObject() instanceof TraitSlot) {
      final TraitSlot cgradient = (TraitSlot) getUserObject();
      addNode("SpreadMode", cgradient.getSlotId());
      addNode("InterpolationMode", cgradient.getTypeName());
      addNode("NumGradients", cgradient.getvIndex());
      addNode("GradientRecords", cgradient.getvKind());
    }
    else {
      throw new IllegalStateException("Error: Unknown trait kind type");
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.