@Override public void visitPackageDef(GroovySourceAST t, int visit) { if (visit == OPENING_VISIT && deferSetup) { String packageWithSlashes = extractImportPath(t); setUpImports(packageWithSlashes, links, isGroovy, className); } }
public SimpleGroovyClassDocAssembler(String packagePath, String file, SourceBuffer sourceBuffer, List<LinkArgument> links, Properties properties, boolean isGroovy) { this.sourceBuffer = sourceBuffer; this.packagePath = packagePath; this.links = links; this.properties = properties; this.isGroovy = isGroovy; stack = new Stack<GroovySourceAST>(); classDocs = new HashMap<String, GroovyClassDoc>(); className = file; if (file != null) { // todo: replace this simple idea of default class name int idx = file.lastIndexOf("."); className = file.substring(0, idx); } deferSetup = packagePath.equals("DefaultPackage"); importedClassesAndPackages = new ArrayList<String>(); aliases = new HashMap<String, String>(); if (!deferSetup) setUpImports(packagePath, links, isGroovy, className); lastLineCol = new LineColumn(1, 1); }
@Override public void visitPackageDef(GroovySourceAST t, int visit) { if (visit == OPENING_VISIT && deferSetup) { String packageWithSlashes = extractImportPath(t); setUpImports(packageWithSlashes, links, isGroovy, className); } }
@Override public void visitPackageDef(GroovySourceAST t, int visit) { if (visit == OPENING_VISIT && deferSetup) { String packageWithSlashes = extractImportPath(t); setUpImports(packageWithSlashes, links, isGroovy, className); } }
public SimpleGroovyClassDocAssembler(String packagePath, String file, SourceBuffer sourceBuffer, List<LinkArgument> links, Properties properties, boolean isGroovy) { this.sourceBuffer = sourceBuffer; this.packagePath = packagePath; this.links = links; this.properties = properties; this.isGroovy = isGroovy; stack = new Stack<GroovySourceAST>(); classDocs = new HashMap<String, GroovyClassDoc>(); className = file; if (file != null) { // todo: replace this simple idea of default class name int idx = file.lastIndexOf("."); className = file.substring(0, idx); } deferSetup = packagePath.equals("DefaultPackage"); importedClassesAndPackages = new ArrayList<String>(); aliases = new HashMap<String, String>(); if (!deferSetup) setUpImports(packagePath, links, isGroovy, className); lastLineCol = new LineColumn(1, 1); }
public SimpleGroovyClassDocAssembler(String packagePath, String file, SourceBuffer sourceBuffer, List<LinkArgument> links, Properties properties, boolean isGroovy) { this.sourceBuffer = sourceBuffer; this.packagePath = packagePath; this.links = links; this.properties = properties; this.isGroovy = isGroovy; stack = new Stack<GroovySourceAST>(); classDocs = new LinkedHashMap<String, GroovyClassDoc>(); if (file != null && file.contains(".")) { // todo: replace this simple idea of default class name int idx = file.lastIndexOf("."); className = file.substring(0, idx); } else { className = file; } deferSetup = packagePath.equals("DefaultPackage"); importedClassesAndPackages = new ArrayList<String>(); aliases = new LinkedHashMap<String, String>(); if (!deferSetup) setUpImports(packagePath, links, isGroovy, className); lastLineCol = new LineColumn(1, 1); }