Lombok - v0.11.4

lombok.eclipse.handlers
Class HandleFieldDefaults

java.lang.Object
  extended by lombok.eclipse.EclipseAnnotationHandler<FieldDefaults>
      extended by lombok.eclipse.handlers.HandleFieldDefaults

@ProviderFor(value=EclipseAnnotationHandler.class)
public class HandleFieldDefaults
extends EclipseAnnotationHandler<FieldDefaults>

Handles the lombok.FieldDefaults annotation for eclipse.


Constructor Summary
HandleFieldDefaults()
           
 
Method Summary
 boolean generateFieldDefaultsForType(EclipseNode typeNode, EclipseNode pos, AccessLevel level, boolean makeFinal, boolean checkForTypeLevelFieldDefaults)
           
 void handle(AnnotationValues<FieldDefaults> annotation, org.eclipse.jdt.internal.compiler.ast.Annotation ast, EclipseNode annotationNode)
          Called when an annotation is found that is likely to match the annotation you're interested in.
 void setFieldDefaultsForField(EclipseNode fieldNode, org.eclipse.jdt.internal.compiler.ast.ASTNode pos, AccessLevel level, boolean makeFinal)
           
 
Methods inherited from class lombok.eclipse.EclipseAnnotationHandler
preHandle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandleFieldDefaults

public HandleFieldDefaults()
Method Detail

generateFieldDefaultsForType

public boolean generateFieldDefaultsForType(EclipseNode typeNode,
                                            EclipseNode pos,
                                            AccessLevel level,
                                            boolean makeFinal,
                                            boolean checkForTypeLevelFieldDefaults)

setFieldDefaultsForField

public void setFieldDefaultsForField(EclipseNode fieldNode,
                                     org.eclipse.jdt.internal.compiler.ast.ASTNode pos,
                                     AccessLevel level,
                                     boolean makeFinal)

handle

public void handle(AnnotationValues<FieldDefaults> annotation,
                   org.eclipse.jdt.internal.compiler.ast.Annotation ast,
                   EclipseNode annotationNode)
Description copied from class: EclipseAnnotationHandler
Called when an annotation is found that is likely to match the annotation you're interested in. Be aware that you'll be called for ANY annotation node in the source that looks like a match. There is, for example, no guarantee that the annotation node belongs to a method, even if you set your TargetType in the annotation to methods only.

Specified by:
handle in class EclipseAnnotationHandler<FieldDefaults>
Parameters:
annotation - The actual annotation - use this object to retrieve the annotation parameters.
ast - The Eclipse AST node representing the annotation.
annotationNode - The Lombok AST wrapper around the 'ast' parameter. You can use this object to travel back up the chain (something javac AST can't do) to the parent of the annotation, as well as access useful methods such as generating warnings or errors focused on the annotation.

Lombok - v0.11.4

Copyright © 2009-2011 The Project Lombok Authors, licensed under the MIT licence.