Exemplo n.º 1
0
 public ClassNode getUnresolvedSuperClass(boolean useRedirect) {
   if (!useRedirect) return superClass;
   if (redirect != null) return redirect().getUnresolvedSuperClass(true);
   lazyClassInit();
   return superClass;
 }
Exemplo n.º 2
0
 public ClassNode[] getUnresolvedInterfaces(boolean useRedirect) {
   if (!useRedirect) return interfaces;
   if (redirect != null) return redirect().getUnresolvedInterfaces(true);
   lazyClassInit();
   return interfaces;
 }
Exemplo n.º 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);
  }
Exemplo n.º 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);
 }
Exemplo n.º 5
0
 public List<ConstructorNode> getDeclaredConstructors() {
   if (redirect != null) return redirect().getDeclaredConstructors();
   lazyClassInit();
   if (constructors == null) constructors = new ArrayList<ConstructorNode>();
   return constructors;
 }
Exemplo n.º 6
0
 /** @return the list of methods associated with this ClassNode */
 public List<MethodNode> getMethods() {
   if (redirect != null) return redirect().getMethods();
   lazyClassInit();
   return methodsList;
 }
Exemplo n.º 7
0
 /** @return the array of interfaces which this ClassNode implements */
 public ClassNode[] getInterfaces() {
   if (redirect != null) return redirect().getInterfaces();
   lazyClassInit();
   return interfaces;
 }
Exemplo n.º 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;
 }
Exemplo n.º 9
0
 public List<AnnotationNode> getAnnotations(ClassNode type) {
   if (redirect != null) return redirect.getAnnotations(type);
   lazyClassInit();
   return super.getAnnotations(type);
 }