Package com.halware.nakedide.eclipse.ext.annot.common

Examples of com.halware.nakedide.eclipse.ext.annot.common.AbstractNode


     * @return the object, possibly with a value of <tt>null</tt> if there is no
     *         such member), or
     *         a simple <tt>null</tt> if there is no annotation.
     */
    protected Object evaluateMemberAsExpression(Object object, String memberName) {
        AbstractNode node = (AbstractNode)object;
        Annotation annotation = annotation(node);
        if (annotation == null) {
            return nullForThisKind();
        }
        if (annotation instanceof MarkerAnnotation && "value".equals(memberName)) {
View Full Code Here


   
  public void modify(Object object, Object value) {
    if (!(object instanceof AbstractNode)) {
      return;
    }
    AbstractNode node = (AbstractNode) object;
    Annotation annotation = annotation(node);
    if annotation != null &&
            !(annotation.isSingleMemberAnnotation() ||
              annotation.isMarkerAnnotation()          )) {
      return;
View Full Code Here

    /**
   * @param value - an Object
   */
  public void modify(Object object, Object value) {
    AbstractNode node = (AbstractNode)object;
    Annotation annotation = annotation(node);
    if (annotation != null && !annotation.isNormalAnnotation()) {
      return;
    }
       
View Full Code Here

  public MarkerAnnotationEvaluatorAndModifier(String annotationFullyQualifiedName) {
    super(annotationFullyQualifiedName, MetadataDescriptorKind.BOOLEAN);
  }

  public Object evaluate(Object object) {
    AbstractNode node = (AbstractNode)object;
    return isPresent(node);
  }
View Full Code Here

    AbstractNode node = (AbstractNode)object;
    return isPresent(node);
  }
 
  public boolean isPresent(Object object) {
    AbstractNode node = (AbstractNode)object;
    return annotation(node) != null;
  }
View Full Code Here

    AbstractNode node = (AbstractNode)object;
    return annotation(node) != null;
  }

  public void modify(Object object, Object value) {
    AbstractNode node = (AbstractNode)object;
   
    if (!(value instanceof Boolean)) {
      return;
    }
    Boolean present = (Boolean)value;
View Full Code Here

   * @return a <tt>LinkedHashMap&lt;String, Object></tt> keyed by member names,
   *         (possibly with a value of <tt>null</tt> if there is no such member), or
   *         a simple <tt>null</tt> if there is no annotation.
   */
  public Object evaluate(Object object) {
    AbstractNode node = (AbstractNode)object;
    Annotation annotation = annotation(node);
    if (annotation == null) {
      return null;
    }
    LinkedHashMap<String, Object> elementValues = memberValuesOf(object, annotation);
View Full Code Here

 
  /**
   * @param value - a LinkedHashMap<String,Object>.
   */
  public void modify(Object object, Object value) {
    AbstractNode node = (AbstractNode)object;
    Annotation annotation = annotation(node);
    if (annotation != null && !annotation.isNormalAnnotation()) {
      return;
    }
    LinkedHashMap<String, Object> elementValues = Generics.asT(value);
View Full Code Here

TOP

Related Classes of com.halware.nakedide.eclipse.ext.annot.common.AbstractNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.