@Override public void call(SourceUnit source, GeneratorContext context, ClassNode node) throws CompilationFailedException { VariableScopeVisitor scopeVisitor = new VariableScopeVisitor(source); scopeVisitor.visitClass(node); new JavaAwareResolveVisitor(JavaStubCompilationUnit.this).startResolving(node, source); } }, Phases.CONVERSION);
@Override public void visitConstructor(ConstructorNode node) { super.visitConstructor(node); Statement code = node.getCode(); Expression cce = getConstructorCall(code); if (cce==null) return; cce.visit(this); }
public void call(final SourceUnit source, final GeneratorContext context, final ClassNode node) throws CompilationFailedException { if (haveJavaSources()) { ResolveVisitor v = new JavaAwareResolveVisitor(JavaStubCompilationUnit.this); v.startResolving(node, source); } } }
public void call(final SourceUnit source, final GeneratorContext context, final ClassNode node) throws CompilationFailedException { if (haveJavaSources()) { ResolveVisitor v = new JavaAwareResolveVisitor(JavaStubCompilationUnit.this); v.startResolving(node, source); } } }
public void call(SourceUnit source, GeneratorContext context, ClassNode node) throws CompilationFailedException { if (!javaSources.isEmpty()) { VariableScopeVisitor scopeVisitor = new VariableScopeVisitor(source); scopeVisitor.visitClass(node); new JavaAwareResolveVisitor(JavaAwareCompilationUnit.this).startResolving(node, source); AnnotationConstantsVisitor acv = new AnnotationConstantsVisitor(); acv.visitClass(node, source); } } }, Phases.CONVERSION);
public void call(final SourceUnit source, final GeneratorContext context, final ClassNode node) throws CompilationFailedException { if (haveJavaSources()) { ResolveVisitor v = new JavaAwareResolveVisitor(JavaStubCompilationUnit.this); v.startResolving(node, source); } } }
private static Expression getConstructorCall(Statement code) { if (code==null) return null; if (code instanceof BlockStatement) { BlockStatement bs = (BlockStatement) code; if (bs.isEmpty()) return null; return getConstructorCall(bs.getStatements().get(0)); } if (!(code instanceof ExpressionStatement)) return null; ExpressionStatement es = (ExpressionStatement) code; Expression exp = es.getExpression(); if (!(exp instanceof ConstructorCallExpression)) return null; ConstructorCallExpression cce = (ConstructorCallExpression) exp; if (!cce.isSpecialCall()) return null; return cce; }
public void call(SourceUnit source, GeneratorContext context, ClassNode node) throws CompilationFailedException { if (javaSources.size() != 0) new JavaAwareResolveVisitor(JavaAwareCompilationUnit.this).startResolving(node,source); } },Phases.CONVERSION);
public void call(SourceUnit source, GeneratorContext context, ClassNode node) throws CompilationFailedException { if (javaSources.size() != 0) new JavaAwareResolveVisitor(JavaAwareCompilationUnit.this).startResolving(node,source); } },Phases.CONVERSION);
public void call(SourceUnit source, GeneratorContext context, ClassNode node) throws CompilationFailedException { if (javaSources.size() != 0) new JavaAwareResolveVisitor(JavaAwareCompilationUnit.this).startResolving(node,source); } },Phases.CONVERSION);
public void call(final SourceUnit source, final GeneratorContext context, final ClassNode node) throws CompilationFailedException { new VariableScopeVisitor(source).visitClass(node); new JavaAwareResolveVisitor(JavaStubCompilationUnit.this).startResolving(node, source); } },Phases.CONVERSION);
@Override public void call(SourceUnit source, GeneratorContext context, ClassNode node) throws CompilationFailedException { VariableScopeVisitor scopeVisitor = new VariableScopeVisitor(source); scopeVisitor.visitClass(node); new JavaAwareResolveVisitor(JavaStubCompilationUnit.this).startResolving(node,source); } },Phases.CONVERSION);
public void call(final SourceUnit source, final GeneratorContext context, final ClassNode node) throws CompilationFailedException { new VariableScopeVisitor(source).visitClass(node); new JavaAwareResolveVisitor(JavaStubCompilationUnit.this).startResolving(node, source); } },Phases.CONVERSION);
public void call(SourceUnit source, GeneratorContext context, ClassNode node) throws CompilationFailedException { if (javaSources.size() != 0) { VariableScopeVisitor scopeVisitor = new VariableScopeVisitor(source); scopeVisitor.visitClass(node); new JavaAwareResolveVisitor(JavaAwareCompilationUnit.this).startResolving(node,source); } } },Phases.CONVERSION);