1 13 package org.eclipse.jdt.core.dom; 14 15 import org.eclipse.jdt.core.dom.BindingResolver; 16 import org.eclipse.jdt.core.dom.IMethodBinding; 17 18 21 class DefaultValuePairBinding extends MemberValuePairBinding { 22 23 private org.eclipse.jdt.internal.compiler.lookup.MethodBinding method; 24 25 DefaultValuePairBinding(org.eclipse.jdt.internal.compiler.lookup.MethodBinding binding, BindingResolver resolver) { 26 super(null, resolver); 27 this.method = binding; 28 this.value = MemberValuePairBinding.buildDOMValue(binding.getDefaultValue(), resolver); 29 } 30 31 public IMethodBinding getMethodBinding() { 32 return this.bindingResolver.getMethodBinding(this.method); 33 } 34 35 public String getName() { 36 return new String (this.method.selector); 37 } 38 39 public Object getValue() { 40 return this.value; 41 } 42 43 public boolean isDefault() { 44 return true; 45 } 46 47 public boolean isDeprecated() { 48 return this.method.isDeprecated(); 49 } 50 } 51 | Popular Tags |