Package spoon.reflect.declaration

Examples of spoon.reflect.declaration.CtClass


   
    jbprocess.annotations.PartnerLink plinkAnnotation = f.getAnnotation(jbprocess.annotations.PartnerLink.class);
    if (plinkAnnotation == null){
      if (fieldPartnerLinkMap.get(f) == null && fieldType != null){     
        if (f.getDeclaringType() instanceof CtClass){ 
          CtClass ctClass = (CtClass)f.getDeclaringType();       
          if (isThisClassABpelProcess(ctClass) && fieldVariableMap.get(f) == null){         
            org.eclipse.bpel.model.Process process = classProcessMap.get(f.getDeclaringType());
            if (process != null){
              String variableName = f.getSimpleName();
              Variable var = BPELFactory.eINSTANCE.createVariable();
View Full Code Here


  public void ClassMappingTest1(){
    try {
      clearMappings();
     
      CtPackage ctPackage = launcher.getFactory().Package().getOrCreate("com.example");
      CtClass ctClass = launcher.getFactory().Class().create("com.example.TestClass1");
      ctPackage.getTypes().add(ctClass);
      scanner.visitCtPackage(ctPackage)// calls visitCtClass which creates the complex type mapping
     
      XSDComplexTypeDefinition complexType = scanner.typeXSDComplexTypeMap.get(ctClass);
      assertTrue(complexType != null);
      assertTrue(complexType.getName().equals(ctClass.getSimpleName()));
      assertTrue(complexType.getTargetNamespace().equals(ctPackage.getQualifiedName()));
           
    }catch(Exception e){
      System.err.println("Exception: " + e.getMessage());
      assertTrue(false);
View Full Code Here

    try {

      clearMappings();
     
      CtPackage ctPackage = launcher.getFactory().Package().getOrCreate("com.example");
      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")
View Full Code Here

TOP

Related Classes of spoon.reflect.declaration.CtClass

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.