org.jboss.forge.parser.java
Interface Field<O>

All Superinterfaces:
AnnotationTarget<O,Field<O>>, Internal, Member<O,Field<O>>, Origin<O>, VisibilityScoped<Field<O>>

public interface Field<O>
extends Member<O,Field<O>>

Author:
Lincoln Baxter, III

Method Summary
 String getLiteralInitializer()
           
 String getStringInitializer()
           
 String getType()
           
 boolean isPrimitive()
           
 boolean isType(Class<?> type)
          Attempt to determine if this field is of the same type as the given type.
 boolean isType(String type)
          Attempt to determine if this field is of the same type as the given type.
 Field<O> setLiteralInitializer(String value)
           
 Field<O> setName(String name)
           
 Field<O> setStringInitializer(String value)
           
 Field<O> setType(Class<?> clazz)
          Set the type of this Field to the given Class type.
 Field<O> setType(JavaSource<?> entity)
          Set the type of this Field to the given JavaSource type.
 Field<O> setType(String type)
          Set the type of this Field to the given type.
 
Methods inherited from interface org.jboss.forge.parser.java.Member
getName, isFinal, isStatic, setFinal, setStatic
 
Methods inherited from interface org.jboss.forge.parser.java.VisibilityScoped
getVisibility, isPackagePrivate, isPrivate, isProtected, isPublic, setPackagePrivate, setPrivate, setProtected, setPublic, setVisibility
 
Methods inherited from interface org.jboss.forge.parser.java.AnnotationTarget
addAnnotation, addAnnotation, addAnnotation, getAnnotation, getAnnotation, getAnnotations, hasAnnotation, hasAnnotation, removeAnnotation
 
Methods inherited from interface org.jboss.forge.parser.Internal
getInternal
 
Methods inherited from interface org.jboss.forge.parser.Origin
getOrigin
 

Method Detail

setName

Field<O> setName(String name)

getType

String getType()

isType

boolean isType(Class<?> type)
Attempt to determine if this field is of the same type as the given type.


isType

boolean isType(String type)
Attempt to determine if this field is of the same type as the given type.


setType

Field<O> setType(Class<?> clazz)
Set the type of this Field to the given Class type. Attempt to add an import statement to this field's base O if required.


setType

Field<O> setType(String type)
Set the type of this Field to the given type. Attempt to add an import statement to this field's base O if required. (Note that the given className must be fully-qualified in order to properly import required classes)


setType

Field<O> setType(JavaSource<?> entity)
Set the type of this Field to the given JavaSource type. Attempt to add an import statement to this field's base O if required.


getStringInitializer

String getStringInitializer()

getLiteralInitializer

String getLiteralInitializer()

setLiteralInitializer

Field<O> setLiteralInitializer(String value)

setStringInitializer

Field<O> setStringInitializer(String value)

isPrimitive

boolean isPrimitive()


Copyright © 2011 Seam Framework. All Rights Reserved.