Example usage for org.objectweb.asm Type hashCode

List of usage examples for org.objectweb.asm Type hashCode

Introduction

In this page you can find the example usage for org.objectweb.asm Type hashCode.

Prototype

@Override
public int hashCode() 

Source Link

Document

Returns a hash code value for this type.

Usage

From source file:com.sun.fortress.repository.ForeignJava.java

License:Open Source License

private long subsetHash(org.objectweb.asm.Type t, ClassNode cn) {
    long h = t.hashCode();
    BASet<MethodNode> methods = new BASet<MethodNode>(methodNodeComparator, cn.methods);
    for (MethodNode m : methods) {
        int access = m.access;
        if (isPublic(access)) {
            if (isStatic(access)) {
                h = h * MagicNumbers.s;//from  ww w.j  av a  2  s  .  co  m
            }
            Type rt = returnType(m);
            h = MagicNumbers.hashStepLong(h, MagicNumbers.M, rt.hashCode());
            Type[] pts = argumentTypes(m);
            h = MagicNumbers.hashArrayLong(pts, h);
        }
    }
    return h;
}