List of usage examples for org.eclipse.jdt.internal.compiler.ast FieldDeclaration generateCode
@Override public void generateCode(BlockScope currentScope, CodeStream codeStream)
From source file:org.eclipse.objectteams.otdt.internal.core.compiler.ast.RoleInitializationMethod.java
License:Open Source License
/** * During generateCode this is invoked right before generating the return opcode. *///from w w w. j av a 2 s .c om protected void endOfMethodHook(ClassFile classfile) { // basically taken from ConstructorDeclaration.internalGenerateCode TypeDeclaration declaringType = this.scope.classScope().referenceContext; // generate user field initialization if (declaringType.fields != null) { for (int i = 0, max = declaringType.fields.length; i < max; i++) { FieldDeclaration fieldDecl; if (!(fieldDecl = declaringType.fields[i]).isStatic()) { fieldDecl.generateCode(this.scope, classfile.codeStream); } } } }