Java 类com.intellij.util.xml.JavaMethod 实例源码

项目:intellij-ce-playground    文件:FixedChildDescriptionImpl.java   
@Override
@NotNull
public List<? extends DomElement> getValues(@NotNull final DomElement element) {
  final List<DomElement> result = new SmartList<DomElement>();
  final DomInvocationHandler handler = DomManagerImpl.getDomInvocationHandler(element);
  if (handler != null) {
    for (int i = 0; i < myCount; i++) {
      result.add(handler.getFixedChild(Pair.create(this, i)).getProxy());
    }
  }
  else {
    for (Collection<JavaMethod> methods : myGetterMethods) {
      if (methods != null && !methods.isEmpty()) {
        result.add((DomElement)methods.iterator().next().invoke(element, ArrayUtil.EMPTY_OBJECT_ARRAY));
      }
    }
  }
  return result;
}
项目:tools-idea    文件:FixedChildDescriptionImpl.java   
@NotNull
public List<? extends DomElement> getValues(@NotNull final DomElement element) {
  final List<DomElement> result = new SmartList<DomElement>();
  final DomInvocationHandler handler = DomManagerImpl.getDomInvocationHandler(element);
  if (handler != null) {
    for (int i = 0; i < myCount; i++) {
      result.add(handler.getFixedChild(Pair.create(this, i)).getProxy());
    }
  }
  else {
    for (Collection<JavaMethod> methods : myGetterMethods) {
      if (methods != null && !methods.isEmpty()) {
        result.add((DomElement)methods.iterator().next().invoke(element, ArrayUtil.EMPTY_OBJECT_ARRAY));
      }
    }
  }
  return result;
}
项目:consulo-xml    文件:FixedChildDescriptionImpl.java   
@NotNull
public List<? extends DomElement> getValues(@NotNull final DomElement element) {
  final List<DomElement> result = new SmartList<DomElement>();
  final DomInvocationHandler handler = DomManagerImpl.getDomInvocationHandler(element);
  if (handler != null) {
    for (int i = 0; i < myCount; i++) {
      result.add(handler.getFixedChild(Pair.create(this, i)).getProxy());
    }
  }
  else {
    for (Collection<JavaMethod> methods : myGetterMethods) {
      if (methods != null && !methods.isEmpty()) {
        result.add((DomElement)methods.iterator().next().invoke(element, ArrayUtil.EMPTY_OBJECT_ARRAY));
      }
    }
  }
  return result;
}
项目:intellij-ce-playground    文件:FixedChildDescriptionImpl.java   
@Override
public JavaMethod getGetterMethod(int index) {
  if (myGetterMethods.length == 0) return null;

  final Collection<JavaMethod> methods = myGetterMethods[index];
  return methods == null || methods.isEmpty() ? null : methods.iterator().next();
}
项目:intellij-ce-playground    文件:FixedChildDescriptionImpl.java   
public FixedChildDescriptionImpl(final XmlName tagName, final Type type, final int count, final Collection<JavaMethod>[] getterMethods) {
  super(tagName, type);
  assert getterMethods.length == count || getterMethods == ArrayUtil.EMPTY_COLLECTION_ARRAY;
  myCount = count;
  myGetterMethods = getterMethods;
}
项目:intellij-ce-playground    文件:DynamicGenericInfo.java   
@Override
public Invocation createInvocation(final JavaMethod method) {
  return myStaticGenericInfo.createInvocation(method);
}
项目:intellij-ce-playground    文件:DomGenericInfoEx.java   
@Nullable
public abstract Invocation createInvocation(final JavaMethod method);
项目:intellij-ce-playground    文件:PropertyAccessorInvocation.java   
public PropertyAccessorInvocation(final JavaMethod[] methods) {
  myMethods = methods;
  myLastElement = myMethods.length - 1;
}
项目:intellij-ce-playground    文件:DomCollectionChildDescription.java   
@Nullable
JavaMethod getGetterMethod();
项目:intellij-ce-playground    文件:DomAttributeChildDescription.java   
@Nullable
JavaMethod getGetterMethod();
项目:tools-idea    文件:FixedChildDescriptionImpl.java   
public FixedChildDescriptionImpl(final XmlName tagName, final Type type, final int count, final Collection<JavaMethod>[] getterMethods) {
  super(tagName, type);
  assert getterMethods.length == count || getterMethods == ArrayUtil.EMPTY_COLLECTION_ARRAY;
  myCount = count;
  myGetterMethods = getterMethods;
}
项目:tools-idea    文件:FixedChildDescriptionImpl.java   
public JavaMethod getGetterMethod(int index) {
  if (myGetterMethods.length == 0) return null;

  final Collection<JavaMethod> methods = myGetterMethods[index];
  return methods == null || methods.isEmpty() ? null : methods.iterator().next();
}
项目:tools-idea    文件:DynamicGenericInfo.java   
public Invocation createInvocation(final JavaMethod method) {
  return myStaticGenericInfo.createInvocation(method);
}
项目:tools-idea    文件:DomGenericInfoEx.java   
@Nullable
public abstract Invocation createInvocation(final JavaMethod method);
项目:tools-idea    文件:PropertyAccessorInvocation.java   
public PropertyAccessorInvocation(final JavaMethod[] methods) {
  myMethods = methods;
  myLastElement = myMethods.length - 1;
}
项目:tools-idea    文件:DomCollectionChildDescription.java   
@Nullable
JavaMethod getGetterMethod();
项目:tools-idea    文件:DomAttributeChildDescription.java   
@Nullable
JavaMethod getGetterMethod();
项目:consulo-xml    文件:FixedChildDescriptionImpl.java   
public FixedChildDescriptionImpl(final XmlName tagName, final Type type, final int count, final Collection<JavaMethod>[] getterMethods) {
  super(tagName, type);
  assert getterMethods.length == count || getterMethods == ArrayUtil.EMPTY_COLLECTION_ARRAY;
  myCount = count;
  myGetterMethods = getterMethods;
}
项目:consulo-xml    文件:FixedChildDescriptionImpl.java   
public JavaMethod getGetterMethod(int index) {
  if (myGetterMethods.length == 0) return null;

  final Collection<JavaMethod> methods = myGetterMethods[index];
  return methods == null || methods.isEmpty() ? null : methods.iterator().next();
}
项目:consulo-xml    文件:DynamicGenericInfo.java   
public Invocation createInvocation(final JavaMethod method) {
  return myStaticGenericInfo.createInvocation(method);
}
项目:consulo-xml    文件:DomGenericInfoEx.java   
@Nullable
public abstract Invocation createInvocation(final JavaMethod method);
项目:consulo-xml    文件:PropertyAccessorInvocation.java   
public PropertyAccessorInvocation(final JavaMethod[] methods) {
  myMethods = methods;
  myLastElement = myMethods.length - 1;
}
项目:consulo-xml    文件:DomCollectionChildDescription.java   
@Nullable
JavaMethod getGetterMethod();
项目:consulo-xml    文件:DomAttributeChildDescription.java   
@Nullable
JavaMethod getGetterMethod();
项目:intellij-ce-playground    文件:DomFixedChildDescription.java   
JavaMethod getGetterMethod(int index);
项目:tools-idea    文件:DomFixedChildDescription.java   
JavaMethod getGetterMethod(int index);
项目:consulo-xml    文件:DomFixedChildDescription.java   
JavaMethod getGetterMethod(int index);