001 // Copyright 2011 The Apache Software Foundation
002 //
003 // Licensed under the Apache License, Version 2.0 (the "License");
004 // you may not use this file except in compliance with the License.
005 // You may obtain a copy of the License at
006 //
007 // http://www.apache.org/licenses/LICENSE-2.0
008 //
009 // Unless required by applicable law or agreed to in writing, software
010 // distributed under the License is distributed on an "AS IS" BASIS,
011 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
012 // See the License for the specific language governing permissions and
013 // limitations under the License.
014
015 package org.apache.tapestry5.plastic;
016
017 /**
018 * Identifies the type of class referenced in a {@link PlasticClassEvent}.
019 *
020 * @see PlasticClassListener
021 */
022 public enum ClassType
023 {
024 /**
025 * A primary class, either created new or by transforming an existing class.
026 */
027 PRIMARY,
028
029 /** A supporting class, needed to implement some of the logic of the primary class. */
030 SUPPORT,
031
032 /**
033 * An implementation of {@link MethodInvocation}, needed to handle advice added to
034 * a method of a primary class.
035 */
036 METHOD_INVOCATION,
037
038 /**
039 * An inner class within a controlled package, which may have field accesses (to non-private
040 * fields visible to it) instrumented.
041 *
042 * @since 5.4
043 */
044 INNER;
045 }