public static String getDelRefArray(Type arrayType) { switch (arrayType.getDetailedType()) { case Type.CLASS: case Type.INTERFACE: return ArrayMethods.generateDelRefName(arrayType.getSymbolID()); case Type.ENUM: return "sidl_long__array_deleteRef"; default: return "sidl_" + arrayType.getTypeString() + "__array_deleteRef"; } }
public static String getArgumentWithFormal( Argument arg, Context context, boolean objPtr, boolean inStub, boolean isExec) throws CodeGenerationException { final Type type = arg.getType(); if (Type.ENUM == type.getDetailedType()) { return getEnumName(type.getSymbolID()) + ((arg.getMode() != Argument.IN) ? "* " : " ") + arg.getFormalName(); } else { return IOR.getArgumentWithFormal(arg, context, objPtr, inStub, isExec); } }
public static String getReturnString(Type type, Context context, boolean objPtr, boolean inStub) throws CodeGenerationException { return (Type.ENUM == type.getDetailedType()) ? getEnumName(type.getSymbolID()) : IOR.getReturnString(type, context, objPtr, inStub); }