/** * Forwarding hashCode call to {@link Object#hashCode()}. **/ @Override public int hashCode() { return super.hashCode(); }
/** * Creates a new tree field only constructor {@code SSetTypeBase TAG=#set} 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 empty_ the {@link Boolean} node for the {@code empty} child of this {@link SSetTypeBase} node * @param setOf_ the {@link STypeIR} node for the {@code setOf} child of this {@link SSetTypeBase} node */ public SSetTypeBase(Boolean optional_, ANamedTypeDeclIR namedInvType_, Boolean empty_, STypeIR setOf_) { super(null,null,null,optional_,namedInvType_); this.setEmpty(empty_); this.setSetOf(setOf_); }
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)); } return fields; }
/** * Creates a new complete constructor {@code SSetTypeBase} 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 empty_ the {@link Boolean} node for the {@code empty} child of this {@link SSetTypeBase} node * @param setOf_ the {@link STypeIR} node for the {@code setOf} child of this {@link SSetTypeBase} node */ public SSetTypeBase(SourceNode sourceNode_, Object tag_, List<? extends ClonableString> metaData_, Boolean optional_, ANamedTypeDeclIR namedInvType_, Boolean empty_, STypeIR setOf_) { super(sourceNode_,tag_,metaData_,optional_,namedInvType_); this.setEmpty(empty_); this.setSetOf(setOf_); }
/** * Essentially this.toString().equals(o.toString()). **/ @Override public boolean equals(Object o) { if (o != null && o instanceof SSetTypeBase) { return toString().equals(o.toString()); } return false; }