private static class FunctionRewriter.GetterReducer extends FunctionRewriter.SingleReturnStatementReducer
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String |
FACTORY_METHOD_NAME |
(package private) static java.lang.String |
HELPER_SOURCE |
Modifier | Constructor and Description |
---|---|
private |
GetterReducer() |
Modifier and Type | Method and Description |
---|---|
private Node |
getGetPropertyName(Node functionNode)
Checks if the function matches the pattern:
function(
|
java.lang.String |
getHelperSource() |
Node |
reduce(Node node) |
maybeGetSingleReturnRValue
buildCallNode
static final java.lang.String FACTORY_METHOD_NAME
static final java.lang.String HELPER_SOURCE
public java.lang.String getHelperSource()
getHelperSource
in class FunctionRewriter.Reducer
public Node reduce(Node node)
reduce
in class FunctionRewriter.Reducer