Overview | Package | Class | Deprecated | Index | Help
| Groovy 1.7.0
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.codehaus.groovy.ast.builder
Class AstSpecificationCompiler

    java.lang.Object
      org.codehaus.groovy.ast.builder.AstSpecificationCompiler

    @PackageScope
    class AstSpecificationCompiler
    extends Object

Handles parsing the properties from the closure into values that can be referenced. This object is very stateful and not threadsafe. It accumulates expressions in the 'expression' field as they are found and executed within the DSL. Note: this class consists of many one-line method calls. A better implementation might be to take a declarative approach and replace the one-liners with map entries.

author:
  Hamlet D'Arcy

Constructor Summary
`AstSpecificationCompiler(Closure spec)` Creates the DSL compiler.

Method Summary
`List` | `getExpression()` Gets the current generated expression.

Methods inherited from class Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll

Constructor Detail

### AstSpecificationCompiler

    public AstSpecificationCompiler(Closure spec)

  Creates the DSL compiler.

Method Detail

### getExpression

    List getExpression()

  Gets the current generated expression.

Copyright © 2003-2009 The Codehaus. All rights reserved.