private final boolean doVisitUnchangedChildren(ASTNode parent) { List properties= parent.structuralPropertiesForType(); for (int i= 0; i < properties.size(); i++) { voidVisit(parent, (StructuralPropertyDescriptor) properties.get(i)); } return false; }
private final boolean doVisitUnchangedChildren(ASTNode parent) { List properties= parent.structuralPropertiesForType(); for (int i= 0; i < properties.size(); i++) { voidVisit(parent, (StructuralPropertyDescriptor) properties.get(i)); } return false; }
private final boolean doVisitUnchangedChildren(ASTNode parent) { List properties= parent.structuralPropertiesForType(); for (int i= 0; i < properties.size(); i++) { voidVisit(parent, (StructuralPropertyDescriptor) properties.get(i)); } return false; }
private final boolean doVisitUnchangedChildren(ASTNode parent) { List properties= parent.structuralPropertiesForType(); for (int i= 0; i < properties.size(); i++) { voidVisit(parent, (StructuralPropertyDescriptor) properties.get(i)); } return false; }
private final boolean doVisitUnchangedChildren(ASTNode parent) { List properties= parent.structuralPropertiesForType(); for (int i= 0; i < properties.size(); i++) { voidVisit(parent, (StructuralPropertyDescriptor) properties.get(i)); } return false; }
public static List<ASTNode> getChildren(ASTNode node) { List<ASTNode> children = new ArrayList<ASTNode>(); List list = node.structuralPropertiesForType(); for (int i = 0; i < list.size(); i++) { Object child = node.getStructuralProperty((StructuralPropertyDescriptor)list.get(i)); if (child instanceof ASTNode) { children.add((ASTNode) child); } } return children; }
private final boolean doVisitUnchangedChildren(ASTNode parent) { List properties= parent.structuralPropertiesForType(); for (int i= 0; i < properties.size(); i++) { voidVisit(parent, (StructuralPropertyDescriptor) properties.get(i)); } return false; }
public Object[] getChildren(ASTNode node) { List list= node.structuralPropertiesForType(); for (int i= 0; i < list.size(); i++) { StructuralPropertyDescriptor curr= (StructuralPropertyDescriptor) list.get(i); Object child= node.getStructuralProperty(curr); if (child instanceof List) { return ((List) child).toArray(); } else if (child instanceof ASTNode) { return new Object[] { child }; } return new Object[0]; } }
private void validateHasChildProperty(ASTNode parent, StructuralPropertyDescriptor property) { if (!parent.structuralPropertiesForType().contains(property)) { String message= Signature.getSimpleName(parent.getClass().getName()) + " has no property " + property.getId(); //$NON-NLS-1$ throw new IllegalArgumentException(message); } }
private ChildListPropertyDescriptor getProperty() { List<StructuralPropertyDescriptor> list= fCallerNode.structuralPropertiesForType(); for (int i= 0; i < list.size(); i++) { StructuralPropertyDescriptor curr= list.get(i); if (curr.isChildListProperty() && "arguments".equals(curr.getId())) { //$NON-NLS-1$ return (ChildListPropertyDescriptor) curr; } } return null; }
private void validateHasChildProperty(ASTNode parent, StructuralPropertyDescriptor property) { if (!parent.structuralPropertiesForType().contains(property)) { String message= Signature.getSimpleName(parent.getClass().getName()) + " has no property " + property.getId(); //$NON-NLS-1$ throw new IllegalArgumentException(message); } }
private void validateHasChildProperty(ASTNode parent, StructuralPropertyDescriptor property) { if (!parent.structuralPropertiesForType().contains(property)) { String message= Signature.getSimpleName(parent.getClass().getName()) + " has no property " + property.getId(); //$NON-NLS-1$ throw new IllegalArgumentException(message); } }
private void validateHasChildProperty(ASTNode parent, StructuralPropertyDescriptor property) { if (!parent.structuralPropertiesForType().contains(property)) { String message= Signature.getSimpleName(parent.getClass().getName()) + " has no property " + property.getId(); //$NON-NLS-1$ throw new IllegalArgumentException(message); } }
private void validateHasChildProperty(ASTNode parent, StructuralPropertyDescriptor property) { if (!parent.structuralPropertiesForType().contains(property)) { String message= Signature.getSimpleName(parent.getClass().getName()) + " has no property " + property.getId(); //$NON-NLS-1$ throw new IllegalArgumentException(message); } }
private void validateHasChildProperty(ASTNode parent, StructuralPropertyDescriptor property) { if (!parent.structuralPropertiesForType().contains(property)) { String message= Signature.getSimpleName(parent.getClass().getName()) + " has no property " + property.getId(); //$NON-NLS-1$ throw new IllegalArgumentException(message); } }
private ChildListPropertyDescriptor getProperty() { List list= fCallerNode.structuralPropertiesForType(); for (int i= 0; i < list.size(); i++) { StructuralPropertyDescriptor curr= (StructuralPropertyDescriptor) list.get(i); if (curr.isChildListProperty() && "arguments".equals(curr.getId())) { //$NON-NLS-1$ return (ChildListPropertyDescriptor) curr; } } return null; }
private ChildListPropertyDescriptor getProperty() { List<StructuralPropertyDescriptor> list= fCallerNode.structuralPropertiesForType(); for (int i= 0; i < list.size(); i++) { StructuralPropertyDescriptor curr= list.get(i); if (curr.isChildListProperty() && "arguments".equals(curr.getId())) { //$NON-NLS-1$ return (ChildListPropertyDescriptor) curr; } } return null; }
private ChildListPropertyDescriptor getProperty() { List<StructuralPropertyDescriptor> list= fCallerNode.structuralPropertiesForType(); for (int i= 0; i < list.size(); i++) { StructuralPropertyDescriptor curr= list.get(i); if (curr.isChildListProperty() && "arguments".equals(curr.getId())) { //$NON-NLS-1$ return (ChildListPropertyDescriptor) curr; } } return null; }
public ASTNode genericChildProperty(final ASTNode node, final String propertyName) { final Function1<ChildPropertyDescriptor, Boolean> _function = (ChildPropertyDescriptor it) -> { String _id = it.getId(); return Boolean.valueOf(Objects.equal(propertyName, _id)); }; final ChildPropertyDescriptor property = IterableExtensions.<ChildPropertyDescriptor>head(IterableExtensions.<ChildPropertyDescriptor>filter(Iterables.<ChildPropertyDescriptor>filter(node.structuralPropertiesForType(), ChildPropertyDescriptor.class), _function)); if ((property != null)) { Object _structuralProperty = node.getStructuralProperty(property); return ((ASTNode) _structuralProperty); } return null; }
public List<ASTNode> genericChildListProperty(final ASTNode node, final String propertyName) { final Function1<ChildListPropertyDescriptor, Boolean> _function = (ChildListPropertyDescriptor it) -> { String _id = it.getId(); return Boolean.valueOf(Objects.equal(propertyName, _id)); }; final ChildListPropertyDescriptor property = IterableExtensions.<ChildListPropertyDescriptor>head(IterableExtensions.<ChildListPropertyDescriptor>filter(Iterables.<ChildListPropertyDescriptor>filter(node.structuralPropertiesForType(), ChildListPropertyDescriptor.class), _function)); if ((property != null)) { Object _structuralProperty = node.getStructuralProperty(property); return ((List<ASTNode>) _structuralProperty); } return null; }