001    package org.bridj;
002    import org.bridj.ann.*;
003    
004    public class ComplexDouble extends StructObject {
005        @Field(0) 
006        public double real() {
007            return this.io.getDoubleField(this, 0);
008        }
009        @Field(0) 
010        public ComplexDouble real(double real) {
011            this.io.setDoubleField(this, 0, real);
012            return this;
013        }
014        @Field(1) 
015        public double imag() {
016            return this.io.getDoubleField(this, 0);
017        }
018        @Field(1) 
019        public ComplexDouble imag(double imag) {
020            this.io.setDoubleField(this, 0, imag);
021            return this;
022        }
023    }