/** * Forwarding hashCode call to {@link Object#hashCode()}. **/ @Override public int hashCode() { return super.hashCode(); }
/** * Creates a new complete constructor {@code PRelationBase} 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 PRelationBase} node * @param lhsPattern_ the {@link PPattern} node for the {@code lhsPattern} child of this {@link PRelationBase} node * @param rhsPattern_ the {@link PPattern} node for the {@code rhsPattern} child of this {@link PRelationBase} node * @param relExp_ the {@link PExp} node for the {@code relExp} child of this {@link PRelationBase} node * @param relDef_ the {@link AExplicitFunctionDefinition} node for the {@code relDef} child of this {@link PRelationBase} node */ public PRelationBase(ILexLocation location_, PPattern lhsPattern_, PPattern rhsPattern_, PExp relExp_, AExplicitFunctionDefinition relDef_) { super(); this.setLocation(location_); this.setLhsPattern(lhsPattern_); this.setRhsPattern(rhsPattern_); this.setRelExp(relExp_); this.setRelDef(relDef_); }
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 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("_minDef",this._minDef); fields.put("_maxDef",this._maxDef); 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 PRelationBase) { return toString().equals(o.toString()); } return false; }