org.bridj
Class StructIO.DefaultCustomizer

java.lang.Object
  extended by org.bridj.StructIO.DefaultCustomizer
All Implemented Interfaces:
StructIO.Customizer
Direct Known Subclasses:
STL, TimeT.timeval_customizer
Enclosing class:
StructIO

public static class StructIO.DefaultCustomizer
extends Object
implements StructIO.Customizer


Constructor Summary
StructIO.DefaultCustomizer()
           
 
Method Summary
 void afterBuild(StructIO io)
          Called after everything is setup in the StructIO.
 void afterLayout(StructIO io, List<StructIO.AggregatedFieldDesc> aggregatedFields)
          This method can alter the aggregated fields and may even call again the performLayout(aggregatedFields) method.
 void beforeAggregation(StructIO io, List<StructIO.FieldDecl> fieldDecls)
          Last chance to remove field declarations
 void beforeLayout(StructIO io, List<StructIO.AggregatedFieldDesc> aggregatedFields)
          Last chance to remove aggregated fields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StructIO.DefaultCustomizer

public StructIO.DefaultCustomizer()
Method Detail

beforeAggregation

public void beforeAggregation(StructIO io,
                              List<StructIO.FieldDecl> fieldDecls)
Description copied from interface: StructIO.Customizer
Last chance to remove field declarations

Specified by:
beforeAggregation in interface StructIO.Customizer

beforeLayout

public void beforeLayout(StructIO io,
                         List<StructIO.AggregatedFieldDesc> aggregatedFields)
Description copied from interface: StructIO.Customizer
Last chance to remove aggregated fields

Specified by:
beforeLayout in interface StructIO.Customizer

afterLayout

public void afterLayout(StructIO io,
                        List<StructIO.AggregatedFieldDesc> aggregatedFields)
Description copied from interface: StructIO.Customizer
This method can alter the aggregated fields and may even call again the performLayout(aggregatedFields) method. This is before field offsets and sizes are propagated to field declarations.

Specified by:
afterLayout in interface StructIO.Customizer

afterBuild

public void afterBuild(StructIO io)
Description copied from interface: StructIO.Customizer
Called after everything is setup in the StructIO.
It is the most dangerous callback, here it's advised to only call the prependBytes, appendBytes and setFieldOffset methods.

Specified by:
afterBuild in interface StructIO.Customizer


Copyright © 2009-2012. All Rights Reserved.