@Target(value={}) @Retention(value=SOURCE) public @interface SubExpr
Note: This annotation cannot be used to annotate any source code
element. Its sole purpose is to be used in the value of GenerateEmbeddedDSL.where().
GenerateEmbeddedDSL.syntax(),
GenerateEmbeddedDSL.where()| Modifier and Type | Required Element and Description |
|---|---|
String |
definedAs
The definition of this subexpression.
|
String |
name
The name of this subexpression.
|
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
ownScope
Specifies whether this subexpression defines its own scope.
|
public abstract String name
public abstract String definedAs
GenerateEmbeddedDSL.syntax().public abstract boolean ownScope
true,
the operators ^, /, and ! refer to the beginning, middle,
or end, respectively, of this subexpression. The default is false, meaning they
refer to the nearest enclosing subexpression defining its own scope (or the top-level
expression).Copyright © 2013-2014. All Rights Reserved.