public class

ClassNameExpression

extends Object
implements Expression
java.lang.Object
   ↳ org.apache.commons.betwixt.expression.ClassNameExpression

Class Overview

ClassNameExpression returns the current class name of the context bean

Summary

Public Constructors
ClassNameExpression()
Base constructor
Public Methods
Object evaluate(Context context)
Evaluate on the current context and return the class name
String toString()
Returns something useful for logging.
void update(Context context, String newValue)
Do nothing.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.commons.betwixt.expression.Expression

Public Constructors

public ClassNameExpression ()

Base constructor

Public Methods

public Object evaluate (Context context)

Evaluate on the current context and return the class name

Parameters
context the context against which this expression will be evaluated
Returns
  • the name of the class of the current contex bean

public String toString ()

Returns something useful for logging.

Returns
  • something useful for logging

public void update (Context context, String newValue)

Do nothing.

Parameters
context update this Context
newValue the new value for this expression
See Also