Example usage for org.eclipse.jdt.internal.compiler.codegen CodeStream reset

List of usage examples for org.eclipse.jdt.internal.compiler.codegen CodeStream reset

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.compiler.codegen CodeStream reset.

Prototype

public void reset(LambdaExpression lambda, ClassFile targetClassFile) 

Source Link

Usage

From source file:org.eclipse.objectteams.otdt.internal.core.compiler.ast.TypeContainerMethod.java

License:Open Source License

/**
 * Override method from AbstractMethodDeclaration: only generate code
 * for the wrapped type, not for the method itself.
 *//*from ww  w .  ja v a 2s.  co m*/
public void generateCode(ClassScope classScope, ClassFile classFile) {
    CodeStream codeStream = classFile.codeStream;
    codeStream.reset(this, classFile);
    this.statements[0].generateCode(this.scope, codeStream);
}