diff src/clojure/asm/commons/package.html @ 10:ef7dbbd6452c

added clojure source goodness
author Robert McIntyre <rlm@mit.edu>
date Sat, 21 Aug 2010 06:25:44 -0400
parents
children
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/clojure/asm/commons/package.html	Sat Aug 21 06:25:44 2010 -0400
     1.3 @@ -0,0 +1,48 @@
     1.4 +<html>
     1.5 +<!--
     1.6 + * ASM: a very small and fast Java bytecode manipulation framework
     1.7 + * Copyright (c) 2000-2005 INRIA, France Telecom
     1.8 + * All rights reserved.
     1.9 + *
    1.10 + * Redistribution and use in source and binary forms, with or without
    1.11 + * modification, are permitted provided that the following conditions
    1.12 + * are met:
    1.13 + * 1. Redistributions of source code must retain the above copyright
    1.14 + *    notice, this list of conditions and the following disclaimer.
    1.15 + * 2. Redistributions in binary form must reproduce the above copyright
    1.16 + *    notice, this list of conditions and the following disclaimer in the
    1.17 + *    documentation and/or other materials provided with the distribution.
    1.18 + * 3. Neither the name of the copyright holders nor the names of its
    1.19 + *    contributors may be used to endorse or promote products derived from
    1.20 + *    this software without specific prior written permission.
    1.21 + *
    1.22 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    1.23 + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    1.24 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    1.25 + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
    1.26 + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    1.27 + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    1.28 + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    1.29 + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    1.30 + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    1.31 + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
    1.32 + * THE POSSIBILITY OF SUCH DAMAGE.
    1.33 +-->
    1.34 +<body>
    1.35 +Provides some useful class and method adapters. <i>The preferred way of using
    1.36 +	these adapters is by chaining them together and to custom adapters (instead of
    1.37 +	inheriting from them)</i>. Indeed this approach provides more combination
    1.38 +possibilities than inheritance. For instance, suppose you want to implement an
    1.39 +adapter MyAdapter than needs sorted local variables and intermediate stack map
    1.40 +frame values taking into account the local variables sort. By using inheritance,
    1.41 +this would require MyAdapter to extend AnalyzerAdapter, itself extending
    1.42 +LocalVariablesSorter. But AnalyzerAdapter is not a subclass of
    1.43 +LocalVariablesSorter, so this is not possible. On the contrary, by using
    1.44 +delegation, you can make LocalVariablesSorter delegate to AnalyzerAdapter,
    1.45 +itself delegating to MyAdapter. In this case AnalyzerAdapter computes
    1.46 +intermediate frames based on the output of LocalVariablesSorter, and MyAdapter
    1.47 +can add new locals by calling the newLocal method on LocalVariablesSorter, and
    1.48 +can get the stack map frame state before each instruction by reading the locals
    1.49 +and stack fields in AnalyzerAdapter (this requires references from MyAdapter
    1.50 +back to LocalVariablesSorter and AnalyzerAdapter).
    1.51 +</body>
    1.52 \ No newline at end of file