public void addProperty(PropertyNode node) { node.setDeclaringClass(redirect()); FieldNode field = node.getField(); addField(field); final ClassNode r = redirect(); if (r.properties == null) r.properties = new ArrayList<PropertyNode>(); r.properties.add(node); }
public List<PropertyNode> getProperties() { final ClassNode r = redirect(); if (r.properties == null) r.properties = new ArrayList<PropertyNode>(); return r.properties; }