org.objectweb.jorm.generator.lib
Class FPNCGenerator.FPNCMatchInfo

java.lang.Object
  extended byTypeHelper
      extended byorg.objectweb.jorm.generator.lib.CommonHelper
          extended byorg.objectweb.jorm.generator.lib.NamingFilterExpressionHelper
              extended byorg.objectweb.jorm.generator.lib.FPNCGenerator.FPNCMatchInfo
All Implemented Interfaces:
Loggable
Enclosing class:
FPNCGenerator

public class FPNCGenerator.FPNCMatchInfo
extends NamingFilterExpressionHelper

See Also:
Serialized Form

Field Summary
 boolean isComposite
          Indicates if the naming is based on a composite name.
 java.lang.String singleFieldName
          When the naming is based on a single field (not a composite).
 PType singleFieldPType
          When the naming is based on a single field (not a composite).
 
Fields inherited from class org.objectweb.jorm.generator.lib.NamingFilterExpressionHelper
field2declarations, filter, logger
 
Fields inherited from class org.objectweb.jorm.generator.lib.CommonHelper
debug, loggerFactory, PN_GET_TYPES
 
Constructor Summary
FPNCGenerator.FPNCMatchInfo(Expression e, boolean isComposite, Logger logger)
          Builds a FPNCMatchInfo fro an expression.
 
Method Summary
protected  void fillMatchInfo(ParameterOperand po)
           
 java.lang.String getSingleFieldName()
           
 PType getSingleFieldPType()
           
 java.lang.String toString()
           
 
Methods inherited from class org.objectweb.jorm.generator.lib.NamingFilterExpressionHelper
fillMatchInfo, getField2declarations, getFilter, operator2String
 
Methods inherited from class org.objectweb.jorm.generator.lib.CommonHelper
buildPemList, canBeNullValue, comparePE, containsCharArrayField, containsCompositeName, containsFieldWhichCanBeNull, containsGenClassRef, containsReference, containsSerializedField, debug, getCNPackageName, getCoderName, getCompositeNameDefEntries, getCompositeReferences, getCTDeclaration, getFQNOfCompositeName, getInheritedClasses, getLogger, getLoggerFactory, getPaGetMethod, getPaSetMethod, getPemPos, getPNameDecodeFunction, getPNameEncodeFunction, getPNameGetterGetFunction, getPNGTypes, getPrimitiveElement, getPrimitiveElement, getProjectionField, getPType, getPTypeBigDecimal, getPTypeBigInteger, getPTypeBoolean, getPTypeByte, getPTypeByteArray, getPTypeChar, getPTypeCharArray, getPTypeDate, getPTypeDouble, getPTypeFloat, getPTypeInt, getPTypeLong, getPTypeOboolean, getPTypeObyte, getPTypeOchar, getPTypeOdouble, getPTypeOfloat, getPTypeOint, getPTypeOlong, getPTypeOshort, getPTypeReference, getPTypeSerialized, getPTypeShort, getPTypeSpaceFieldName, getPTypeString, getRefNameDef, getTupleDecoding, getTupleDecoding, getTupleGetter, isCharArrayType, isClass, isClassRef, isCompositeName, isFieldName, isGenClassRef, isHiddenField, isNull, isPrimitiveElement, isReference, isSerializedField, isSerializedType, isValidString, log, not, setLogger, setLoggerFactory, upperFL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isComposite

public boolean isComposite
Indicates if the naming is based on a composite name.


singleFieldPType

public PType singleFieldPType
When the naming is based on a single field (not a composite). This field is the type of the naming field.


singleFieldName

public java.lang.String singleFieldName
When the naming is based on a single field (not a composite). This field is the name of the naming field. By default this field is equals to 'o'. this field is used as parameter name in match methods.

Constructor Detail

FPNCGenerator.FPNCMatchInfo

public FPNCGenerator.FPNCMatchInfo(Expression e,
                                   boolean isComposite,
                                   Logger logger)
                            throws PException,
                                   ExpressionException
Builds a FPNCMatchInfo fro an expression.

Parameters:
e - is the filter expression
isComposite - indicates if the naming is composite or not. If yes a composite name will be used to reach naming field.
Method Detail

getSingleFieldPType

public PType getSingleFieldPType()

getSingleFieldName

public java.lang.String getSingleFieldName()

toString

public java.lang.String toString()
Overrides:
toString in class NamingFilterExpressionHelper

fillMatchInfo

protected void fillMatchInfo(ParameterOperand po)
                      throws PException,
                             ExpressionException
Overrides:
fillMatchInfo in class NamingFilterExpressionHelper
Throws:
PException
ExpressionException