public abstract class Metadata extends Object
FreeBuilder type.| Modifier and Type | Class and Description |
|---|---|
static class |
Metadata.Builder
Builder for
Metadata. |
static interface |
Metadata.Property
Metadata about a property of a
Metadata. |
static class |
Metadata.StandardMethod
Standard Java methods that may be underridden.
|
static class |
Metadata.UnderrideLevel
How compulsory the underride is.
|
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Function<Metadata.Property,PropertyCodeGenerator> |
GET_CODE_GENERATOR |
| Constructor and Description |
|---|
Metadata() |
| Modifier and Type | Method and Description |
|---|---|
TypeElement |
getBuilder()
Returns the builder type that users will see.
|
abstract com.google.common.base.Optional<BuilderFactory> |
getBuilderFactory()
Returns the builder factory mechanism the user has exposed, if any.
|
abstract QualifiedName |
getGeneratedBuilder()
Returns the builder class that should be generated.
|
PackageElement |
getPackage()
Returns the package the type is in.
|
abstract QualifiedName |
getPartialType()
Returns the partial value class that should be generated.
|
abstract com.google.common.collect.ImmutableList<Metadata.Property> |
getProperties()
Returns metadata about the properies of the type.
|
abstract QualifiedName |
getPropertyEnum()
Returns the Property enum that may be generated.
|
abstract com.google.common.collect.ImmutableMap<Metadata.StandardMethod,Metadata.UnderrideLevel> |
getStandardMethodUnderrides() |
abstract TypeElement |
getType()
Returns the type itself.
|
abstract QualifiedName |
getValueType()
Returns the value class that should be generated.
|
abstract com.google.common.collect.ImmutableSet<QualifiedName> |
getVisibleNestedTypes()
Returns a set of nested types that will be visible in the generated class, either because they
will be generated, or because they are present in a superclass.
|
boolean |
hasBuilder()
Returns true if there is a user-visible Builder subclass defined.
|
abstract boolean |
isBuilderSerializable()
Returns whether the builder type should be serializable.
|
abstract boolean |
isGwtCompatible()
Returns whether the type (and hence the generated builder type) is GWT compatible.
|
abstract boolean |
isGwtSerializable()
Returns whether the type (and hence the generated value type) is GWT serializable.
|
Metadata.UnderrideLevel |
standardMethodUnderride(Metadata.StandardMethod standardMethod) |
public static final com.google.common.base.Function<Metadata.Property,PropertyCodeGenerator> GET_CODE_GENERATOR
public PackageElement getPackage()
public abstract TypeElement getType()
public boolean hasBuilder()
public TypeElement getBuilder()
IllegalStateException - if hasBuilder() returns false.public abstract com.google.common.base.Optional<BuilderFactory> getBuilderFactory()
public abstract QualifiedName getGeneratedBuilder()
public abstract QualifiedName getValueType()
public abstract QualifiedName getPartialType()
public abstract com.google.common.collect.ImmutableSet<QualifiedName> getVisibleNestedTypes()
public abstract QualifiedName getPropertyEnum()
public abstract com.google.common.collect.ImmutableList<Metadata.Property> getProperties()
public Metadata.UnderrideLevel standardMethodUnderride(Metadata.StandardMethod standardMethod)
public abstract com.google.common.collect.ImmutableMap<Metadata.StandardMethod,Metadata.UnderrideLevel> getStandardMethodUnderrides()
public abstract boolean isBuilderSerializable()
public abstract boolean isGwtCompatible()
public abstract boolean isGwtSerializable()
Copyright © 2015 Google, Inc.. All rights reserved.