org.bridj
Interface StructIO.Customizer

All Known Implementing Classes:
STL, StructIO.DefaultCustomizer, TimeT.timeval_customizer
Enclosing class:
StructIO

Deprecated. The StructIO API is subject to future changes. Use this with care and be prepared to migrate your code...

@Deprecated
public static interface StructIO.Customizer

Interface for type customizers that can be used to perform platform-specific type adjustments or other hacks.
A type customizer can be specified with Struct.customizer().
Each implementation must have a default constructor, and an unique instance of each implementation class will be cached by StructIO.getCustomizer(java.lang.Class).


Method Summary
 void afterBuild(StructIO io)
          Deprecated. Called after everything is setup in the StructIO.
 void afterLayout(StructIO io, List<StructIO.AggregatedFieldDesc> aggregatedFields)
          Deprecated. This method can alter the aggregated fields and may even call again the performLayout(aggregatedFields) method.
 void beforeAggregation(StructIO io, List<StructIO.FieldDecl> fieldDecls)
          Deprecated. Last chance to remove field declarations
 void beforeLayout(StructIO io, List<StructIO.AggregatedFieldDesc> aggregatedFields)
          Deprecated. Last chance to remove aggregated fields
 

Method Detail

beforeAggregation

void beforeAggregation(StructIO io,
                       List<StructIO.FieldDecl> fieldDecls)
Deprecated. 
Last chance to remove field declarations


beforeLayout

void beforeLayout(StructIO io,
                  List<StructIO.AggregatedFieldDesc> aggregatedFields)
Deprecated. 
Last chance to remove aggregated fields


afterLayout

void afterLayout(StructIO io,
                 List<StructIO.AggregatedFieldDesc> aggregatedFields)
Deprecated. 
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.


afterBuild

void afterBuild(StructIO io)
Deprecated. 
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.



Copyright © 2009-2012. All Rights Reserved.