ConstantExpression represents a constant expression.
ConstantExpression
In other words, {@link #evaluate} returns a value independent of the context.
90919293949596979899100
if ( propertyName != null && propertyName.length() > 0 ) { configureDescriptor(descriptor); } else { String value = attributes.getValue( "value" ); if ( value != null ) { descriptor.setTextExpression( new ConstantExpression( value ) ); } } Object top = digester.peek(); if ( top instanceof ElementDescriptor ) {
167168169170171172173174175176177
forceAccessible); } else { String value = attributes.getValue("value"); if (value != null) { descriptor.setTextExpression(new ConstantExpression(value)); } } Object top = digester.peek(); if (top instanceof XMLBeanInfo) {
7576777879808182838485
throw new SAXException( "You cannot specify attribute 'value' together with either " + " the 'property' or 'type' attributes"); } // fixed value text descriptor.setTextExpression( new ConstantExpression( value ) ); } else { // property based text descriptor.setPropertyName( propertyName );
8283848586878889909192
122123124125126127128129130131132
configureDescriptor(descriptor, attributes.getValue( "updater" )); } else { String value = attributes.getValue( "value" ); if ( value != null ) { descriptor.setTextExpression( new ConstantExpression( value ) ); } } Object top = digester.peek(); if ( top instanceof XMLBeanInfo ) {
7475767778798081828384
129130131132133134135136137138139
8990919293949596979899
144145146147148149150151152153154