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

All Known Subinterfaces:
JavaClass

public interface Extendable<O extends JavaSource<O>>

Represents a JavaSource that can extend other types. (Java inheritance and interfaces.)

Author:
Lincoln Baxter, III

Method Summary
 String getSuperType()
          Get this type's super class.
 O setSuperType(Class<?> type)
          Set this type's super class.
 O setSuperType(O type)
          Set this type's super class.
 O setSuperType(String type)
          Set this type's super class.
 

Method Detail

getSuperType

String getSuperType()
Get this type's super class.

See Also:
setSuperType(String)

setSuperType

O setSuperType(O type)
Set this type's super class.

See Also:
setSuperType(String)

setSuperType

O setSuperType(Class<?> type)
Set this type's super class.

See Also:
setSuperType(String)

setSuperType

O setSuperType(String type)
Set this type's super class.

For example:
In the case of " public class Foo extends Bar {}" - Foo is the base type, and Bar is the super class.)

Attempt to add an import statement to this object's O if required. (Note that the given className must be fully-qualified in order to properly import required classes)



Copyright © 2011 Seam Framework. All Rights Reserved.