1 20 21 package org.jacorb.idl; 22 23 27 28 29 class FixedPointConstType 30 extends BaseType 31 { 32 33 public FixedPointConstType( int num ) 34 { 35 super( num ); 36 } 37 38 public Object clone() 39 { 40 return new FixedPointConstType( new_num() ); 41 } 42 43 public String typeName() 44 { 45 return "java.math.BigDecimal"; 46 } 47 48 public TypeSpec typeSpec() 49 { 50 return this; 51 } 52 53 public String toString() 54 { 55 return typeName(); 56 } 57 58 public boolean basic() 59 { 60 return true; 61 } 62 63 public int getTCKind() 64 { 65 return 28; 66 } 67 68 public void parse() 69 { 70 } 71 72 public String holderName() 73 { 74 return "org.omg.CORBA.FixedHolder"; 75 } 76 77 78 public String printReadExpression( String strname ) 79 { 80 return strname + ".read_fixed()"; 81 } 82 83 public String printWriteStatement( String var_name, String strname ) 84 { 85 return strname + ".write_fixed(" + var_name + ");"; 86 } 87 } 88 89 90 91 92 93 94 95 | Popular Tags |