1 8 14 package jfun.yan; 15 16 import jfun.yan.function.Signature; 17 18 28 abstract class DelegatingDependency implements Dependency { 29 private final Dependency pp; 30 34 protected final Dependency getDelegateTarget(){ 35 return pp; 36 } 37 38 DelegatingDependency(final Dependency pp) { 39 this.pp = pp; 40 } 41 public boolean equals(Object other) { 42 48 return this==other; 49 } 50 public Object getArgument(final Signature src, int i, Class type){ 51 return pp.getArgument(src, i, type); 52 } 53 54 public ComponentMap getComponentMap() { 55 return pp.getComponentMap(); 56 } 57 public Object getProperty(Class component_type, Object local_key, Class type){ 58 return pp.getProperty(component_type, local_key, type); 59 } 60 public int hashCode() { 61 return pp.hashCode(); 62 } 63 public String toString() { 64 return pp.toString(); 65 } 66 public Class verifyArgument(final Signature src, int i, Class type){ 67 return pp.verifyArgument(src, i, type); 68 } 69 public Class verifyProperty(Class component_type, Object local_key, Class type){ 70 return pp.verifyProperty(component_type, local_key, type); 71 } 72 73 public Object getComponentKey() { 74 return pp.getComponentKey(); 75 } 76 public Dependency getParent(){ 77 return null; 78 } 79 public Dependency getOriginal(){ 80 return pp.getOriginal(); 81 } 82 } 83 | Popular Tags |