public TransformContext(Transformer transformer, RuleScript ruleScript, String triggerClassName, ClassLoader loader, HelperManager helperManager, AccessEnabler accessEnabler) { // the target method spec may just be a bare method name or it may optionally include a // parameter type list and a return type. With Java syntax the return type appears before // the method name. if so we modify the target method spec so that the return type appears // after the argument list which means we also accept a spec supplied in this format. The // parseMethodDescriptor call below will eat specs in this latter format. final String targetMethodSpec = ruleScript.getTargetMethod(); String mungedMethodSpec = mungeMethodSpecReturnType(targetMethodSpec); this.transformer = transformer; this.ruleScript = ruleScript; this.triggerClassName = triggerClassName; this.targetMethodName = TypeHelper.parseMethodName(mungedMethodSpec); this.targetDescriptor = TypeHelper.parseMethodDescriptor(mungedMethodSpec); this.loader = loader; this.helperManager = helperManager; this.ruleMap = new HashMap<String, Rule>(); this.firstRule = null; this.accessEnabler = accessEnabler; this.failed = false; }
public TransformContext(Transformer transformer, RuleScript ruleScript, String triggerClassName, ClassLoader loader, HelperManager helperManager, AccessEnabler accessEnabler) { // the target method spec may just be a bare method name or it may optionally include a // parameter type list and a return type. With Java syntax the return type appears before // the method name. if so we modify the target method spec so that the return type appears // after the argument list which means we also accept a spec supplied in this format. The // parseMethodDescriptor call below will eat specs in this latter format. final String targetMethodSpec = ruleScript.getTargetMethod(); String mungedMethodSpec = mungeMethodSpecReturnType(targetMethodSpec); this.transformer = transformer; this.ruleScript = ruleScript; this.triggerClassName = triggerClassName; this.targetMethodName = TypeHelper.parseMethodName(mungedMethodSpec); this.targetDescriptor = TypeHelper.parseMethodDescriptor(mungedMethodSpec); this.loader = loader; this.helperManager = helperManager; this.ruleMap = new HashMap<String, Rule>(); this.firstRule = null; this.accessEnabler = accessEnabler; this.failed = false; }