Example usage for org.eclipse.jdt.internal.compiler.classfmt FieldInfo hasConstant

List of usage examples for org.eclipse.jdt.internal.compiler.classfmt FieldInfo hasConstant

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.compiler.classfmt FieldInfo hasConstant.

Prototype

public boolean hasConstant() 

Source Link

Document

Return true if the field has a constant value attribute, false otherwise.

Usage

From source file:io.takari.maven.plugins.compile.jdt.ClassfileDigester.java

License:Open Source License

private void updateField(FieldInfo fieldInfo) {
    // generic signature
    updateChars(fieldInfo.getGenericSignature());
    updateInt(fieldInfo.getModifiers());
    updateLong(fieldInfo.getTagBits() & TagBits.AnnotationDeprecated);
    updateAnnotations(fieldInfo.getAnnotations());
    updateChars(fieldInfo.getName());//from   ww  w  .  j a  va2  s . c o m
    updateChars(fieldInfo.getTypeName());
    updateBoolean(fieldInfo.hasConstant());
    if (fieldInfo.hasConstant()) {
        updateConstant(fieldInfo.getConstant());
    }
}