List of usage examples for com.google.gwt.dev.asm.signature SignatureReader accept
public void accept(final SignatureVisitor v)
From source file:com.google.web.bindery.requestfactory.server.RequestFactoryInterfaceValidator.java
License:Apache License
/** * Examine the arguments and return value of a method and check any * EntityProxies referred.//from w w w .j a v a 2s . c om */ private void maybeCheckReferredProxies(ErrorContext logger, RFMethod method) { if (method.getSignature() != null) { TypesInSignatureCollector collector = new TypesInSignatureCollector(); SignatureReader reader = new SignatureReader(method.getSignature()); reader.accept(collector); maybeCheckProxyType(logger, collector.getFound()); } else { Type[] argTypes = method.getArgumentTypes(); Type returnType = getReturnType(logger, method); // Check EntityProxy args ond return types against the domain maybeCheckProxyType(logger, argTypes); maybeCheckProxyType(logger, returnType); } }