org.fusesource.amqp.generator
Class AmqpDefinedType

java.lang.Object
  extended by org.fusesource.amqp.generator.AmqpDefinedType
Direct Known Subclasses:
DescribedType, PrimitiveType, RestrictedType

public abstract class AmqpDefinedType
extends java.lang.Object


Field Summary
protected  com.sun.codemodel.JCodeModel cm
           
protected  com.sun.codemodel.JMethod decodeFrom
           
protected  com.sun.codemodel.JDefinedClass definedClass
           
protected  com.sun.codemodel.JMethod encodeTo
           
protected  Generator generator
           
protected  com.sun.codemodel.JMethod getArrayConstructor
           
protected  com.sun.codemodel.JMethod read
           
protected  com.sun.codemodel.JMethod size
           
protected  com.sun.codemodel.JMethod sizeOfBody
           
protected  com.sun.codemodel.JMethod sizeOfConstructor
           
protected  Type type
           
protected  com.sun.codemodel.JMethod write
           
protected  com.sun.codemodel.JMethod writeBody
           
protected  com.sun.codemodel.JMethod writeConstructor
           
 
Constructor Summary
AmqpDefinedType(Generator generator, java.lang.String className, Type type)
           
 
Method Summary
 com.sun.codemodel.JDefinedClass cls()
           
protected abstract  void createGetArrayConstructor()
           
protected abstract  void createInitialFields()
           
protected abstract  void createStaticBlock()
           
 com.sun.codemodel.JMethod decodeFrom()
           
 com.sun.codemodel.JMethod encodeTo()
           
protected  void init()
           
 com.sun.codemodel.JMethod read()
           
 com.sun.codemodel.JMethod size()
           
 com.sun.codemodel.JMethod sizeOfBody()
           
 com.sun.codemodel.JMethod sizeOfConstructor()
           
 com.sun.codemodel.JMethod write()
           
 com.sun.codemodel.JMethod writeBody()
           
 com.sun.codemodel.JMethod writeConstructor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cm

protected com.sun.codemodel.JCodeModel cm

generator

protected Generator generator

type

protected Type type

definedClass

protected com.sun.codemodel.JDefinedClass definedClass

write

protected com.sun.codemodel.JMethod write

writeConstructor

protected com.sun.codemodel.JMethod writeConstructor

writeBody

protected com.sun.codemodel.JMethod writeBody

read

protected com.sun.codemodel.JMethod read

encodeTo

protected com.sun.codemodel.JMethod encodeTo

decodeFrom

protected com.sun.codemodel.JMethod decodeFrom

getArrayConstructor

protected com.sun.codemodel.JMethod getArrayConstructor

size

protected com.sun.codemodel.JMethod size

sizeOfConstructor

protected com.sun.codemodel.JMethod sizeOfConstructor

sizeOfBody

protected com.sun.codemodel.JMethod sizeOfBody
Constructor Detail

AmqpDefinedType

public AmqpDefinedType(Generator generator,
                       java.lang.String className,
                       Type type)
                throws com.sun.codemodel.JClassAlreadyExistsException
Throws:
com.sun.codemodel.JClassAlreadyExistsException
Method Detail

init

protected void init()

createGetArrayConstructor

protected abstract void createGetArrayConstructor()

createStaticBlock

protected abstract void createStaticBlock()

createInitialFields

protected abstract void createInitialFields()

size

public com.sun.codemodel.JMethod size()

writeConstructor

public com.sun.codemodel.JMethod writeConstructor()

writeBody

public com.sun.codemodel.JMethod writeBody()

sizeOfConstructor

public com.sun.codemodel.JMethod sizeOfConstructor()

sizeOfBody

public com.sun.codemodel.JMethod sizeOfBody()

write

public com.sun.codemodel.JMethod write()

read

public com.sun.codemodel.JMethod read()

encodeTo

public com.sun.codemodel.JMethod encodeTo()

decodeFrom

public com.sun.codemodel.JMethod decodeFrom()

cls

public com.sun.codemodel.JDefinedClass cls()


Copyright © 2012 FuseSource. All Rights Reserved.