Example usage for org.eclipse.jdt.core.dom EnumConstantDeclaration toString

List of usage examples for org.eclipse.jdt.core.dom EnumConstantDeclaration toString

Introduction

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

Prototype

@Override
public final String toString() 

Source Link

Document

Returns a string representation of this node suitable for debugging purposes only.

Usage

From source file:fr.labri.harmony.rta.junit.jdt.JDTVisitorRTA.java

License:Open Source License

public boolean visit(EnumConstantDeclaration fd) {
    if (fd.resolveVariable() != null) {
        if (fd.resolveVariable().getDeclaringClass() != null) {
            String field = fd.resolveVariable().getDeclaringClass().getQualifiedName() + "."
                    + fd.resolveVariable().getName();
            hashes.put(field, MD5Generator.md5(fd.toString()));
            //Put the field in the database
            currentJavaMethod = getJavaMethod(field);
            currentJavaMethod/*w  w  w.j  a va2s . c o m*/
                    .setClassName(getJavaClass(fd.resolveVariable().getDeclaringClass().getQualifiedName()));
        }
    }
    return true;
}