public SyntheticMethodBinding addSyntheticMethod(ReferenceExpression ref) { if (!isPrototype()) throw new IllegalStateException(); if (!ref.isSerializable) return null; if (this.synthetics == null) this.synthetics = new HashMap[MAX_SYNTHETICS]; if (this.synthetics[SourceTypeBinding.METHOD_EMUL] == null) this.synthetics[SourceTypeBinding.METHOD_EMUL] = new HashMap(5); SyntheticMethodBinding lambdaMethod = null; SyntheticMethodBinding[] lambdaMethods = (SyntheticMethodBinding[]) this.synthetics[SourceTypeBinding.METHOD_EMUL].get(ref); if (lambdaMethods == null) { lambdaMethod = new SyntheticMethodBinding(ref, this); this.synthetics[SourceTypeBinding.METHOD_EMUL].put(ref, lambdaMethods = new SyntheticMethodBinding[1]); lambdaMethods[0] = lambdaMethod; } else { lambdaMethod = lambdaMethods[0]; } // Create a $deserializeLambda$ method, one is shared amongst all lambdas addDeserializeLambdaMethod(); return lambdaMethod; } private void addDeserializeLambdaMethod() {
public SyntheticMethodBinding addSyntheticMethod(ReferenceExpression ref) { if (!isPrototype()) throw new IllegalStateException(); if (!ref.isSerializable) return null; if (this.synthetics == null) this.synthetics = new HashMap[MAX_SYNTHETICS]; if (this.synthetics[SourceTypeBinding.METHOD_EMUL] == null) this.synthetics[SourceTypeBinding.METHOD_EMUL] = new HashMap(5); SyntheticMethodBinding lambdaMethod = null; SyntheticMethodBinding[] lambdaMethods = (SyntheticMethodBinding[]) this.synthetics[SourceTypeBinding.METHOD_EMUL].get(ref); if (lambdaMethods == null) { lambdaMethod = new SyntheticMethodBinding(ref, this); this.synthetics[SourceTypeBinding.METHOD_EMUL].put(ref, lambdaMethods = new SyntheticMethodBinding[1]); lambdaMethods[0] = lambdaMethod; } else { lambdaMethod = lambdaMethods[0]; } // Create a $deserializeLambda$ method, one is shared amongst all lambdas addDeserializeLambdaMethod(); return lambdaMethod; } private void addDeserializeLambdaMethod() {
public SyntheticMethodBinding addSyntheticMethod(ReferenceExpression ref) { if (!isPrototype()) throw new IllegalStateException(); if (!ref.isSerializable) return null; if (this.synthetics == null) this.synthetics = new HashMap[MAX_SYNTHETICS]; if (this.synthetics[SourceTypeBinding.METHOD_EMUL] == null) this.synthetics[SourceTypeBinding.METHOD_EMUL] = new HashMap(5); SyntheticMethodBinding lambdaMethod = null; SyntheticMethodBinding[] lambdaMethods = (SyntheticMethodBinding[]) this.synthetics[SourceTypeBinding.METHOD_EMUL].get(ref); if (lambdaMethods == null) { lambdaMethod = new SyntheticMethodBinding(ref, this); this.synthetics[SourceTypeBinding.METHOD_EMUL].put(ref, lambdaMethods = new SyntheticMethodBinding[1]); lambdaMethods[0] = lambdaMethod; } else { lambdaMethod = lambdaMethods[0]; } // Create a $deserializeLambda$ method, one is shared amongst all lambdas addDeserializeLambdaMethod(); return lambdaMethod; } private void addDeserializeLambdaMethod() {
public SyntheticMethodBinding addSyntheticMethod(LambdaExpression lambda) { if (!isPrototype()) throw new IllegalStateException(); if (this.synthetics == null) this.synthetics = new HashMap[MAX_SYNTHETICS]; if (this.synthetics[SourceTypeBinding.METHOD_EMUL] == null) this.synthetics[SourceTypeBinding.METHOD_EMUL] = new HashMap(5); SyntheticMethodBinding lambdaMethod = null; SyntheticMethodBinding[] lambdaMethods = (SyntheticMethodBinding[]) this.synthetics[SourceTypeBinding.METHOD_EMUL].get(lambda); if (lambdaMethods == null) { lambdaMethod = new SyntheticMethodBinding(lambda, CharOperation.concat(TypeConstants.ANONYMOUS_METHOD, Integer.toString(this.lambdaOrdinal++).toCharArray()), this); this.synthetics[SourceTypeBinding.METHOD_EMUL].put(lambda, lambdaMethods = new SyntheticMethodBinding[1]); lambdaMethods[0] = lambdaMethod; } else { lambdaMethod = lambdaMethods[0]; } // Create a $deserializeLambda$ method if necessary, one is shared amongst all lambdas if (lambda.isSerializable) { addDeserializeLambdaMethod(); } return lambdaMethod; } /*
public SyntheticMethodBinding addSyntheticMethod(ReferenceExpression ref) { if (!isPrototype()) throw new IllegalStateException(); if (!ref.isSerializable) return null; if (this.synthetics == null) this.synthetics = new HashMap[MAX_SYNTHETICS]; if (this.synthetics[SourceTypeBinding.METHOD_EMUL] == null) this.synthetics[SourceTypeBinding.METHOD_EMUL] = new HashMap(5); SyntheticMethodBinding lambdaMethod = null; SyntheticMethodBinding[] lambdaMethods = (SyntheticMethodBinding[]) this.synthetics[SourceTypeBinding.METHOD_EMUL].get(ref); if (lambdaMethods == null) { lambdaMethod = new SyntheticMethodBinding(ref, this); this.synthetics[SourceTypeBinding.METHOD_EMUL].put(ref, lambdaMethods = new SyntheticMethodBinding[1]); lambdaMethods[0] = lambdaMethod; } else { lambdaMethod = lambdaMethods[0]; } // Create a $deserializeLambda$ method, one is shared amongst all lambdas addDeserializeLambdaMethod(); return lambdaMethod; } private void addDeserializeLambdaMethod() {
public SyntheticMethodBinding addSyntheticMethod(ReferenceExpression ref) { if (!isPrototype()) throw new IllegalStateException(); if (!ref.isSerializable) return null; if (this.synthetics == null) this.synthetics = new HashMap[MAX_SYNTHETICS]; if (this.synthetics[SourceTypeBinding.METHOD_EMUL] == null) this.synthetics[SourceTypeBinding.METHOD_EMUL] = new HashMap(5); SyntheticMethodBinding lambdaMethod = null; SyntheticMethodBinding[] lambdaMethods = (SyntheticMethodBinding[]) this.synthetics[SourceTypeBinding.METHOD_EMUL].get(ref); if (lambdaMethods == null) { lambdaMethod = new SyntheticMethodBinding(ref, this); this.synthetics[SourceTypeBinding.METHOD_EMUL].put(ref, lambdaMethods = new SyntheticMethodBinding[1]); lambdaMethods[0] = lambdaMethod; } else { lambdaMethod = lambdaMethods[0]; } // Create a $deserializeLambda$ method, one is shared amongst all lambdas addDeserializeLambdaMethod(); return lambdaMethod; } private void addDeserializeLambdaMethod() {
public SyntheticMethodBinding addSyntheticMethod(LambdaExpression lambda) { if (!isPrototype()) throw new IllegalStateException(); if (this.synthetics == null) this.synthetics = new HashMap[MAX_SYNTHETICS]; if (this.synthetics[SourceTypeBinding.METHOD_EMUL] == null) this.synthetics[SourceTypeBinding.METHOD_EMUL] = new HashMap(5); SyntheticMethodBinding lambdaMethod = null; SyntheticMethodBinding[] lambdaMethods = (SyntheticMethodBinding[]) this.synthetics[SourceTypeBinding.METHOD_EMUL].get(lambda); if (lambdaMethods == null) { lambdaMethod = new SyntheticMethodBinding(lambda, CharOperation.concat(TypeConstants.ANONYMOUS_METHOD, Integer.toString(lambda.ordinal).toCharArray()), this); this.synthetics[SourceTypeBinding.METHOD_EMUL].put(lambda, lambdaMethods = new SyntheticMethodBinding[1]); lambdaMethods[0] = lambdaMethod; } else { lambdaMethod = lambdaMethods[0]; } // Create a $deserializeLambda$ method if necessary, one is shared amongst all lambdas if (lambda.isSerializable) { addDeserializeLambdaMethod(); } return lambdaMethod; } /*
public SyntheticMethodBinding addSyntheticMethod(LambdaExpression lambda) { if (!isPrototype()) throw new IllegalStateException(); if (this.synthetics == null) this.synthetics = new HashMap[MAX_SYNTHETICS]; if (this.synthetics[SourceTypeBinding.METHOD_EMUL] == null) this.synthetics[SourceTypeBinding.METHOD_EMUL] = new HashMap(5); SyntheticMethodBinding lambdaMethod = null; SyntheticMethodBinding[] lambdaMethods = (SyntheticMethodBinding[]) this.synthetics[SourceTypeBinding.METHOD_EMUL].get(lambda); if (lambdaMethods == null) { lambdaMethod = new SyntheticMethodBinding(lambda, CharOperation.concat(TypeConstants.ANONYMOUS_METHOD, Integer.toString(this.lambdaOrdinal++).toCharArray()), this); this.synthetics[SourceTypeBinding.METHOD_EMUL].put(lambda, lambdaMethods = new SyntheticMethodBinding[1]); lambdaMethods[0] = lambdaMethod; } else { lambdaMethod = lambdaMethods[0]; } // Create a $deserializeLambda$ method if necessary, one is shared amongst all lambdas if (lambda.isSerializable) { addDeserializeLambdaMethod(); } return lambdaMethod; } /*
public SyntheticMethodBinding addSyntheticMethod(LambdaExpression lambda) { if (!isPrototype()) throw new IllegalStateException(); if (this.synthetics == null) this.synthetics = new HashMap[MAX_SYNTHETICS]; if (this.synthetics[SourceTypeBinding.METHOD_EMUL] == null) this.synthetics[SourceTypeBinding.METHOD_EMUL] = new HashMap(5); SyntheticMethodBinding lambdaMethod = null; SyntheticMethodBinding[] lambdaMethods = (SyntheticMethodBinding[]) this.synthetics[SourceTypeBinding.METHOD_EMUL].get(lambda); if (lambdaMethods == null) { lambdaMethod = new SyntheticMethodBinding(lambda, CharOperation.concat(TypeConstants.ANONYMOUS_METHOD, Integer.toString(this.lambdaOrdinal++).toCharArray()), this); this.synthetics[SourceTypeBinding.METHOD_EMUL].put(lambda, lambdaMethods = new SyntheticMethodBinding[1]); lambdaMethods[0] = lambdaMethod; } else { lambdaMethod = lambdaMethods[0]; } // Create a $deserializeLambda$ method if necessary, one is shared amongst all lambdas if (lambda.isSerializable) { addDeserializeLambdaMethod(); } return lambdaMethod; } /*
public SyntheticMethodBinding addSyntheticMethod(LambdaExpression lambda) { if (!isPrototype()) throw new IllegalStateException(); if (this.synthetics == null) this.synthetics = new HashMap[MAX_SYNTHETICS]; if (this.synthetics[SourceTypeBinding.METHOD_EMUL] == null) this.synthetics[SourceTypeBinding.METHOD_EMUL] = new HashMap(5); SyntheticMethodBinding lambdaMethod = null; SyntheticMethodBinding[] lambdaMethods = (SyntheticMethodBinding[]) this.synthetics[SourceTypeBinding.METHOD_EMUL].get(lambda); if (lambdaMethods == null) { lambdaMethod = new SyntheticMethodBinding(lambda, CharOperation.concat(TypeConstants.ANONYMOUS_METHOD, Integer.toString(lambda.ordinal).toCharArray()), this); this.synthetics[SourceTypeBinding.METHOD_EMUL].put(lambda, lambdaMethods = new SyntheticMethodBinding[1]); lambdaMethods[0] = lambdaMethod; } else { lambdaMethod = lambdaMethods[0]; } // Create a $deserializeLambda$ method if necessary, one is shared amongst all lambdas if (lambda.isSerializable) { addDeserializeLambdaMethod(); } return lambdaMethod; } /*