Changeset 53 for trunk/t3d/src/org/etsi
- Timestamp:
- 02/21/12 11:13:27 (13 years ago)
- Location:
- trunk/t3d/src/org/etsi/t3d
- Files:
-
- 2 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/t3d/src/org/etsi/t3d/DependencyPrinter.java
r10 r53 87 87 if (symbol instanceof EnumSymbol) { 88 88 //TODO: need to add handling in documentation and imports generators too probably 89 declarationNode = symbol.getSurroundingScope().getScopeSymbol().getDeclarationNode(); 89 declarationNode = symbol.getDeclarationNode(); 90 //declarationNode = symbol.getSurroundingScope().getScopeSymbol().getDeclarationNode(); 90 91 id = VisitorCommonFunctions.getIdFromIdentifier(declarationNode); 91 92 } -
trunk/t3d/src/org/etsi/t3d/ImportPrinter.java
r33 r53 32 32 } 33 33 34 p rivatevoid closeModule(){34 public void closeModule(){ 35 35 writeStream("\n</module>"); 36 36 } … … 88 88 } 89 89 } 90 closeModule();90 //closeModule(); 91 91 } 92 92 93 93 private String getImportBehavior(LocationAST importDef){ 94 94 String b = VisitorCommonFunctions.getWholeElement(importDef, true).replaceAll("\\r", ""); 95 String allWithExcepts = ""; 96 if (!ASTUtil.findTypeNodes(importDef, TTCN3ParserTokenTypes.ExceptsDef).isEmpty()){ 97 allWithExcepts = "all except "; 98 } 95 99 b = StringEscapeUtils.escapeXml(b); 96 100 b = b.replaceAll("\\n", "").trim(); … … 100 104 b = b.replaceFirst("import from \\w* ", ""); 101 105 b = VisitorCommonFunctions.replaceReferences(b, VisitorCommonFunctions.getReferences(importDef)); 106 b = allWithExcepts+b; 102 107 return b.trim(); 103 108 } -
trunk/t3d/src/org/etsi/t3d/T3D.java
r43 r53 29 29 import org.etsi.t3d.config.DocumentationProfile; 30 30 import org.etsi.t3d.config.T3DOptionsHandler; 31 import org.etsi.t3d.exceptions.TTCN3BehaviorException;32 import org.etsi.t3d.exceptions.TTCN3ParserException;33 31 import org.etsi.t3d.visitor.DependencyVisitor; 34 32 import org.etsi.t3d.visitor.ImportVisitor; … … 49 47 import de.ugoe.cs.swe.trex.core.analyzer.rfparser.TTCN3AnalyzerFlyweightFactory; 50 48 import de.ugoe.cs.swe.trex.core.analyzer.rfparser.TTCN3Parser; 49 import de.ugoe.cs.swe.trex.core.visitor.TTCN3BehaviorException; 50 import de.ugoe.cs.swe.trex.core.visitor.TTCN3ParserException; 51 51 52 52 public class T3D { 53 53 54 public static String versionNumber = "v1.0. 2";54 public static String versionNumber = "v1.0.3"; 55 55 //set during automated server builds 56 56 private static String buildStamp = "---BUILD_STAMP---"; … … 771 771 stacktrace+="\n "+ste.toString(); 772 772 } 773 System.err.println("ERROR: A problem occurred while running T3 Q" +773 System.err.println("ERROR: A problem occurred while running T3D" + 774 774 "\n Problem type: " + 775 775 e + 776 776 "\n Stacktrace:" + 777 777 stacktrace + 778 "\n Run T3 Qwith --verbosity=DEBUG for a more detailed report" );778 "\n Run T3D with --verbosity=DEBUG for a more detailed report" ); 779 779 } 780 780 } -
trunk/t3d/src/org/etsi/t3d/visitor/DependencyVisitor.java
r9 r53 5 5 6 6 import org.etsi.t3d.DependencyPrinter; 7 import org.etsi.t3d.exceptions.TTCN3BehaviorException;8 7 9 8 import de.ugoe.cs.swe.trex.core.analyzer.rfparser.ASTUtil; … … 12 11 import de.ugoe.cs.swe.trex.core.analyzer.rfparser.symboltable.EnumSymbol; 13 12 import de.ugoe.cs.swe.trex.core.analyzer.rfparser.symboltable.Symbol; 13 import de.ugoe.cs.swe.trex.core.visitor.AbstractVisitor; 14 import de.ugoe.cs.swe.trex.core.visitor.TTCN3BehaviorException; 14 15 15 16 public class DependencyVisitor extends AbstractVisitor { -
trunk/t3d/src/org/etsi/t3d/visitor/ImportVisitor.java
r34 r53 5 5 import org.etsi.t3d.ImportPrinter; 6 6 import org.etsi.t3d.T3D; 7 import org.etsi.t3d.exceptions.TTCN3BehaviorException;8 7 9 8 import de.ugoe.cs.swe.trex.core.analyzer.rfparser.LocationAST; 9 import de.ugoe.cs.swe.trex.core.visitor.AbstractVisitor; 10 import de.ugoe.cs.swe.trex.core.visitor.TTCN3BehaviorException; 10 11 11 12 public class ImportVisitor extends AbstractVisitor { … … 30 31 importPrinter.newModule(VisitorCommonFunctions.getName(node)); 31 32 importPrinter.printImportView(node); 33 importPrinter.closeModule(); 32 34 if(T3D.activeProfile.isCheckCyclicImports()) 33 35 importPrinter.checkForCyclicImports(node, new LinkedList<String>()); -
trunk/t3d/src/org/etsi/t3d/visitor/T3DVisitor.java
r7 r53 7 7 import org.etsi.t3d.T3D; 8 8 import org.etsi.t3d.XMLPrinter; 9 import org.etsi.t3d.exceptions.TTCN3BehaviorException;10 9 11 10 import de.ugoe.cs.swe.trex.core.analyzer.rfparser.ASTUtil; … … 13 12 import de.ugoe.cs.swe.trex.core.analyzer.rfparser.TTCN3ParserTokenTypes; 14 13 import de.ugoe.cs.swe.trex.core.analyzer.rfparser.TokenWithIndex; 14 import de.ugoe.cs.swe.trex.core.visitor.AbstractVisitor; 15 import de.ugoe.cs.swe.trex.core.visitor.TTCN3BehaviorException; 15 16 16 17 import elements.*;
Note: See TracChangeset
for help on using the changeset viewer.