public ElementValuePair[] getElementValuePairs() { if (this.env != null) { if (this.typeUnresolved) { getAnnotationType(); // resolve the annotation type } // resolve method binding and value type (if unresolved) for each pair for (int i = this.pairs.length; --i >= 0;) { ElementValuePair pair = this.pairs[i]; MethodBinding[] methods = this.type.getMethods(pair.getName()); // there should be exactly one since the type is an annotation type. if (methods != null && methods.length == 1) { pair.setMethodBinding(methods[0]); } // else silently leave a null there Object value = pair.getValue(); if (value instanceof UnresolvedReferenceBinding) { pair.setValue(((UnresolvedReferenceBinding) value). resolve(this.env, false)); // no parameterized types in annotation values } // do nothing for UnresolvedAnnotationBinding-s, since their // content is only accessed through get* methods } this.env = null; } return this.pairs; } }
public ElementValuePair[] getElementValuePairs() { if (this.env != null) { if (this.typeUnresolved) { resolve(); } // resolve method binding and value type (if unresolved) for each pair for (int i = this.pairs.length; --i >= 0;) { ElementValuePair pair = this.pairs[i]; MethodBinding[] methods = this.type.getMethods(pair.getName()); // there should be exactly one since the type is an annotation type. if (methods != null && methods.length == 1) { pair.setMethodBinding(methods[0]); } // else silently leave a null there Object value = pair.getValue(); if (value instanceof UnresolvedReferenceBinding) { pair.setValue(((UnresolvedReferenceBinding) value). resolve(this.env, false)); // no parameterized types in annotation values } // do nothing for UnresolvedAnnotationBinding-s, since their // content is only accessed through get* methods } this.env = null; } return this.pairs; } }
public ElementValuePair[] getElementValuePairs() { if (this.env != null) { if (this.typeUnresolved) { getAnnotationType(); // resolve the annotation type } // resolve method binding and value type (if unresolved) for each pair for (int i = this.pairs.length; --i >= 0;) { ElementValuePair pair = this.pairs[i]; MethodBinding[] methods = this.type.getMethods(pair.getName()); // there should be exactly one since the type is an annotation type. if (methods != null && methods.length == 1) { pair.setMethodBinding(methods[0]); } // else silently leave a null there Object value = pair.getValue(); if (value instanceof UnresolvedReferenceBinding) { pair.setValue(((UnresolvedReferenceBinding) value). resolve(this.env, false)); // no parameterized types in annotation values } // do nothing for UnresolvedAnnotationBinding-s, since their // content is only accessed through get* methods } this.env = null; } return this.pairs; } }
public ElementValuePair[] getElementValuePairs() { if (this.env != null) { if (this.typeUnresolved) { resolve(); } // resolve method binding and value type (if unresolved) for each pair for (int i = this.pairs.length; --i >= 0;) { ElementValuePair pair = this.pairs[i]; MethodBinding[] methods = this.type.getMethods(pair.getName()); // there should be exactly one since the type is an annotation type. if (methods != null && methods.length == 1) { pair.setMethodBinding(methods[0]); } // else silently leave a null there Object value = pair.getValue(); if (value instanceof UnresolvedReferenceBinding) { pair.setValue(((UnresolvedReferenceBinding) value). resolve(this.env, false)); // no parameterized types in annotation values } // do nothing for UnresolvedAnnotationBinding-s, since their // content is only accessed through get* methods } this.env = null; } return this.pairs; } }
public ElementValuePair[] getElementValuePairs() { if (this.env != null) { if (this.typeUnresolved) { resolve(); } // resolve method binding and value type (if unresolved) for each pair for (int i = this.pairs.length; --i >= 0;) { ElementValuePair pair = this.pairs[i]; MethodBinding[] methods = this.type.getMethods(pair.getName()); // there should be exactly one since the type is an annotation type. if (methods != null && methods.length == 1) { pair.setMethodBinding(methods[0]); } // else silently leave a null there Object value = pair.getValue(); if (value instanceof UnresolvedReferenceBinding) { pair.setValue(((UnresolvedReferenceBinding) value). resolve(this.env, false)); // no parameterized types in annotation values } // do nothing for UnresolvedAnnotationBinding-s, since their // content is only accessed through get* methods } this.env = null; } return this.pairs; } }
public ElementValuePair[] getElementValuePairs() { if (this.env != null) { if (this.typeUnresolved) { resolve(); } // resolve method binding and value type (if unresolved) for each pair for (int i = this.pairs.length; --i >= 0;) { ElementValuePair pair = this.pairs[i]; MethodBinding[] methods = this.type.getMethods(pair.getName()); // there should be exactly one since the type is an annotation type. if (methods != null && methods.length == 1) { pair.setMethodBinding(methods[0]); } // else silently leave a null there Object value = pair.getValue(); if (value instanceof UnresolvedReferenceBinding) { pair.setValue(((UnresolvedReferenceBinding) value). resolve(this.env, false)); // no parameterized types in annotation values } // do nothing for UnresolvedAnnotationBinding-s, since their // content is only accessed through get* methods } this.env = null; } return this.pairs; } }
public ElementValuePair[] getElementValuePairs() { if (this.env != null) { if (this.typeUnresolved) { resolve(); } // resolve method binding and value type (if unresolved) for each pair for (int i = this.pairs.length; --i >= 0;) { ElementValuePair pair = this.pairs[i]; MethodBinding[] methods = this.type.getMethods(pair.getName()); // there should be exactly one since the type is an annotation type. if (methods != null && methods.length == 1) { pair.setMethodBinding(methods[0]); } // else silently leave a null there Object value = pair.getValue(); if (value instanceof UnresolvedReferenceBinding) { pair.setValue(((UnresolvedReferenceBinding) value). resolve(this.env, false)); // no parameterized types in annotation values } // do nothing for UnresolvedAnnotationBinding-s, since their // content is only accessed through get* methods } this.env = null; } return this.pairs; } }
public ElementValuePair[] getElementValuePairs() { if (this.env != null) { if (this.typeUnresolved) { resolve(); } // resolve method binding and value type (if unresolved) for each pair for (int i = this.pairs.length; --i >= 0;) { ElementValuePair pair = this.pairs[i]; MethodBinding[] methods = this.type.getMethods(pair.getName()); // there should be exactly one since the type is an annotation type. if (methods != null && methods.length == 1) { pair.setMethodBinding(methods[0]); } // else silently leave a null there Object value = pair.getValue(); if (value instanceof UnresolvedReferenceBinding) { pair.setValue(((UnresolvedReferenceBinding) value). resolve(this.env, false)); // no parameterized types in annotation values } // do nothing for UnresolvedAnnotationBinding-s, since their // content is only accessed through get* methods } this.env = null; } return this.pairs; } }
public ElementValuePair[] getElementValuePairs() { if (this.env != null) { if (this.typeUnresolved) { getAnnotationType(); // resolve the annotation type } // resolve method binding and value type (if unresolved) for each pair for (int i = this.pairs.length; --i >= 0;) { ElementValuePair pair = this.pairs[i]; MethodBinding[] methods = this.type.getMethods(pair.getName()); // there should be exactly one since the type is an annotation type. if (methods != null && methods.length == 1) { pair.setMethodBinding(methods[0]); } // else silently leave a null there Object value = pair.getValue(); if (value instanceof UnresolvedReferenceBinding) { pair.setValue(((UnresolvedReferenceBinding) value). resolve(this.env, false)); // no parameterized types in annotation values } // do nothing for UnresolvedAnnotationBinding-s, since their // content is only accessed through get* methods } this.env = null; } return this.pairs; } }
pair.setValue(((UnresolvedReferenceBinding) value). resolve(this.env, false));
pair.setValue(((UnresolvedReferenceBinding) value). resolve(this.env, false));