类 Mixin


  • public abstract class Mixin
    extends java.lang.Object
    Mixin allows multiple objects to be combined into a single larger object. The methods in the generated object simply call the original methods in the underlying "delegate" objects.
    版本:
    $Id: Mixin.java,v 1.7 2005/09/27 11:42:27 baliuka Exp $
    作者:
    Chris Nokleberg
    • 嵌套类概要

      嵌套类 
      修饰符和类型 说明
      static class  Mixin.Generator  
    • 构造器概要

      构造器 
      构造器 说明
      Mixin()  
    • 方法概要

      所有方法 静态方法 实例方法 抽象方法 具体方法 
      修饰符和类型 方法 说明
      static Mixin create​(java.lang.Class[] interfaces, java.lang.Object[] delegates)
      Helper method to create an interface mixin.
      static Mixin create​(java.lang.Object[] delegates)
      Helper method to create an interface mixin.
      static Mixin createBean​(java.lang.ClassLoader loader, java.lang.Object[] beans)
      Helper method to create a bean mixin.
      static Mixin createBean​(java.lang.Object[] beans)  
      static java.lang.Class[] getClasses​(java.lang.Object[] delegates)  
      abstract Mixin newInstance​(java.lang.Object[] delegates)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • STYLE_INTERFACES

        public static final int STYLE_INTERFACES
        另请参阅:
        常量字段值
      • STYLE_BEANS

        public static final int STYLE_BEANS
        另请参阅:
        常量字段值
      • STYLE_EVERYTHING

        public static final int STYLE_EVERYTHING
        另请参阅:
        常量字段值
    • 构造器详细资料

      • Mixin

        public Mixin()
    • 方法详细资料

      • newInstance

        public abstract Mixin newInstance​(java.lang.Object[] delegates)
      • create

        public static Mixin create​(java.lang.Object[] delegates)
        Helper method to create an interface mixin. For finer control over the generated instance, use a new instance of Mixin instead of this static method. TODO
      • create

        public static Mixin create​(java.lang.Class[] interfaces,
                                   java.lang.Object[] delegates)
        Helper method to create an interface mixin. For finer control over the generated instance, use a new instance of Mixin instead of this static method. TODO
      • createBean

        public static Mixin createBean​(java.lang.Object[] beans)
      • createBean

        public static Mixin createBean​(java.lang.ClassLoader loader,
                                       java.lang.Object[] beans)
        Helper method to create a bean mixin. For finer control over the generated instance, use a new instance of Mixin instead of this static method. TODO
      • getClasses

        public static java.lang.Class[] getClasses​(java.lang.Object[] delegates)