Example usage for org.eclipse.jdt.internal.compiler.env ClassSignature getTypeName

List of usage examples for org.eclipse.jdt.internal.compiler.env ClassSignature getTypeName

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.compiler.env ClassSignature getTypeName.

Prototype

public char[] getTypeName() 

Source Link

Usage

From source file:com.codenvy.ide.ext.java.server.internal.core.search.indexing.BinaryIndexer.java

License:Open Source License

private void addPairValue(Object pairValue) {
    if (pairValue instanceof EnumConstantSignature) {
        EnumConstantSignature enumConstant = (EnumConstantSignature) pairValue;
        addTypeReference(replace('/', '.', Signature.toCharArray(enumConstant.getTypeName())));
        addNameReference(enumConstant.getEnumConstantName());
    } else if (pairValue instanceof ClassSignature) {
        ClassSignature classConstant = (ClassSignature) pairValue;
        addTypeReference(replace('/', '.', Signature.toCharArray(classConstant.getTypeName())));
    } else if (pairValue instanceof IBinaryAnnotation) {
        addBinaryAnnotation((IBinaryAnnotation) pairValue);
    } else if (pairValue instanceof Object[]) {
        Object[] objects = (Object[]) pairValue;
        for (int i = 0, l = objects.length; i < l; i++) {
            addPairValue(objects[i]);/*from   w w w .  j  a  v a2 s  .  c om*/
        }
    }
}