Class CBASTNames
java.lang.Object
com.io7m.cedarbridge.schema.ast.CBASTNames
Functions over AST names.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CBASTFieldNameConstruct a name.static CBASTPackageNamepackageName(com.io7m.jlexing.core.LexicalType<URI> lexical, String text) Construct a name.static CBASTPackageShortNameshortPackageName(com.io7m.jlexing.core.LexicalType<URI> lexical, String text) Construct a name.static CBASTTypeNameConstruct a name.static CBASTTypeParameterNametypeParameterName(com.io7m.jlexing.core.LexicalType<URI> lexical, String text) Construct a name.static CBASTVariantCaseNamevariantCaseName(com.io7m.jlexing.core.LexicalType<URI> lexical, String text) Construct a name.
-
Method Details
-
fieldName
Construct a name.- Parameters:
lexical- Lexical datatext- The text- Returns:
- A name
-
packageName
public static CBASTPackageName packageName(com.io7m.jlexing.core.LexicalType<URI> lexical, String text) Construct a name.- Parameters:
lexical- Lexical datatext- The text- Returns:
- A name
-
shortPackageName
public static CBASTPackageShortName shortPackageName(com.io7m.jlexing.core.LexicalType<URI> lexical, String text) Construct a name.- Parameters:
lexical- Lexical datatext- The text- Returns:
- A name
-
typeName
Construct a name.- Parameters:
lexical- Lexical datatext- The text- Returns:
- A name
-
typeParameterName
public static CBASTTypeParameterName typeParameterName(com.io7m.jlexing.core.LexicalType<URI> lexical, String text) Construct a name.- Parameters:
lexical- Lexical datatext- The text- Returns:
- A name
-
variantCaseName
public static CBASTVariantCaseName variantCaseName(com.io7m.jlexing.core.LexicalType<URI> lexical, String text) Construct a name.- Parameters:
lexical- Lexical datatext- The text- Returns:
- A name
-