Example usage for org.eclipse.jdt.core.dom NullLiteral NullLiteral

List of usage examples for org.eclipse.jdt.core.dom NullLiteral NullLiteral

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.dom NullLiteral NullLiteral.

Prototype

NullLiteral(AST ast) 

Source Link

Document

Creates a new unparented null literal node owned by the given AST.

Usage

From source file:org.eclipse.jdt.core.dom.ASTConverter.java

License:Open Source License

public NullLiteral convert(org.eclipse.jdt.internal.compiler.ast.NullLiteral expression) {
    final NullLiteral literal = new NullLiteral(this.ast);
    if (this.resolveBindings) {
        this.recordNodes(literal, expression);
    }//from   ww  w.  j  av  a  2  s. com
    literal.setSourceRange(expression.sourceStart, expression.sourceEnd - expression.sourceStart + 1);
    return literal;
}