/** * Constructs a string constant value. The initial value is "". */ public StringMemberValue(ConstPool cp) { super('s', cp); setValue(""); }
/** * Constructs a string constant value. * * @param str the initial value. */ public StringMemberValue(String str, ConstPool cp) { super('s', cp); setValue(str); }
/** * Constructs a string constant value. * * @param str the initial value. */ public StringMemberValue(String str, ConstPool cp) { super('s', cp); setValue(str); }
/** * Constructs a string constant value. The initial value is "". */ public StringMemberValue(ConstPool cp) { super('s', cp); setValue(""); }
/** * Prepare any {@link QueryHint} declarations * * @param constantPool * @param queryHints * @param hint */ protected void prepareQueryHints(ConstPool constantPool, List<AnnotationMemberValue> queryHints, QueryHint hint) { Annotation queryHint = new Annotation(QueryHint.class.getName(), constantPool); StringMemberValue hintName = new StringMemberValue(constantPool); hintName.setValue(hint.name()); queryHint.addMemberValue("name", hintName); StringMemberValue hintValue = new StringMemberValue(constantPool); hintValue.setValue(hint.value()); queryHint.addMemberValue("value", hintValue); AnnotationMemberValue hintAnnotation = new AnnotationMemberValue(queryHint, constantPool); queryHints.add(hintAnnotation); } }
StringMemberValue value = (StringMemberValue) annotation.getMemberValue(key); String oldTableName = value.getValue(); value.setValue(tableName); if (LOG.isDebugEnabled()) { LOG.debug("Altering " + classFile.getName() + " table name from: " + oldTableName + "" +
((ClassMemberValue) memberValue).setValue(((Class<?>) value).getName()); } else if (memberValue instanceof StringMemberValue) { ((StringMemberValue) memberValue).setValue((String) value); } else if (memberValue instanceof EnumMemberValue) { ((EnumMemberValue) memberValue).setValue(((Enum<?>) value).name());
((ClassMemberValue) memberValue).setValue(((Class<?>) value).getName()); } else if (memberValue instanceof StringMemberValue) { ((StringMemberValue) memberValue).setValue((String) value); } else if (memberValue instanceof EnumMemberValue) { ((EnumMemberValue) memberValue).setValue(((Enum<?>) value).name());
Annotation clobType = new Annotation(Type.class.getName(), constantPool); StringMemberValue type = new StringMemberValue(constantPool); type.setValue(MaterializedClobType.class.getName()); clobType.addMemberValue("type", type); annotationsAttribute.addAnnotation(clobType);
Annotation discriminator = new Annotation(DiscriminatorColumn.class.getName(), constantPool); StringMemberValue name = new StringMemberValue(constantPool); name.setValue(myInfo.getDiscriminatorName()); discriminator.addMemberValue("name", name); EnumMemberValue discriminatorType = (EnumMemberValue) Annotation.createMemberValue(constantPool, pool.makeClass("DiscriminatorType"));
/** * Constructs a string constant value. The initial value is "". */ public StringMemberValue(ConstPool cp) { super('s', cp); setValue(""); }
/** * Constructs a string constant value. The initial value is "". */ public StringMemberValue(ConstPool cp) { super('s', cp); setValue(""); }
/** * Constructs a string constant value. * * @param str the initial value. */ public StringMemberValue(String str, ConstPool cp) { super('s', cp); setValue(str); }
/** * Constructs a string constant value. * * @param str the initial value. */ public StringMemberValue(String str, ConstPool cp) { super('s', cp); setValue(str); }
/** * Constructs a string constant value. * * @param str the initial value. */ public StringMemberValue(String str, ConstPool cp) { super('s', cp); setValue(str); }
/** * Constructs a string constant value. * * @param str the initial value. */ public StringMemberValue(String str, ConstPool cp) { super('s', cp); setValue(str); }
/** * Constructs a string constant value. The initial value is "". */ public StringMemberValue(ConstPool cp) { super('s', cp); setValue(""); }
public Object visit(ASTString node, Object data) { StringMemberValue mv = (StringMemberValue) data; mv.setValue(node.getValue()); return null; }