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

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
              extended by org.glassfish.pfl.dynamic.codegen.impl.ExpressionFactory.VariableImpl
All Implemented Interfaces:
AttributedObject, ExpressionInternal, Node, Statement, VariableInternal, Expression, Variable, CopyInterceptor
Enclosing class:
ExpressionFactory

public static final class ExpressionFactory.VariableImpl
extends ExpressionFactory.ExpressionBase
implements VariableInternal


Method Summary
 void accept(Visitor visitor)
          Accept the visitor and allow it to perform actions on this Node.
 void close()
          Mark the variable so that it is no longer in scope.
 boolean equals(Object obj)
           
 int hashCode()
           
 String ident()
          Return the name of this variable.
 boolean isAssignable()
           
 boolean isAvailable()
          Returns true if this variable is still in scope.
 String toString()
           
 Type type()
          Return the type of this variable.
 
Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.ExpressionFactory.ExpressionBase
copy, copy
 
Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.NodeBase
getAncestor, id, parent, parent, postCopy, preCopy
 
Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.AttributedObjectBase
attributes, get, set
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.glassfish.pfl.dynamic.codegen.impl.Node
copy, copy, getAncestor, id, parent, parent
 
Methods inherited from interface org.glassfish.pfl.dynamic.codegen.impl.AttributedObject
attributes, get, set
 

Method Detail

isAssignable

public boolean isAssignable()
Specified by:
isAssignable in interface ExpressionInternal
Overrides:
isAssignable in class ExpressionFactory.ExpressionBase

ident

public String ident()
Description copied from interface: Variable
Return the name of this variable.

Specified by:
ident in interface Variable

isAvailable

public boolean isAvailable()
Description copied from interface: VariableInternal
Returns true if this variable is still in scope. Only variables still in scope may be referenced in expressions.

Specified by:
isAvailable in interface VariableInternal

close

public void close()
Description copied from interface: VariableInternal
Mark the variable so that it is no longer in scope.

Specified by:
close in interface VariableInternal

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class NodeBase

type

public Type type()
Description copied from interface: Variable
Return the type of this variable.

Specified by:
type in interface ExpressionInternal
Specified by:
type in interface Variable
Returns:
The variable type.

accept

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

Specified by:
accept in interface Node
Specified by:
accept in class ExpressionFactory.ExpressionBase


Copyright © 2013 Oracle. All Rights Reserved.