Package org.apache.commons.ognl.enhance
Class LocalReferenceImpl
- java.lang.Object
-
- org.apache.commons.ognl.enhance.LocalReferenceImpl
-
- All Implemented Interfaces:
LocalReference
public class LocalReferenceImpl extends java.lang.Object implements LocalReference
Implementation ofLocalReference.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringexpressionprivate java.lang.Stringnameprivate java.lang.Class<?>type
-
Constructor Summary
Constructors Constructor Description LocalReferenceImpl(java.lang.String name, java.lang.String expression, java.lang.Class<?> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetExpression()The expression that sets the value, ie the part after.refName = java.lang.StringgetName()The name of the assigned variable reference.java.lang.Class<?>getType()The type of reference.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
The name of the assigned variable reference.- Specified by:
getNamein interfaceLocalReference- Returns:
- The name of the reference as it will be when compiled.
-
getExpression
public java.lang.String getExpression()
The expression that sets the value, ie the part after.refName = - Specified by:
getExpressionin interfaceLocalReference- Returns:
- The setting expression.
-
getType
public java.lang.Class<?> getType()
The type of reference.- Specified by:
getTypein interfaceLocalReference- Returns:
- The type.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-