@Override public String getName() { if (this.internalPair == null) return null; final char[] membername = this.internalPair.getName(); return membername == null ? null : new String(membername); }
public String getName() { if (this.internalPair == null) return null; final char[] membername = this.internalPair.getName(); return membername == null ? null : new String(membername); }
public String getName() { if (this.internalPair == null) return null; final char[] membername = this.internalPair.getName(); return membername == null ? null : new String(membername); }
public String getName() { if (this.internalPair == null) return null; final char[] membername = this.internalPair.getName(); return membername == null ? null : new String(membername); }
public String getName() { if (this.internalPair == null) return null; final char[] membername = this.internalPair.getName(); return membername == null ? null : new String(membername); }
public String getName() { if (this.internalPair == null) return null; final char[] membername = this.internalPair.getName(); return membername == null ? null : new String(membername); }
BindingAnnotationElementWithJdt(JavaEnvironmentWithJdt env, BindingAnnotationWithJdt owner, ElementValuePair bindingPair, boolean syntheticDefaultValue) { super(env); m_declaringAnnotation = Validate.notNull(owner); m_binding = Validate.notNull(bindingPair); m_syntheticDefaultValue = syntheticDefaultValue; m_name = new String(m_binding.getName()); }
EcjPsiBinaryNameValuePair(@NonNull EcjPsiManager manager, @NonNull ElementValuePair pair) { super(manager, null); mPair = pair; mName = new String(pair.getName()); }
@NonNull @Override public List<Value> getValues() { ElementValuePair[] pairs = binding.getElementValuePairs(); if (pairs != null && pairs.length > 0) { List<Value> values = Lists.newArrayListWithExpectedSize(pairs.length); for (ElementValuePair pair : pairs) { values.add(new Value(new String(pair.getName()), getPairValue(pair))); } } return Collections.emptyList(); }
public static void setMethodBindings(ReferenceBinding type, ElementValuePair[] pairs) { // set the method bindings of each element value pair for (int i = pairs.length; --i >= 0;) { ElementValuePair pair = pairs[i]; MethodBinding[] methods = 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]); } }
public static void setMethodBindings(ReferenceBinding type, ElementValuePair[] pairs) { // set the method bindings of each element value pair for (int i = pairs.length; --i >= 0;) { ElementValuePair pair = pairs[i]; MethodBinding[] methods = 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]); } }
public static void setMethodBindings(ReferenceBinding type, ElementValuePair[] pairs) { // set the method bindings of each element value pair for (int i = pairs.length; --i >= 0;) { ElementValuePair pair = pairs[i]; MethodBinding[] methods = 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]); } }
public static void setMethodBindings(ReferenceBinding type, ElementValuePair[] pairs) { // set the method bindings of each element value pair for (int i = pairs.length; --i >= 0;) { ElementValuePair pair = pairs[i]; MethodBinding[] methods = 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]); } }
public static void setMethodBindings(ReferenceBinding type, ElementValuePair[] pairs) { // set the method bindings of each element value pair for (int i = pairs.length; --i >= 0;) { ElementValuePair pair = pairs[i]; MethodBinding[] methods = 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]); } }
public static void setMethodBindings(ReferenceBinding type, ElementValuePair[] pairs) { // set the method bindings of each element value pair for (int i = pairs.length; --i >= 0;) { ElementValuePair pair = pairs[i]; MethodBinding[] methods = 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]); } }
public static void setMethodBindings(ReferenceBinding type, ElementValuePair[] pairs) { // set the method bindings of each element value pair for (int i = pairs.length; --i >= 0;) { ElementValuePair pair = pairs[i]; MethodBinding[] methods = 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]); } }
public static void setMethodBindings(ReferenceBinding type, ElementValuePair[] pairs) { // set the method bindings of each element value pair for (int i = pairs.length; --i >= 0;) { ElementValuePair pair = pairs[i]; MethodBinding[] methods = 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]); } }
public static void setMethodBindings(ReferenceBinding type, ElementValuePair[] pairs) { // set the method bindings of each element value pair for (int i = pairs.length; --i >= 0;) { ElementValuePair pair = pairs[i]; MethodBinding[] methods = 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]); } }
public static void setMethodBindings(ReferenceBinding type, ElementValuePair[] pairs) { // set the method bindings of each element value pair for (int i = pairs.length; --i >= 0;) { ElementValuePair pair = pairs[i]; MethodBinding[] methods = 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]); } }
public <A extends java.lang.annotation.Annotation> CtAnnotation<A> getTypeCtAnnotation(AnnotationBinding annotationBinding) { CtAnnotation<A> a = factory.Core().createAnnotation(); CtTypeReference<A> t = references.getTypeReference(annotationBinding.getAnnotationType()); a.setAnnotationType(t); for (ElementValuePair valuePair : annotationBinding.getElementValuePairs()) { a.addValue(String.valueOf(valuePair.getName()), buildValuePairAnnotation(valuePair.getValue())); } return a; }