1414
1515package com .eprosima .fastcdr .idl .generator ;
1616
17- import com .eprosima .log .ColorMessage ;
18- import com .eprosima .idl .generator .manager .TemplateManager ;
1917import com .eprosima .idl .context .Context ;
20- import com .eprosima .idl .parser . typecode . TypeCode ;
18+ import com .eprosima .idl .generator . manager . TemplateManager ;
2119import com .eprosima .idl .parser .tree .Definition ;
2220import com .eprosima .idl .parser .tree .Export ;
23- import com .eprosima .idl .parser .tree .Module ;
2421import com .eprosima .idl .parser .tree .Interface ;
2522import com .eprosima .idl .parser .tree .TypeDeclaration ;
26-
27- import org . antlr . stringtemplate .* ;
28-
23+ import com . eprosima . idl . parser . typecode . Kind ;
24+ import com . eprosima . log . ColorMessage ;
25+ import java . io .*;
2926import java .util .ArrayList ;
3027import java .util .Map ;
31- import java .io .*;
28+ import org .antlr .stringtemplate .StringTemplate ;
29+ import org .antlr .stringtemplate .StringTemplateGroup ;
30+
31+
3232
3333public class TypesGenerator
3434{
@@ -204,7 +204,7 @@ public StringTemplate processTypeDeclaration(Context context, TypeDeclaration ty
204204 String extensionname = null ;
205205 System .out .println ("processTypesDeclaration " + typedecl .getName ());
206206
207- if (typedecl .getTypeCode ().getKind () == TypeCode .KIND_STRUCT )
207+ if (typedecl .getTypeCode ().getKind () == Kind .KIND_STRUCT )
208208 {
209209 typest = stg_ .getInstanceOf ("struct_type" );
210210 typest .setAttribute ("struct" , typedecl .getTypeCode ());
@@ -216,7 +216,7 @@ public StringTemplate processTypeDeclaration(Context context, TypeDeclaration ty
216216 extensionst .setAttribute ("struct" , typedecl .getTypeCode ());
217217 }
218218 }
219- else if (typedecl .getTypeCode ().getKind () == TypeCode .KIND_UNION )
219+ else if (typedecl .getTypeCode ().getKind () == Kind .KIND_UNION )
220220 {
221221 typest = stg_ .getInstanceOf ("union_type" );
222222 typest .setAttribute ("union" , typedecl .getTypeCode ());
@@ -228,7 +228,7 @@ else if(typedecl.getTypeCode().getKind() == TypeCode.KIND_UNION)
228228 extensionst .setAttribute ("union" , typedecl .getTypeCode ());
229229 }
230230 }
231- else if (typedecl .getTypeCode ().getKind () == TypeCode .KIND_ENUM )
231+ else if (typedecl .getTypeCode ().getKind () == Kind .KIND_ENUM )
232232 {
233233 typest = stg_ .getInstanceOf ("enum_type" );
234234 typest .setAttribute ("enum" , typedecl .getTypeCode ());
@@ -240,7 +240,7 @@ else if(typedecl.getTypeCode().getKind() == TypeCode.KIND_ENUM)
240240 extensionst .setAttribute ("enum" , typedecl .getTypeCode ());
241241 }
242242 }
243- else if (typedecl .getTypeCode ().getKind () == TypeCode .KIND_BITSET )
243+ else if (typedecl .getTypeCode ().getKind () == Kind .KIND_BITSET )
244244 {
245245 typest = stg_ .getInstanceOf ("bitset_type" );
246246 typest .setAttribute ("bitset" , typedecl .getTypeCode ());
0 commit comments