/** * Forwarding hashCode call to {@link Object#hashCode()}. **/ @Override public int hashCode() { return super.hashCode(); }
/** * Creates a new complete constructor {@code PImportBase} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param location_ the {@link ILexLocation} node for the {@code location} child of this {@link PImportBase} node * @param name_ the {@link ILexNameToken} node for the {@code name} child of this {@link PImportBase} node * @param renamed_ the {@link ILexNameToken} node for the {@code renamed} child of this {@link PImportBase} node * @param from_ the {@link AModuleModules} <b>graph</a> node for the {@code from} child of this {@link PImportBase} node. * <i>The parent of this {@code from } will not be changed by adding it to this node.</i> */ public PImportBase(ILexLocation location_, ILexNameToken name_, ILexNameToken renamed_, AModuleModules from_) { super(); this.setLocation(location_); this.setName(name_); this.setRenamed(renamed_); this.setFrom(from_); }
public String toString() { return super.toString(); }
/** * Creates a new tree field only constructor {@code PImportBase TAG=import} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param location_ the {@link ILexLocation} node for the {@code location} child of this {@link PImportBase} node * @param name_ the {@link ILexNameToken} node for the {@code name} child of this {@link PImportBase} node * @param renamed_ the {@link ILexNameToken} node for the {@code renamed} child of this {@link PImportBase} node */ public PImportBase(ILexLocation location_, ILexNameToken name_, ILexNameToken renamed_) { super(); this.setLocation(location_); this.setName(name_); this.setRenamed(renamed_); }
/** * Creates a map of all field names and their value * @param includeInheritedFields if true all inherited fields are included * @return a a map of names to values of all fields */ @Override public Map<String,Object> getChildren(Boolean includeInheritedFields) { Map<String,Object> fields = new HashMap<String,Object>(); if(includeInheritedFields) { fields.putAll(super.getChildren(includeInheritedFields)); } return fields; }
/** * Creates a map of all field names and their value * @param includeInheritedFields if true all inherited fields are included * @return a a map of names to values of all fields */ @Override public Map<String,Object> getChildren(Boolean includeInheritedFields) { Map<String,Object> fields = new HashMap<String,Object>(); if(includeInheritedFields) { fields.putAll(super.getChildren(includeInheritedFields)); } fields.put("_importType",this._importType); return fields; }
/** * Forwarding hashCode call to {@link Object#hashCode()}. **/ @Override public int hashCode() { return super.hashCode(); }
public String toString() { return super.toString(); }
/** * Creates a map of all field names and their value * @param includeInheritedFields if true all inherited fields are included * @return a a map of names to values of all fields */ @Override public Map<String,Object> getChildren(Boolean includeInheritedFields) { Map<String,Object> fields = new HashMap<String,Object>(); if(includeInheritedFields) { fields.putAll(super.getChildren(includeInheritedFields)); } fields.put("_def",this._def); return fields; }
/** * Forwarding hashCode call to {@link Object#hashCode()}. **/ @Override public int hashCode() { return super.hashCode(); }
/** * Essentially this.toString().equals(o.toString()). **/ @Override public boolean equals(Object o) { if (o != null && o instanceof PImportBase) { return toString().equals(o.toString()); } return false; }