コード例 #1
0
 public ClassNode getUnresolvedSuperClass(boolean useRedirect) {
   if (!useRedirect) return superClass;
   if (redirect != null) return redirect().getUnresolvedSuperClass(true);
   lazyClassInit();
   return superClass;
 }
コード例 #2
0
 public ClassNode[] getUnresolvedInterfaces(boolean useRedirect) {
   if (!useRedirect) return interfaces;
   if (redirect != null) return redirect().getUnresolvedInterfaces(true);
   lazyClassInit();
   return interfaces;
 }
コード例 #3
0
  /**
   * Finds a field matching the given name in this class.
   *
   * @param name the name of the field of interest
   * @return the method matching the given name and parameters or null
   */
  public FieldNode getDeclaredField(String name) {
    if (redirect != null) return redirect().getDeclaredField(name);

    lazyClassInit();
    return fieldIndex == null ? null : fieldIndex.get(name);
  }
コード例 #4
0
 /**
  * This methods returns a list of all methods of the given name defined in the current class
  *
  * @return the method list
  * @see #getMethods(String)
  */
 public List<MethodNode> getDeclaredMethods(String name) {
   if (redirect != null) return redirect().getDeclaredMethods(name);
   lazyClassInit();
   return methods.getNotNull(name);
 }
コード例 #5
0
 public List<ConstructorNode> getDeclaredConstructors() {
   if (redirect != null) return redirect().getDeclaredConstructors();
   lazyClassInit();
   if (constructors == null) constructors = new ArrayList<ConstructorNode>();
   return constructors;
 }
コード例 #6
0
 /** @return the list of methods associated with this ClassNode */
 public List<MethodNode> getMethods() {
   if (redirect != null) return redirect().getMethods();
   lazyClassInit();
   return methodsList;
 }
コード例 #7
0
 /** @return the array of interfaces which this ClassNode implements */
 public ClassNode[] getInterfaces() {
   if (redirect != null) return redirect().getInterfaces();
   lazyClassInit();
   return interfaces;
 }
コード例 #8
0
 /** @return the list of FieldNode's associated with this ClassNode */
 public List<FieldNode> getFields() {
   if (redirect != null) return redirect().getFields();
   lazyClassInit();
   if (fields == null) fields = new LinkedList<FieldNode>();
   return fields;
 }
コード例 #9
0
 public List<AnnotationNode> getAnnotations(ClassNode type) {
   if (redirect != null) return redirect.getAnnotations(type);
   lazyClassInit();
   return super.getAnnotations(type);
 }