Package nz.org.riskscape.rl.ast
Class StructDeclaration.Member
java.lang.Object
nz.org.riskscape.rl.ast.StructDeclaration.Member
- Enclosing class:
- StructDeclaration
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendSource
(StringBuilder appendTo) protected boolean
cloneWithExpression
(Expression newExpression) boolean
getAs()
Deprecated.use getMemberName instead - the AST is no longer responsible for supplying a default member name to use when the user doesn't supply onegetName()
int
hashCode()
boolean
boolean
boolean
true
if the member is a vanilla select-all operator, e.g.boolean
true
if the member has a trailing select-all operator, e.g.boolean
toSource()
toString()
-
Method Details
-
getName
- Returns:
- the declared name of this attribute, or empty if the name was left off
-
getAttributeName
Deprecated.use getMemberName instead - the AST is no longer responsible for supplying a default member name to use when the user doesn't supply one -
appendSource
-
cloneWithExpression
- Returns:
- an AttrDeclaration of the same type and the same identifier but a new expression.
-
toSource
-
isAnonymous
public boolean isAnonymous()- Returns:
- true if this member has no identifier, i.e. the name should be inferred during realization
-
isSQLStyle
public boolean isSQLStyle()- Returns:
- true if the member's name was declared with an as, e.g.
foo as bar
-
isJSONStyle
public boolean isJSONStyle()- Returns:
- true if the member's name was declared with a colon, e.g.
bar: foo
-
getIdentifier
-
getExpression
-
isSelectAll
public boolean isSelectAll()true
if the member is a vanilla select-all operator, e.g.{foo, *, bar}
-
isSelectAllOnReceiver
public boolean isSelectAllOnReceiver()true
if the member has a trailing select-all operator, e.g.{foo, bar.*, baz}
-
getAs
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-