Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * JBoss, Home of Professional Open Source
   * Copyright 2013, Red Hat, Inc., and individual contributors
   * by the @authors tag. See the copyright.txt in the distribution for a
   * full listing of individual contributors.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
  * http://www.apache.org/licenses/LICENSE-2.0
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 package org.jboss.weld.annotated.slim;
 
 import java.util.Set;
 
 
Holds SlimAnnotatedType and additional information attached to the type. This is a boot-time construct and should be released after bootstrap.

Parameters:
<T> the type
Author(s):
Jozef Hartinger
 
 public class SlimAnnotatedTypeContext<T> {
 
     public static <T> SlimAnnotatedTypeContext<T> of(SlimAnnotatedType<T> typeClassFileInfo classInfo,
             Set<ExtensionObserverMethodImpl<?, ?>> resolvedProcessAnnotatedTypeObserversClassTransformer transformer) {
         return new SlimAnnotatedTypeContext<T>(typeclassInforesolvedProcessAnnotatedTypeObserverstransformernull);
     }
 
     public static <T> SlimAnnotatedTypeContext<T> of(SlimAnnotatedType<T> typeClassTransformer transformer) {
         return new SlimAnnotatedTypeContext<T>(typenullnulltransformernull);
     }
 
     public static <T> SlimAnnotatedTypeContext<T> of(SlimAnnotatedType<T> typeClassTransformer transformerExtension extension) {
         return new SlimAnnotatedTypeContext<T>(typenullnulltransformerextension);
     }
 
     private final SlimAnnotatedType<T> type;
     private final ClassFileInfo classInfo;
     private final ClassTransformer transformer;
     private final Extension extension;
 
     private SlimAnnotatedTypeContext(SlimAnnotatedType<T> typeClassFileInfo classInfo,
             Set<ExtensionObserverMethodImpl<?, ?>> resolvedProcessAnnotatedTypeObserversClassTransformer transformerExtension extension) {
         this. = type;
         this. = classInfo;
         this. = resolvedProcessAnnotatedTypeObservers;
         this. = transformer;
         this. = extension;
     }

    

Returns:
the annotated type
 
     public SlimAnnotatedType<T> getAnnotatedType() {
         return ;
     }

    

Returns:
org.jboss.weld.resources.spi.ClassFileInfo describing the underlying class. This attribute is only available if the integrator provided org.jboss.weld.resources.spi.ClassFileServices and the underlying type is comes from scanning (not registered by an extension).
 
     public ClassFileInfo getClassInfo() {
         return ;
     }

    

Returns:
the set of ProcessAnnotatedType observer method to which the ProcessAnnotatedType event for this type is assignable. This attribute is only available if the integrator provided org.jboss.weld.resources.spi.ClassFileServices and the underlying type is comes from scanning (not registered by an extension).
 
         return ;
     }

    

Returns:
the extension that registered this annotated type or null if the type comes from scanning
 
     public Extension getExtension() {
         return ;
     }
 
     @Override
     public int hashCode() {
        return .hashCode();
    }
    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj instanceof SlimAnnotatedTypeContext<?>) {
            return .equals(SlimAnnotatedTypeContext.class.cast(obj).);
        }
        return false;
    }
    @Override
    public String toString() {
        return getClass().getSimpleName() + " for " + .toString();
    }
New to GrepCode? Check out our FAQ X