org.glassfish.pfl.dynamic.codegen.impl
Class ExpressionFactory.ExpressionBase

java.lang.Object
  extended by org.glassfish.pfl.dynamic.codegen.impl.AttributedObjectBase
      extended by org.glassfish.pfl.dynamic.codegen.impl.NodeBase
          extended by org.glassfish.pfl.dynamic.codegen.impl.ExpressionFactory.ExpressionBase
All Implemented Interfaces:
AttributedObject, ExpressionInternal, Node, Statement, Expression, CopyInterceptor
Direct Known Subclasses:
ExpressionFactory.ArrayIndexExpression, ExpressionFactory.ArrayLengthExpression, ExpressionFactory.BinaryOperatorExpression, ExpressionFactory.CallExpression, ExpressionFactory.CastExpression, ExpressionFactory.ConstantExpression, ExpressionFactory.FieldAccessExpressionBase, ExpressionFactory.IfExpression, ExpressionFactory.InstofExpression, ExpressionFactory.NewArrExpression, ExpressionFactory.NewObjExpression, ExpressionFactory.SuperCallExpression, ExpressionFactory.SuperObjExpression, ExpressionFactory.ThisExpression, ExpressionFactory.ThisObjExpression, ExpressionFactory.UnaryOperatorExpression, ExpressionFactory.VariableImpl, ExpressionFactory.VoidExpression
Enclosing class:
ExpressionFactory

public abstract static class ExpressionFactory.ExpressionBase
extends NodeBase
implements ExpressionInternal


Constructor Summary
ExpressionFactory.ExpressionBase(ExpressionFactory ef)
           
 
Method Summary
abstract  void accept(Visitor v)
          Accept the visitor and allow it to perform actions on this Node.
<T extends Node>
T
copy(Class<T> cls)
          Make a deep copy of this node.
<T extends Node>
T
copy(Node newParent, Class<T> cls)
          Copy setting a new parent in the result.
 boolean isAssignable()
           
 
Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.NodeBase
getAncestor, id, parent, parent, postCopy, preCopy, toString
 
Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.AttributedObjectBase
attributes, get, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.glassfish.pfl.dynamic.codegen.impl.ExpressionInternal
type
 
Methods inherited from interface org.glassfish.pfl.dynamic.codegen.impl.Node
getAncestor, id, parent, parent
 
Methods inherited from interface org.glassfish.pfl.dynamic.codegen.impl.AttributedObject
attributes, get, set
 

Constructor Detail

ExpressionFactory.ExpressionBase

public ExpressionFactory.ExpressionBase(ExpressionFactory ef)
Method Detail

isAssignable

public boolean isAssignable()
Specified by:
isAssignable in interface ExpressionInternal

copy

public <T extends Node> T copy(Class<T> cls)
Description copied from interface: Node
Make a deep copy of this node. If nn = n.copy(), then n.parent() == nn.parent(), which also means that the parent is NOT copied.

Specified by:
copy in interface Node
Overrides:
copy in class NodeBase

copy

public <T extends Node> T copy(Node newParent,
                               Class<T> cls)
Description copied from interface: Node
Copy setting a new parent in the result.

Specified by:
copy in interface Node
Overrides:
copy in class NodeBase

accept

public abstract void accept(Visitor v)
Description copied from interface: Node
Accept the visitor and allow it to perform actions on this Node.

Specified by:
accept in interface Node
Overrides:
accept in class NodeBase


Copyright © 2013 Oracle. All Rights Reserved.