if(cell.getContents().equalsIgnoreCase(key)){ for (int i = 0; i < sheet.getColumns(); i++) { Cell cel = sheet.getCell(i, j); resultSet.add(cel.getContents());
/** * Retrieves the attribute by key from the list of attributes * * @param key * @return a value for key in the list of attributes or the default value. */ public String getAttribute(String key) { return getAttribute(Attribute.keyOf(key)); }
public LiterateModuleComment(LiterateDefinitionComment ldc) { setSource(ldc.getSource()); setLocation(ldc.getLocation()); value = ldc.getValue(); lcType = ldc.getType(); }
public void visit(Syntax syntax) { this.sort = syntax.getDeclaredSort().getRealSort(); syntax.getPriorityBlocks().forEach(pb -> pb.getProductions().forEach(this::visit)); }
public Import getImportSyntax() { if (isImportSyntax()) { return this; } return new Import(name + IMPORTS_SYNTAX_SUFFIX, getLocation(), getSource()); }
public void removeAttribute(String key) { getAttributes().remove(Attribute.keyOf(key)); }
/** * Appends an attribute to the list of attributes. * * @param key * @param val */ public void addAttribute(String key, String val) { addAttribute(Attribute.of(key, val)); }
/** * Copies attributes from another node into this node. * Use this in preference to {@link ASTNode#getAttributes} where appropriate because * the latter will create a new object if no attributes exist. * @param node The ASTNode to copy all attributes from. */ public void copyAttributesFrom(ASTNode node) { if (node.attributes == null) return; this.getAttributes().putAll(node.attributes); }
/** * @param key * @return whether the attribute key occurs in the list of attributes. */ public boolean containsAttribute(String key) { if (attributes == null) return false; return attributes.containsKey(Attribute.keyOf(key)); }
public <T> void addAttribute(Class<T> key, Annotation annotation, T val) { addAttribute(Key.get(key, annotation), val); }
public <T> T typeSafeGet(Class<T> cls) { return typeSafeGet(Key.get(cls)); }
public <T> void addAttribute(Key<T> key, T val) { addAttribute(new Attribute<>(key, val)); }
public <T> T getAttribute(Class<T> cls) { return getAttribute(Key.get(cls)); }
/** * @param key * @return whether the attribute key occurs in the list of attributes. */ public boolean containsAttribute(Key<?> key) { if (attributes == null) return false; return attributes.containsKey(key); }