Forge - Parent 1.2.2-SNAPSHOT

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

All Superinterfaces:
AnnotationTarget<O,Field<O>>, Internal, Member<O,Field<O>>, Origin<O>, VisibilityScoped<Field<O>>
All Known Implementing Classes:
FieldImpl

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

Author:
Lincoln Baxter, III

Method Summary
 String getLiteralInitializer()
           
 String getQualifiedType()
          Get this field's fully qualified type.
 String getStringInitializer()
           
 String getType()
          Get this field's type.
 Type<O> getTypeInspector()
          Get this field's Type
 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()
Get this field's type.


getQualifiedType

String getQualifiedType()
Get this field's fully qualified type.


getTypeInspector

Type<O> getTypeInspector()
Get this field's Type


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()

Forge - Parent 1.2.2-SNAPSHOT

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.