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

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

Introduction

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

Prototype

@Override
public Constant getConstant() 

Source Link

Document

Return the constant of the field.

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.ja  v  a  2s . c  o  m
    updateChars(fieldInfo.getTypeName());
    updateBoolean(fieldInfo.hasConstant());
    if (fieldInfo.hasConstant()) {
        updateConstant(fieldInfo.getConstant());
    }
}