/** * Forwarding hashCode call to {@link Object#hashCode()}. **/ @Override public int hashCode() { return super.hashCode(); }
/** * Creates a new complete constructor {@code SVarExpBase} 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 isLambda_ the {@link Boolean} node for the {@code isLambda} child of this {@link SVarExpBase} node * @param isLocal_ the {@link Boolean} node for the {@code isLocal} child of this {@link SVarExpBase} node * @param name_ the {@link String} node for the {@code name} child of this {@link SVarExpBase} node */ public SVarExpBase(SourceNode sourceNode_, Object tag_, List<? extends ClonableString> metaData_, STypeIR type_, Boolean isLambda_, Boolean isLocal_, String name_) { super(sourceNode_,tag_,metaData_,type_); this.setIsLambda(isLambda_); this.setIsLocal(isLocal_); this.setName(name_); }
/** * 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; }
/** * Essentially this.toString().equals(o.toString()). **/ @Override public boolean equals(Object o) { if (o != null && o instanceof SVarExpBase) { return toString().equals(o.toString()); } return false; }
/** * 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 new tree field only constructor {@code SVarExpBase TAG=#Var} 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 isLambda_ the {@link Boolean} node for the {@code isLambda} child of this {@link SVarExpBase} node * @param isLocal_ the {@link Boolean} node for the {@code isLocal} child of this {@link SVarExpBase} node * @param name_ the {@link String} node for the {@code name} child of this {@link SVarExpBase} node */ public SVarExpBase(STypeIR type_, Boolean isLambda_, Boolean isLocal_, String name_) { super(null,null,null,type_); this.setIsLambda(isLambda_); this.setIsLocal(isLocal_); this.setName(name_); }
/** * Forwarding hashCode call to {@link Object#hashCode()}. **/ @Override public int hashCode() { return super.hashCode(); }
/** * 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("_classType",this._classType); return fields; }
/** * Forwarding hashCode call to {@link Object#hashCode()}. **/ @Override public int hashCode() { return super.hashCode(); }