com.sun.msv.grammar

Class ExpressionPool.ClosedHash

public static final class ExpressionPool.ClosedHash extends Object implements Serializable

expression cache by closed hash. Special care has to be taken wrt threading. This implementation allows get and put method to be called simulatenously.
Constructor Summary
ClosedHash()
ClosedHash(ExpressionPool.ClosedHash parent)
Method Summary
Expressionget(int hash, Expression child, Class type)
Expressionget(Expression key)
ExpressiongetBinExp(Expression left, Expression right, Class type)
voidput(Expression newExp)
put method.

Constructor Detail

ClosedHash

public ClosedHash()

ClosedHash

public ClosedHash(ExpressionPool.ClosedHash parent)

Method Detail

get

public Expression get(int hash, Expression child, Class type)

get

public Expression get(Expression key)

getBinExp

public Expression getBinExp(Expression left, Expression right, Class type)

put

public void put(Expression newExp)
put method. No two threads can call this method simulatenously, and it's the caller's responsibility to enforce it.