org.objectweb.jorm.generator.lib
Class FPNCGenerator.FPNCMatchInfo
java.lang.Object
TypeHelper
org.objectweb.jorm.generator.lib.CommonHelper
org.objectweb.jorm.generator.lib.NamingFilterExpressionHelper
org.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). |
Constructor Summary |
FPNCGenerator.FPNCMatchInfo(Expression e,
boolean isComposite,
Logger logger)
Builds a FPNCMatchInfo fro an expression. |
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 |
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.
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 expressionisComposite
- indicates if the naming is composite or not. If yes a
composite name will be used to reach naming field.
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