Package spoon.reflect.declaration

Examples of spoon.reflect.declaration.CtField


      CtClass ctClass = launcher.getFactory().Class().create("com.example.TestClass1");
      ctPackage.getTypes().add(ctClass);
      HashSet<ModifierKind> modifiers = new HashSet<ModifierKind>();
      modifiers.add(ModifierKind.PUBLIC);
      CtTypeReference ctTypeRef = launcher.getFactory().Type().createReference(String.class.getName());
      @SuppressWarnings("unused")
      CtField ctField = launcher.getFactory().Field().create(ctClass, modifiers, ctTypeRef, "myField");
      scanner.visitCtPackage(ctPackage);     
     
      XSDComplexTypeDefinition complexType = scanner.typeXSDComplexTypeMap.get(ctClass);
      XSDParticle parentParticle = (XSDParticle)complexType.getContent();
View Full Code Here

TOP

Related Classes of spoon.reflect.declaration.CtField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.