terp - the Codemesh Modular
Template Interpreter v1.3.309

com.codemesh.terp.api
Interface Rvalue

All Known Implementing Classes:
FileContentsGetter.RContents, FileContentsGetter.RLines, FileContentsGetter.RText, IndexOperatorGetter.R, Rvalue.AbstractRvalue, Rvalue.FieldInvoker, Rvalue.ForMap, Rvalue.Holder, Rvalue.MethodInvoker, Rvalue.PropertyHolder

public interface Rvalue

A right-hand side value.


Nested Class Summary
static class Rvalue.AbstractRvalue
           
static class Rvalue.FieldInvoker
           
static class Rvalue.ForMap
          A value getter for a string map.
static class Rvalue.Holder
           
static class Rvalue.MethodInvoker
           
static class Rvalue.PropertyHolder<T>
          A hoder type that can be used to provide a level of indirection for collections.
 
Method Summary
 java.lang.Object get()
          Returns the value referenced by the instance.
 Lvalue toLvalue()
          Returns an Lvalue for the same datum that is represented by this Rvalue.
 

Method Detail

get

java.lang.Object get()
Returns the value referenced by the instance.

Returns:
the dereferenced value.
Throws:
TerpException - if an exceptin occurs during the operation.

toLvalue

Lvalue toLvalue()
Returns an Lvalue for the same datum that is represented by this Rvalue.

Returns:
an Lvalue or null if there is no corresponding Lvalue, for example because the item is readonly..

terp - the Codemesh Modular
Template Interpreter v1.3.309

Copyright © 2008-2012 by Codemesh, Inc. All Rights Reserved.