/* LLNonImmediateOperand.java (c) 2008-2013 Edward Swartz All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html */ package v9t9.tools.asm.operand.ll; import v9t9.tools.asm.operand.hl.AssemblerOperand; /** * @author Ed * */ public abstract class LLNonImmediateOperand extends LLOperand { /** * @param original */ public LLNonImmediateOperand(AssemblerOperand original) { super(original); } @Override public int hashCode() { int result = 1; return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; return true; } /* (non-Javadoc) * @see v9t9.tools.asm.operand.ll.LLOperand#getImmediate() */ @Override public final int getImmediate() { return 0; } /* (non-Javadoc) * @see v9t9.tools.asm.operand.ll.LLOperand#getSize() */ @Override public final int getSize() { return 0; } /* (non-Javadoc) * @see v9t9.tools.asm.operand.ll.LLOperand#hasImmediate() */ @Override public final boolean hasImmediate() { return false; } /* (non-Javadoc) * @see v9t9.tools.asm.operand.hl.AssemblerOperand#isConst() */ @Override public boolean isConst() { return false; } }