1 24 25 package org.aspectj.compiler.base.ast; 26 27 import org.aspectj.compiler.base.*; 28 import java.io.IOException ; 29 30 import org.aspectj.compiler.base.bcg.CodeBuilder; 31 import org.aspectj.compiler.base.bcg.Label; 32 33 abstract public class NumericType extends PrimitiveType { 35 36 protected final boolean isCoercableToOtherType(Type other) { 37 return (other instanceof NumericType); 38 } 39 40 public NumericType(JavaCompiler compiler) { 41 super(compiler); 42 } 43 44 final LiteralExpr foldLogNotOp(LiteralExpr rand) { return unsupportedFold(); } 46 47 abstract void emitCastFromInt(CodeBuilder cb); 49 abstract void emitCastFromFloat(CodeBuilder cb); 50 abstract void emitCastFromLong(CodeBuilder cb); 51 abstract void emitCastFromDouble(CodeBuilder cb); 52 53 final void emitLogNot(CodeBuilder cb) { unsupportedEmit(); } 54 } 55 | Popular Tags |