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 TypeMethodDescriptionvoidappendSource(StringBuilder appendTo) protected booleancloneWithExpression(Expression newExpression) booleangetAs()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()inthashCode()booleanbooleanbooleantrueif the member is a vanilla select-all operator, e.g.booleantrueif the member has a trailing select-all operator, e.g.booleantoSource()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()trueif the member is a vanilla select-all operator, e.g.{foo, *, bar} -
isSelectAllOnReceiver
public boolean isSelectAllOnReceiver()trueif the member has a trailing select-all operator, e.g.{foo, bar.*, baz} -
getAs
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-