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.String
expression
private java.lang.String
name
private 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 boolean
equals(java.lang.Object o)
java.lang.String
getExpression()
The expression that sets the value, ie the part after
.refName = java.lang.String
getName()
The name of the assigned variable reference.java.lang.Class<?>
getType()
The type of reference.int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
The name of the assigned variable reference.- Specified by:
getName
in 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:
getExpression
in interfaceLocalReference
- Returns:
- The setting expression.
-
getType
public java.lang.Class<?> getType()
The type of reference.- Specified by:
getType
in interfaceLocalReference
- Returns:
- The type.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-