public class TsvFieldTrait extends Object implements Trait<TsvFieldTrait>
| Modifier and Type | Class and Description |
|---|---|
static class |
TsvFieldTrait.Kind
The field kind.
|
| Constructor and Description |
|---|
TsvFieldTrait(AstNode originalAst,
TsvFieldTrait.Kind kind,
String name)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getFieldName(PropertyDeclaration property)
Returns the TSV field name of the property.
|
static TsvFieldTrait.Kind |
getKind(PropertyDeclaration property,
TsvFieldTrait.Kind defaultKind)
Returns the TSV field kind of the property.
|
AstNode |
getOriginalAst()
Returns the corresponded syntactic element of this.
|
public TsvFieldTrait(AstNode originalAst, TsvFieldTrait.Kind kind, String name)
originalAst - the original AST, or null if this is an ad-hoc elementkind - the field kindname - the explicit field name (nullable)IllegalArgumentException - if some parameters were nullpublic AstNode getOriginalAst()
ElementgetOriginalAst in interface Elementnull if unknownpublic static String getFieldName(PropertyDeclaration property)
property - target propertyIllegalArgumentException - if some parameters were nullpublic static TsvFieldTrait.Kind getKind(PropertyDeclaration property, TsvFieldTrait.Kind defaultKind)
property - target propertydefaultKind - default kindIllegalArgumentException - if some parameters were nullCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.