com.hyper9.simdk.codegen.impls
Class EnumTypeProcessorImpl

java.lang.Object
  extended by com.hyper9.simdk.codegen.impls.TypeProcessorImpl<EnumType>
      extended by com.hyper9.simdk.codegen.impls.EnumTypeProcessorImpl
All Implemented Interfaces:
TypeProcessor<EnumType>

public class EnumTypeProcessorImpl
extends TypeProcessorImpl<EnumType>

A type processor for Enum types.

Author:
akutz

Constructor Summary
EnumTypeProcessorImpl()
           
 
Method Summary
 void processClass(Class<?> clazz, String sourceFilePath)
          Processes a class that is being enumerated from a package.
 boolean shouldProcess(Class<?> clazz, String sourceFilePath)
          Gets a flag indicating whether or not processClass should be invoked on this class.
 
Methods inherited from class com.hyper9.simdk.codegen.impls.TypeProcessorImpl
getProcessedMetaTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumTypeProcessorImpl

public EnumTypeProcessorImpl()
Method Detail

processClass

public void processClass(Class<?> clazz,
                         String sourceFilePath)
                  throws Exception
Description copied from interface: TypeProcessor
Processes a class that is being enumerated from a package.

Parameters:
clazz - The class.
sourceFilePath - The class's source file path.
Throws:
Exception - When an error occurs.

shouldProcess

public boolean shouldProcess(Class<?> clazz,
                             String sourceFilePath)
                      throws Exception
Description copied from interface: TypeProcessor
Gets a flag indicating whether or not processClass should be invoked on this class.

Parameters:
clazz - The class to test.
sourceFilePath - The class's source file path.
Returns:
A flag indicating whether or not processClass should be invoked on this class.
Throws:
Exception - When an error occurs.


Copyright © 2009-2010 Hyper9. All Rights Reserved.