Source Code

This module defines a bidirectional conversion between ceylon.ast and the RedHat compiler AST, as well as functions that directly compile code to ceylon.ast nodes using the RedHat compiler.

ceylon.ast → RedHat AST:

that.transform(RedHatTransformer(SimpleTokenFactory()))

RedHat AST → ceylon.ast:

compilationUnitToCeylon(that)

Code → ceylon.ast:

compileCompilationUnit(code)

For the latter two, there are also functions for (almost) every other node type, e. g. expressionToCeylon(), compileType(), etc.

By: Lucas Werkmeister
License: http://www.apache.org/licenses/LICENSE-2.0.html
Packages
ceylon.ast.redhat
Dependencies
ceylon.ast.core1.1.0
ceylon.interop.java1.1.0
com.redhat.ceylon.typechecker1.1.0
Functions
aIdentifierToCeylonSource Codeshared LIdentifier aIdentifierToCeylon(Tree.Identifier identifier)

Converts a RedHat AST Identifier with token type AIDENTIFIER to a ceylon.ast LIdentifier.

There’s no syntactical difference between annotation and lowercase identifiers, but they have different token types.

Parameters:
  • identifier
    • Need CommonToken to get length of token (!= text’s length for \iCONSTANT)

Throws
aStringLiteralToCeylonSource Codeshared StringLiteral aStringLiteralToCeylon(Tree.StringLiteral stringLiteral)

Converts a RedHat AST StringLiteral with annotation token type (ASTRING_LITERAL or AVERBATIM_STRING) to a ceylon.ast StringLiteral.

Parameters:
  • stringLiteral
    • is CommonToken token = stringLiteral.mainToken
Throws
  • AssertionError

    If the token type is neither ASTRING_LITERAL nor AVERBATIM_STRING.

addAssignmentOperationToCeylonSource Codeshared AddAssignmentOperation addAssignmentOperationToCeylon(Tree.AddAssignOp addAssignmentOperation)

Converts a RedHat AST AddAssignOp to a ceylon.ast AddAssignmentOperation.

Parameters:
  • addAssignmentOperation
    • Check precedence

aliasDecToCeylonSource Codeshared AliasDec aliasDecToCeylon(Tree.AliasLiteral aliasDec)

Converts a RedHat AST AliasLiteral to a ceylon.ast AliasDec.

Parameters:
  • aliasDec
    • is JBaseType|JQualifiedType jType = aliasDec.type
andAssignmentOperationToCeylonSource Codeshared AndAssignmentOperation andAssignmentOperationToCeylon(Tree.AndAssignOp andAssignmentOperation)

Converts a RedHat AST AndAssignOp to a ceylon.ast AndAssignmentOperation.

Parameters:
  • andAssignmentOperation
    • Check precedence

andOperationToCeylonSource Codeshared AndOperation andOperationToCeylon(Tree.AndOp andOperation)

Converts a RedHat AST AndOp to a ceylon.ast AndOperation.

Parameters:
  • andOperation
    • Check precedence

annotationToCeylonSource Codeshared Annotation annotationToCeylon(Tree.Annotation annotation)

Converts a RedHat AST Annotation to a ceylon.ast Annotation.

Parameters:
  • annotation
    • is JBaseMemberExpression bme = annotation.primary
annotationsToCeylonSource Codeshared Annotations annotationsToCeylon(Tree.AnnotationList annotations)

Converts a RedHat AST AnnotationList to a ceylon.ast Annotations.

anonymousArgumentToCeylonSource Codeshared AnonymousArgument anonymousArgumentToCeylon(Tree.SpecifiedArgument anonymousArgument)

Converts a RedHat AST SpecifiedArgument to a ceylon.ast AnonymousArgument.

Warning: RedHat AST’s SpecifiedArgument is also used for true specified arguments; this function does not convert those and will throw an exception instead!

Parameters:
  • anonymousArgument
    • Must be anonymous

anyClassToCeylonSource Codeshared AnyClass anyClassToCeylon(Tree.AnyClass anyClass)

Converts a RedHat AST AnyClass to a ceylon.ast AnyClass.

Parameters:
  • anyClass
    • is JClassDefinition|JClassDeclaration anyClass
anyCompilationUnitToCeylonSource Codeshared AnyCompilationUnit anyCompilationUnitToCeylon(Tree.CompilationUnit anyCompilationUnit)

Converts a RedHat AST CompilationUnit to a ceylon.ast AnyCompilationUnit.

anyFunctionToCeylonSource Codeshared AnyFunction anyFunctionToCeylon(Tree.AnyMethod anyFunction)

Converts a RedHat AST AnyMethod to a ceylon.ast AnyFunction.

Parameters:
  • anyFunction
    • is JMethodDefinition|JMethodDeclaration anyFunction
anyInterfaceDefinitionToCeylonSource Codeshared AnyInterfaceDefinition anyInterfaceDefinitionToCeylon(Tree.InterfaceDefinition anyInterfaceDefinition)

Converts a RedHat AST InterfaceDefinition to a ceylon.ast AnyInterfaceDefinition.

anyInterfaceToCeylonSource Codeshared AnyInterface anyInterfaceToCeylon(Tree.AnyInterface anyInterface)

Converts a RedHat AST AnyInterface to a ceylon.ast AnyInterface.

Parameters:
  • anyInterface
    • is JInterfaceDefinition|JInterfaceDeclaration anyInterface
anyMemberOperatorToCeylonSource Codeshared AnyMemberOperator anyMemberOperatorToCeylon(Tree.MemberOperator anyMemberOperator)

Converts a RedHat AST MemberOperator to a ceylon.ast AnyMemberOperator.

Parameters:
  • anyMemberOperator
    • is JMemberOp|JSafeMemberOp|JSpreadOp anyMemberOperator
anySpecifierToCeylonSource Codeshared AnySpecifier anySpecifierToCeylon(Tree.SpecifierExpression anySpecifier)

Converts a RedHat AST SpecifierExpression to a ceylon.ast AnySpecifier.

anyTypeArgumentsToCeylonSource Codeshared TypeArguments? anyTypeArgumentsToCeylon(Tree.TypeArguments typeArguments)

Converts RedHat AST TypeArguments to ceylon.ast TypeArguments or null.

Returns

  • typeArgumentsToCeylon(typeArguments) for a proper TypeArgumentList,
  • null for InferredTypeArguments.
Parameters:
  • typeArguments
    • is JTypeArgumentList|JInferredTypeArguments typeArguments
anyValueToCeylonSource Codeshared AnyValue anyValueToCeylon(Tree.AnyAttribute anyValue)

Converts a RedHat AST AnyAttribute to a ceylon.ast AnyValue.

Parameters:
  • anyValue
    • is JAttributeDeclaration|JAttributeGetterDefinition anyValue
argumentListToCeylonSource Codeshared ArgumentList argumentListToCeylon(Tree.SequencedArgument argumentList)

Converts a RedHat AST SequencedArgument to a ceylon.ast ArgumentList.

(The RedHat AST ArgumentList does not correspond to the ceylon.ast ArgumentList!)

argumentsToCeylonSource Codeshared Arguments argumentsToCeylon(Tree.ArgumentList arguments)

Converts a RedHat AST ArgumentList to a ceylon.ast Arguments.

Parameters:
  • arguments
    • is JPositionalArgumentList|JNamedArgumentList arguments
arithmeticAssignmentOperationToCeylonSource Codeshared ArithmeticAssignmentOperation arithmeticAssignmentOperationToCeylon(Tree.ArithmeticAssignmentOp arithmeticAssignmentOperation)

Converts a RedHat AST ArithmeticAssignmentOp to a ceylon.ast ArithmeticAssignmentOperation.

Parameters:
  • arithmeticAssignmentOperation
    • is JAddAssignOp|JSubtractAssignOp|JMultiplyAssignOp|JDivideAssignOp|JRemainderAssignOp arithmeticAssignmentOperation
arithmeticOperationToCeylonSource Codeshared ArithmeticOperation arithmeticOperationToCeylon(Tree.ArithmeticOp arithmeticOperation)

Converts a RedHat AST ArithmeticOp to a ceylon.ast ArithmeticOperation.

Parameters:
  • arithmeticOperation
    • is JPowerOp|JProductOp|JQuotientOp|JRemainderOp|JSumOp|JDifferenceOp arithmeticOperation
assertionToCeylonSource Codeshared Assertion assertionToCeylon(Tree.Assertion assertion)

Converts a RedHat AST Assertion to a ceylon.ast Assertion.

assignOperationToCeylonSource Codeshared AssignOperation assignOperationToCeylon(Tree.AssignOp assignOperation)

Converts a RedHat AST AssignOp to a ceylon.ast AssignOperation.

Parameters:
  • assignOperation
    • Check precedence

assignmentOperationToCeylonSource Codeshared AssignmentOperation assignmentOperationToCeylon(Tree.AssignmentOp assignmentOperation)

Converts a RedHat AST AssignmentOp to a ceylon.ast AssignmentOperation.

Parameters:
  • assignmentOperation
    • is JAssignOp|JArithmeticAssignmentOp|JBitwiseAssignmentOp|JLogicalAssignmentOp assignmentOperation
assignmentStatementToCeylonSource Codeshared AssignmentStatement assignmentStatementToCeylon(Tree.ExpressionStatement assignmentStatement)

Converts a RedHat AST ExpressionStatement to a ceylon.ast AssignmentStatement.

Parameters:
  • assignmentStatement
    • is JAssignmentOp expression = assignmentStatement.expression.term
atomToCeylonSource Codeshared Atom atomToCeylon(Tree.Atom atom)

Converts a RedHat AST Atom to a ceylon.ast Atom.

baseExpressionToCeylonSource Codeshared BaseExpression baseExpressionToCeylon(Tree.BaseMemberOrTypeExpression baseMemberOrTypeExpression)

Converts a RedHat AST BaseMemberOrTypeExpression to a ceylon.ast BaseExpression.

Parameters:
  • baseMemberOrTypeExpression
    • is JTypeArgumentList|JInferredTypeArguments jTypeArguments = baseMemberOrTypeExpression.typeArguments
baseMetaToCeylonSource Codeshared BaseMeta baseMetaToCeylon(Tree.MemberLiteral baseMeta)

Converts a RedHat AST MemberLiteral to a ceylon.ast BaseMeta.

Parameters:
  • baseMeta
    • Must be unqualified

    • Must not be a reference expression

    • is MemberName name = identifierToCeylon(baseMeta.identifier)
baseTypeToCeylonSource Codeshared BaseType baseTypeToCeylon(Tree.BaseType baseType)

Converts a RedHat AST BaseType to a ceylon.ast BaseType.

binaryOperationToCeylonSource Codeshared BinaryOperation binaryOperationToCeylon(Tree.BinaryOperatorExpression binaryOperation)

Converts a RedHat AST BinaryOperatorExpression to a ceylon.ast BinaryOperation.

Parameters:
  • binaryOperation
    • is JArithmeticOp|JBitwiseOp|JScaleOp|JRangeOp|JSegmentOp|JEntryOp|JInOp|JComparisonOp|JCompareOp|JEqualityOp|JIdenticalOp|JLogicalOp|JThenOp|JDefaultOp|JAssignmentOp binaryOperation
blockToCeylonSource Codeshared Block blockToCeylon(Tree.Block block)

Converts a RedHat AST Block to a ceylon.ast Block.

bodyToCeylonSource Codeshared Body bodyToCeylon(Tree.Body body)

Converts a RedHat AST Body to a ceylon.ast Body.

Parameters:
  • body
    • is JBlock|JClassBody|JInterfaceBody body
booleanConditionToCeylonSource Codeshared BooleanCondition booleanConditionToCeylon(Tree.BooleanCondition booleanCondition)

Converts a RedHat AST BooleanCondition to a ceylon.ast BooleanCondition.

boundToCeylonSource Codeshared Bound boundToCeylon(Tree.Bound bound)

Converts a RedHat AST Bound to a ceylon.ast Bound.

Parameters:
  • bound
    • is JOpenBound|JClosedBound bound
breakToCeylonSource Codeshared Break breakToCeylon(Tree.Break break)

Converts a RedHat AST Break to a ceylon.ast Break.

callableParameterToCeylonSource Codeshared CallableParameter callableParameterToCeylon(Tree.FunctionalParameterDeclaration callableParameter)

Converts a RedHat AST FunctionalParameterDeclaration to a ceylon.ast CallableParameter.

Parameters:
  • callableParameter
    • is JMethodDeclaration dec = callableParameter.typedDeclaration
callableTypeToCeylonSource Codeshared CallableType callableTypeToCeylon(Tree.FunctionType callableType)

Converts a RedHat AST FunctionType to a ceylon.ast CallableType.

caseClauseToCeylonSource Codeshared CaseClause caseClauseToCeylon(Tree.CaseClause caseClause)

Converts a RedHat AST CaseClause to a ceylon.ast CaseClause.

caseItemToCeylonSource Codeshared CaseItem caseItemToCeylon(Tree.CaseItem caseItem)

Converts a RedHat AST CaseItem to a ceylon.ast CaseItem.

Parameters:
  • caseItem
    • is JMatchCase|JIsCase|JSatisfiesCase caseItem
caseTypesToCeylonSource Codeshared CaseTypes caseTypesToCeylon(Tree.CaseTypes caseTypes)

Converts RedHat AST CaseTypes to ceylon.ast CaseTypes.

Parameters:
  • caseTypes
    • nonempty cases = concatenate(CeylonIterable(caseTypes.types), CeylonIterable(caseTypes.baseMemberExpressions)) .sort(byIncreasing(compose(Token.tokenIndex, JNode.token)))
catchClauseToCeylonSource Codeshared CatchClause catchClauseToCeylon(Tree.CatchClause catchClause)

Converts a RedHat AST CatchClause to a ceylon.ast CatchClause.

characterLiteralToCeylonSource Codeshared CharacterLiteral characterLiteralToCeylon(Tree.CharLiteral characterLiteral)

Converts a RedHat AST CharLiteral to a ceylon.ast CharacterLiteral.

Parameters:
  • characterLiteral
    • characterLiteral.mainToken.type == character_literal
Throws
classAliasDefinitionToCeylonSource Codeshared ClassAliasDefinition classAliasDefinitionToCeylon(Tree.ClassDeclaration classAliasDefinition)

Converts a RedHat AST ClassDeclaration to a ceylon.ast ClassAliasDefinition.

classBodyToCeylonSource Codeshared ClassBody classBodyToCeylon(Tree.ClassBody classBody)

Converts a RedHat AST ClassBody to a ceylon.ast ClassBody.

classDecToCeylonSource Codeshared ClassDec classDecToCeylon(Tree.ClassLiteral classDec)

Converts a RedHat AST ClassLiteral to a ceylon.ast ClassDec.

classDefinitionToCeylonSource Codeshared ClassDefinition classDefinitionToCeylon(Tree.ClassDefinition classDefinition)

Converts a RedHat AST ClassDefinition to a ceylon.ast ClassDefinition.

classOrInterfaceToCeylonSource Codeshared ClassOrInterface classOrInterfaceToCeylon(Tree.ClassOrInterface classOrInterface)

Converts a RedHat AST ClassOrInterface to a ceylon.ast ClassOrInterface.

Parameters:
  • classOrInterface
    • is JAnyClass|JAnyInterface classOrInterface
classSpecifierToCeylonSource Codeshared ClassSpecifier classSpecifierToCeylon(Tree.ClassSpecifier classSpecifier)

Converts a RedHat AST ClassSpecifier to a ceylon.ast ClassSpecifier.

closedBoundToCeylonSource Codeshared ClosedBound closedBoundToCeylon(Tree.ClosedBound closedBound)

Converts a RedHat AST ClosedBound to a ceylon.ast ClosedBound.

Parameters:
  • closedBound
    • Check precedence

compareOperationToCeylonSource Codeshared CompareOperation compareOperationToCeylon(Tree.CompareOp compareOperation)

Converts a RedHat AST CompareOp to a ceylon.ast CompareOperation.

Parameters:
  • compareOperation
    • Check precedence

comparisonOperationToCeylonSource Codeshared ComparisonOperation comparisonOperationToCeylon(Tree.ComparisonOp comparisonOperation)

Converts a RedHat AST ComparisonOp to a ceylon.ast ComparisonOperation.

Parameters:
  • comparisonOperation
    • is JLargerOp|JSmallerOp|JLargeAsOp|JSmallAsOp comparisonOperation
compilationUnitToCeylonSource Codeshared CompilationUnit compilationUnitToCeylon(Tree.CompilationUnit compilationUnit)

Converts a RedHat AST CompilationUnit to a ceylon.ast CompilationUnit.

Parameters:
  • compilationUnit
    • Must not have package or module descriptors

Throws
  • AssertionError

    If the compilation unit contains package or module descriptors

compileAddAssignmentOperationSource Codeshared AddAssignmentOperation? compileAddAssignmentOperation(String code)

Compiles the given code for an Add Assignment Operation into an AddAssignmentOperation using the Ceylon compiler (more specifically, the rule for an assignmentExpression).

compileAliasDecSource Codeshared AliasDec? compileAliasDec(String code)

Compiles the given code for an Alias Dec into an AliasDec using the Ceylon compiler (more specifically, the rule for a metaLiteral).

compileAndAssignmentOperationSource Codeshared AndAssignmentOperation? compileAndAssignmentOperation(String code)

Compiles the given code for an And Assignment Operation into an AndAssignmentOperation using the Ceylon compiler (more specifically, the rule for an assignmentExpression).

compileAndOperationSource Codeshared AndOperation? compileAndOperation(String code)

Compiles the given code for an And Operation into an AndOperation using the Ceylon compiler (more specifically, the rule for an conjunctionExpression).

compileAnnotationSource Codeshared Annotation? compileAnnotation(String code)

Compiles the given code for an Annotation into an Annotation using the Ceylon compiler (more specifically, the rule for an annotation).

compileAnnotationsSource Codeshared Annotations? compileAnnotations(String code)

Compiles the given code for Annotations into an Annotations using the Ceylon compiler (more specifically, the rule for annotations).

compileAnonymousArgumentSource Codeshared AnonymousArgument? compileAnonymousArgument(String code)

Compiles the given code for an Anonymous Argument into an AnonymousArgument using the Ceylon compiler (more specifically, the rule for an anonymousArgument).

compileAnyClassSource Codeshared AnyClass? compileAnyClass(String code)

Compiles the given code for Any Class into an AnyClass using the Ceylon compiler (more specifically, the rule for a declaration).

compileAnyCompilationUnitSource Codeshared AnyCompilationUnit? compileAnyCompilationUnit(String code)

Compiles the given code for Any Compilation Unit into an AnyCompilationUnit using the Ceylon compiler (more specifically, the rule for a compilationUnit).

compileAnyFunctionSource Codeshared AnyFunction? compileAnyFunction(String code)

Compiles the given code for Any Function into an AnyFunction using the Ceylon compiler (more specifically, the rule for a declaration).

compileAnyInterfaceSource Codeshared AnyInterface? compileAnyInterface(String code)

Compiles the given code for Any Interface into an AnyInterface using the Ceylon compiler (more specifically, the rule for a declaration).

compileAnyInterfaceDefinitionSource Codeshared AnyInterfaceDefinition? compileAnyInterfaceDefinition(String code)

Compiles the given code for an Any Interface Definition into an AnyInterfaceDefinition using the Ceylon compiler (more specifically, the rule for a declaration).

compileAnyMemberOperatorSource Codeshared AnyMemberOperator? compileAnyMemberOperator(String code)

Compiles the given code for Any Member Operator into an AnyMemberOperator using the Ceylon compiler (more specifically, the rule for a memberSelectionOperator).

compileAnySpecifierSource Codeshared AnySpecifier? compileAnySpecifier(String code)

Compiles the given code for an Any Specifier into an AnySpecifier using the Ceylon compiler (more specifically, the rule for a specifier or lazySpecifier).

compileAnyValueSource Codeshared AnyValue? compileAnyValue(String code)

Compiles the given code for Any Value into an AnyValue using the Ceylon compiler (more specifically, the rule for a declaration).

compileArgumentListSource Codeshared ArgumentList? compileArgumentList(String code)

Compiles the given code for an Argument List into an ArgumentList using the Ceylon compiler (more specifically, the rule for a sequencedArgument).

compileArgumentsSource Codeshared Arguments? compileArguments(String code)

Compiles the given code for Arguments into Arguments using the Ceylon compiler (more specifically, the rule for namedArguments and positionalArguments).

compileArithmeticAssignmentOperationSource Codeshared ArithmeticAssignmentOperation? compileArithmeticAssignmentOperation(String code)

Compiles the given code for an Arithmetic Assignment Operation into an ArithmeticAssignmentOperation using the Ceylon compiler (more specifically, the rule for an assignmentExpression).

compileArithmeticOperationSource Codeshared ArithmeticOperation? compileArithmeticOperation(String code)

Compiles the given code for an Arithmetic Operation into an ArithmeticOperation using the Ceylon compiler (more specifically, the rule for an additiveExpression).

compileAssertionSource Codeshared Assertion? compileAssertion(String code)

Compiles the given code for an Assertion into an Assertion using the Ceylon compiler (more specifically, the rule for an assertion).

compileAssignOperationSource Codeshared AssignOperation? compileAssignOperation(String code)

Compiles the given code for an Assign Operation into an AssignOperation using the Ceylon compiler (more specifically, the rule for an assignmentExpression).

compileAssignmentOperationSource Codeshared AssignmentOperation? compileAssignmentOperation(String code)

Compiles the given code for an Assignment Operation into an AssignmentOperation using the Ceylon compiler (more specifically, the rule for an assignmentExpression).

compileAssignmentStatementSource Codeshared AssignmentStatement? compileAssignmentStatement(String code)

Compiles the given code for an Assignment Statement into an AssignmentStatement using the Ceylon compiler (more specifically, the rule for an expressionOrSpecificationStatement).

compileAtomSource Codeshared Atom? compileAtom(String code)

Compiles the given code for an Atom into an Atom using the Ceylon compiler (more specifically, the rule for a base).

compileBaseExpressionSource Codeshared BaseExpression? compileBaseExpression(String code)

Compiles the given code for a Base Expression into a BaseExpression using the Ceylon compiler (more specifically, the rule for a baseReference).

compileBaseMetaSource Codeshared BaseMeta? compileBaseMeta(String code)

Compiles the given code for a Base Meta into a BaseMeta using the Ceylon compiler (more specifically, the rule for a metaLiteral).

compileBaseTypeSource Codeshared BaseType? compileBaseType(String code)

Compiles the given code for a Base Type into a BaseType using the Ceylon compiler (more specifically, the rule for a typeNameWithArguments).

compileBinaryOperationSource Codeshared BinaryOperation? compileBinaryOperation(String code)

Compiles the given code for a Binary Operation into a BinaryOperation using the Ceylon compiler (more specifically, the rule for an assignmentExpression).

compileBlockSource Codeshared Block? compileBlock(String code)

Compiles the given code for a Block into a Block using the Ceylon compiler (more specifically, the rule for a block).

compileBooleanConditionSource Codeshared BooleanCondition? compileBooleanCondition(String code)

Compiles the given code for a Boolean Condition into a BooleanCondition using the Ceylon compiler (more specifically, the rule for a booleanCondition).

compileBreakSource Codeshared Break? compileBreak(String code)

Compiles the given code for a Break into a Break using the Ceylon compiler (more specifically, the rule for a directiveStatement).

compileCallableParameterSource Codeshared CallableParameter? compileCallableParameter(String code)

Compiles the given code for a Callable Parameter into a CallableParameter using the Ceylon compiler (more specifically, the rule for a parameter).

compileCallableTypeSource Codeshared CallableType? compileCallableType(String code)

Compiles the given code for a Callable Type into a CallableType using the Ceylon compiler (more specifically, the rule for an abbrevatedType).

compileCaseClauseSource Codeshared CaseClause? compileCaseClause(String code)

Compiles the given code for a Case Clause into a CaseClause using the Ceylon compiler (more specifically, the rule for a caseBlock).

compileCaseItemSource Codeshared CaseItem? compileCaseItem(String code)

Compiles the given code for a Case Item into a CaseItem using the Ceylon compiler (more specifically, the rule for a caseItem).

compileCaseTypesSource Codeshared CaseTypes? compileCaseTypes(String code)

Compiles the given code for Case Types into CaseTypes using the Ceylon compiler (more specifically, the rule for caseTypes).

compileCatchClauseSource Codeshared CatchClause? compileCatchClause(String code)

Compiles the given code for a Catch Clause into a CatchClause using the Ceylon compiler (more specifically, the rule for a catchBlock).

compileCharacterLiteralSource Codeshared CharacterLiteral? compileCharacterLiteral(String code)

Compiles the given code for a Character Literal into a CharacterLiteral using the Ceylon compiler (more specifically, the rule for a nonStringLiteral).

compileClassAliasDefinitionSource Codeshared ClassAliasDefinition? compileClassAliasDefinition(String code)

Compiles the given code for a Class Alias into a ClassAliasDefinition using the Ceylon compiler (more specifically, the rule for a declaration).

compileClassBodySource Codeshared ClassBody? compileClassBody(String code)

Compiles the given code for a Class Body into a ClassBody using the Ceylon compiler (more specifically, the rule for a classBody).

compileClassDecSource Codeshared ClassDec? compileClassDec(String code)

Compiles the given code for a Class Dec into a ClassDec using the Ceylon compiler (more specifically, the rule for a metaLiteral).

compileClassDefinitionSource Codeshared ClassDefinition? compileClassDefinition(String code)

Compiles the given code for a Class Definition into a ClassDefinition using the Ceylon compiler (more specifically, the rule for a declaration).

compileClassOrInterfaceSource Codeshared ClassOrInterface? compileClassOrInterface(String code)

Compiles the given code for a Class Or Interface into a ClassOrInterface using the Ceylon compiler (more specifically, the rule for a declaration).

compileClassSpecifierSource Codeshared ClassSpecifier? compileClassSpecifier(String code)

Compiles the given code for a Class Specifier into a ClassSpecifier using the Ceylon compiler (more specifically, the rule for a classSpecifier).

compileCompareOperationSource Codeshared CompareOperation? compileCompareOperation(String code)

Compiles the given code for a Compare Operation into a CompareOperation using the Ceylon compiler (more specifically, the rule for a comparisonExpression).

compileComparisonOperationSource Codeshared ComparisonOperation? compileComparisonOperation(String code)

Compiles the given code for a Comparison Operation into a ComparisonOperation using the Ceylon compiler (more specifically, the rule for a comparisonExpression).

compileCompilationUnitSource Codeshared CompilationUnit? compileCompilationUnit(String code)

Compiles the given code for a Compilation Unit into a CompilationUnit using the Ceylon compiler (more specifically, the rule for a compilationUnit).

compileComplementAssignmentOperationSource Codeshared ComplementAssignmentOperation? compileComplementAssignmentOperation(String code)

Compiles the given code for a Complement Assignment Operation into a ComplementAssignmentOperation using the Ceylon compiler (more specifically, the rule for an assignmentExpression).

compileComplementOperationSource Codeshared ComplementOperation? compileComplementOperation(String code)

Compiles the given code for a Complement Operation into a ComplementOperation using the Ceylon compiler (more specifically, the rule for a unionExpression).

compileComprehensionSource Codeshared Comprehension? compileComprehension(String code)

Compiles the given code for a Comprehension into a Comprehension using the Ceylon compiler (more specifically, the rule for a comprehension).

compileComprehensionClauseSource Codeshared ComprehensionClause? compileComprehensionClause(String code)

Compiles the given code for a Comprehension Clause into a ComprehensionClause using the Ceylon compiler (more specifically, the rule for a comprehensionClause).

compileConditionSource Codeshared Condition? compileCondition(String code)

Compiles the given code for a Condition into a Condition using the Ceylon compiler (more specifically, the rule for a condition).

compileConditionsSource Codeshared Conditions? compileConditions(String code)

Compiles the given code for Conditions into Conditions using the Ceylon compiler (more specifically, the rule for conditions).

compileContinueSource Codeshared Continue? compileContinue(String code)

Compiles the given code for a Continue into a Continue using the Ceylon compiler (more specifically, the rule for a continue).

compileControlStructureSource Codeshared ControlStructure? compileControlStructure(String code)

Compiles the given code for a Control Structure into a ControlStructure using the Ceylon compiler (more specifically, the rule for a controlStatement).

compileDecSource Codeshared Dec? compileDec(String code)

Compiles the given code for a Dec into a Dec using the Ceylon compiler (more specifically, the rule for a metaLiteral).

compileDeclarationSource Codeshared Declaration? compileDeclaration(String code)

Compiles the given code for a Declaration into a Declaration using the Ceylon compiler (more specifically, the rule for a declaration).

compileDefaultedCallableParameterSource Codeshared DefaultedCallableParameter? compileDefaultedCallableParameter(String code)

Compiles the given code for a Defaulted Callable Parameter into a DefaultedCallableParameter using the Ceylon compiler (more specifically, the rule for a parameterDeclarationOrRef).

compileDefaultedParameterSource Codeshared DefaultedParameter? compileDefaultedParameter(String code)

Compiles the given code for a Defaulted Parameter into a DefaultedParameter using the Ceylon compiler (more specifically, the rule for a parameterDeclarationOrRef).

compileDefaultedParameterReferenceSource Codeshared DefaultedParameterReference? compileDefaultedParameterReference(String code)

Compiles the given code for a Defaulted Parameter Reference into a DefaultedParameterReference using the Ceylon compiler (more specifically, the rule for a parameterRef).

compileDefaultedTypeSource Codeshared DefaultedType? compileDefaultedType(String code)

Compiles the given code for a Defaulted Type into a DefaultedType using the Ceylon compiler (more specifically, the rule for a defaultedType).

Take care:

Iterable<String>=

is lexed as

Iterable, <, String, >=

which can’t be parsed. Use

Iterable<String> =

instead, if necessary.

compileDefaultedValueParameterSource Codeshared DefaultedValueParameter? compileDefaultedValueParameter(String code)

Compiles the given code for a Defaulted Value Parameter into a DefaultedValueParameter using the Ceylon compiler (more specifically, the rule for a parameterDeclarationOrRef).

compileDifferenceOperationSource Codeshared DifferenceOperation? compileDifferenceOperation(String code)

Compiles the given code for a Difference Operation into a DifferenceOperation using the Ceylon compiler (more specifically, the rule for an additiveExpression).

compileDirectiveSource Codeshared Directive? compileDirective(String code)

Compiles the given code for a Directive into a Directive using the Ceylon compiler (more specifically, the rule for a directive).

compileDivideAssignmentOperationSource Codeshared DivideAssignmentOperation? compileDivideAssignmentOperation(String code)

Compiles the given code for a Divide Assignment Operation into a DivideAssignmentOperation using the Ceylon compiler (more specifically, the rule for a assignmentExpression).

compileDynamicBlockSource Codeshared DynamicBlock? compileDynamicBlock(String code)

Compiles the given code for a Dynamic Block into a DynamicBlock using the Ceylon compiler (more specifically, the rule for a dynamicBlock).

compileDynamicInterfaceDefinitionSource Codeshared DynamicInterfaceDefinition? compileDynamicInterfaceDefinition(String code)

Compiles the given code for a Dynamic Interface Definition into a DynamicInterfaceDefinition using the Ceylon compiler (more specifically, the rule for a declaration).

compileDynamicModifierSource Codeshared DynamicModifier? compileDynamicModifier(String code)

Compiles the given code for a Dynamic Modifier into a DynamicModifier.

compileDynamicValueSource Codeshared DynamicValue? compileDynamicValue(String code)

Compiles the given code for a Dynamic Value into a DynamicValue using the Ceylon compiler (more specifically, the rule for a dynamicObject).

compileElementOrSubrangeExpressionSource Codeshared ElementOrSubrangeExpression? compileElementOrSubrangeExpression(String code)

Compiles the given code for an Element Or Subrange Expression into an ElementOrSubrangeExpression using the Ceylon compiler (more specifically, the rule for a primary).

compileElseCaseClauseSource Codeshared ElseCaseClause? compileElseCaseClause(String code)

Compiles the given code for an Else Case Clause into an ElseCaseClause using the Ceylon compiler (more specifically, the rule for a defaultCaseBlock).

compileElseClauseSource Codeshared ElseClause? compileElseClause(String code)

Compiles the given code for an Else Clause into an ElseClause using the Ceylon compiler (more specifically, the rule for an elseBlock).

compileElseOperationSource Codeshared ElseOperation? compileElseOperation(String code)

Compiles the given code for an Else Operation into an ElseOperation using the Ceylon compiler (more specifically, the rule for a thenElseExpression).

compileEntryOperationSource Codeshared EntryOperation? compileEntryOperation(String code)

Compiles the given code for an Entry Operation into an EntryOperation using the Ceylon compiler (more specifically, the rule for an entryRangeExpression).

compileEntryTypeSource Codeshared EntryType? compileEntryType(String code)

Compiles the given code for an Entry Type into an EntryType using the Ceylon compiler (more specifically, the rule for a type).

compileEqualOperationSource Codeshared EqualOperation? compileEqualOperation(String code)

Compiles the given code for an Equal Operation into an EqualOperation using the Ceylon compiler (more specifically, the rule for an equalityExpression).

compileEqualityOperationSource Codeshared EqualityOperation? compileEqualityOperation(String code)

Compiles the given code for an Equality Operation into an EqualityOperation using the Ceylon compiler (more specifically, the rule for an equalityExpression).

compileExistsConditionSource Codeshared ExistsCondition? compileExistsCondition(String code)

Compiles the given code for an Exists Condition into an ExistsCondition using the Ceylon compiler (more specifically, the rule for an existsCondition).

compileExistsOperationSource Codeshared ExistsOperation? compileExistsOperation(String code)

Compiles the given code for an Exists Operation into an ExistsOperation using the Ceylon compiler (more specifically, the rule for an existenceEmptinessExpression).

compileExistsOrNonemptyConditionSource Codeshared ExistsOrNonemptyCondition? compileExistsOrNonemptyCondition(String code)

Compiles the given code for an Exists Or Nonempty Condition into an ExistsOrNonemptyCondition using the Ceylon compiler (more specifically, the rule for an condition).

compileExponentiationOperationSource Codeshared ExponentiationOperation? compileExponentiationOperation(String code)

Compiles the given code for an Exponentiation Operation into an ExponentiationOperation using the Ceylon compiler (more specifically, the rule for an exponentiationExpression).

compileExpressionSource Codeshared Expression? compileExpression(String code)

Compiles the given code for an Expression into an Expression using the Ceylon compiler (more specifically, the rule for a functionOrExpression).

compileExpressionComprehensionClauseSource Codeshared ExpressionComprehensionClause? compileExpressionComprehensionClause(String code)

Compiles the given code for an Expression Comprehension Clause into an ExpressionComprehensionClause using the Ceylon compiler (more specifically, the rule for an expressionComprehensionClause).

compileExpressionStatementSource Codeshared ExpressionStatement? compileExpressionStatement(String code)

Compiles the given code for an Expression Statement into an ExpressionStatement using the Ceylon compiler (more specifically, the rule for an expressionOrSpecificationStatement).

compileExtendedTypeSource Codeshared ExtendedType? compileExtendedType(String code)

Compiles the given code for an Extended Type into an ExtendedType using the Ceylon compiler (more specifically, the rule for an extendedType).

compileFailClauseSource Codeshared FailClause? compileFailClause(String code)

Compiles the given code for a Fail Clause into a FailClause using the Ceylon compiler (more specifically, the rule for a failBlock).

compileFinallyClauseSource Codeshared FinallyClause? compileFinallyClause(String code)

Compiles the given code for a Finally Clause into a FinallyClause using the Ceylon compiler (more specifically, the rule for a finallyBlock).

compileFloatLiteralSource Codeshared FloatLiteral? compileFloatLiteral(String code)

Compiles the given code for a Float Literal into a FloatLiteral using the Ceylon compiler (more specifically, the rule for a nonStringLiteral).

compileForClauseSource Codeshared ForClause? compileForClause(String code)

Compiles the given code for a ‘for’ Clause into a ForClause using the Ceylon compiler (more specifically, the rule for a forBlock).

compileForComprehensionClauseSource Codeshared ForComprehensionClause? compileForComprehensionClause(String code)

Compiles the given code for a For Comprehension Clause into a ForComprehensionClause using the Ceylon compiler (more specifically, the rule for a forComprehensionClause).

compileForFailSource Codeshared ForFail? compileForFail(String code)

Compiles the given code for a ‘for’ loop into a ForFail using the Ceylon compiler (more specifically, the rule for a forElse).

compileForIteratorSource Codeshared ForIterator? compileForIterator(String code)

Compiles the given code for a For Iterator into a ForIterator using the Ceylon compiler (more specifically, the rule for a forIterator).

compileFullPackageNameSource Codeshared FullPackageName? compileFullPackageName(String code)

Compiles the given code for a Full Package Name into a FullPackageName using the Ceylon compiler (more specifically, the rule for a fullPackageName).

compileFunctionArgumentSource Codeshared FunctionArgument? compileFunctionArgument(String code)

Compiles the given code for a Function Argument into a FunctionArgument using the Ceylon compiler (more specifically, the rule for a namedArgumentDeclaration).

compileFunctionDecSource Codeshared FunctionDec? compileFunctionDec(String code)

Compiles the given code for a Function Dec into a FunctionDec using the Ceylon compiler (more specifically, the rule for a metaLiteral).

compileFunctionDeclarationSource Codeshared FunctionDeclaration? compileFunctionDeclaration(String code)

Compiles the given code for a Function Declaration into a FunctionDeclaration using the Ceylon compiler (more specifically, the rule for a declaration).

compileFunctionDefinitionSource Codeshared FunctionDefinition? compileFunctionDefinition(String code)

Compiles the given code for a Function Definition into a FunctionDefinition using the Ceylon compiler (more specifically, the rule for a declaration).

compileFunctionExpressionSource Codeshared FunctionExpression? compileFunctionExpression(String code)

Compiles the given code for a Function Expression into a FunctionExpression using the Ceylon compiler (more specifically, the rule for an anonymousFunction).

compileFunctionModifierSource Codeshared FunctionModifier? compileFunctionModifier(String code)

Compiles the given code for a Function Modifier into a FunctionModifier using the Ceylon compiler (more specifically, the rule for a functionModifier).

compileFunctionShortcutDefinitionSource Codeshared FunctionShortcutDefinition? compileFunctionShortcutDefinition(String code)

Compiles the given code for a Function Shortcut Definition into a FunctionShortcutDefinition using the Ceylon compiler (more specifically, the rule for a declaration).

compileGivenDecSource Codeshared GivenDec? compileGivenDec(String code)

Compiles the given code for a Given Dec into a GivenDec using the Ceylon compiler (more specifically, the rule for a metaLiteral).

compileGroupedExpressionSource Codeshared GroupedExpression? compileGroupedExpression(String code)

Compiles the given code for a Grouped Expression into a GroupedExpression using the Ceylon compiler (more specifically, the rule for a parExpression).

compileGroupedTypeSource Codeshared GroupedType? compileGroupedType(String code)

Compiles the given code for a Grouped Type into a GroupedType using the Ceylon compiler (more specifically, the rule for a groupedType).

compileIdenticalOperationSource Codeshared IdenticalOperation? compileIdenticalOperation(String code)

Compiles the given code for an Identical Operation into an IdenticalOperation using the Ceylon compiler (more specifically, the rule for an equalityExpression).

compileIdentifierSource Codeshared Identifier? compileIdentifier(String code)

Compiles the given code for an Identifier into an Identifier using the Ceylon compiler (more specifically, the rule for an Import Name).

compileIdentityOperationSource Codeshared IdentityOperation? compileIdentityOperation(String code)

Compiles the given code for an Identity Operation into an IdentityOperation using the Ceylon compiler (more specifically, the rule for an negationComplementExpression).

compileIfClauseSource Codeshared IfClause? compileIfClause(String code)

Compiles the given code for an If Clause into an IfClause using the Ceylon compiler (more specifically, the rule for an ifBlock).

compileIfComprehensionClauseSource Codeshared IfComprehensionClause? compileIfComprehensionClause(String code)

Compiles the given code for an If Comprehension Clause into an IfComprehensionClause using the Ceylon compiler (more specifically, the rule for an ifComprehensionClause).

compileIfElseSource Codeshared IfElse? compileIfElse(String code)

Compiles the given code for an If Else into an IfElse using the Ceylon compiler (more specifically, the rule for an ifElse).

compileImportSource Codeshared Import? compileImport(String code)

Compiles the given code for an Import into an Import using the Ceylon compiler (more specifically, the rule for an import).

compileImportAliasSource Codeshared ImportAlias? compileImportAlias(String code)

Compiles the given code for an Import Alias into an ImportAlias using the Ceylon compiler (more specifically, the rule for an importElement).

compileImportElementSource Codeshared ImportElement? compileImportElement(String code)

Compiles the given code for an Import Element into an ImportElement using the Ceylon compiler (more specifically, the rule for an importElement).

compileImportElementsSource Codeshared ImportElements? compileImportElements(String code)

Compiles the given code for an Import Elements into an ImportElements using the Ceylon compiler (more specifically, the rule for an importElementList).

compileImportFunctionValueAliasSource Codeshared ImportFunctionValueAlias? compileImportFunctionValueAlias(String code)

Compiles the given code for an Import Function Value Alias into an ImportFunctionValueAlias using the Ceylon compiler (more specifically, the rule for an importElement).

compileImportFunctionValueElementSource Codeshared ImportFunctionValueElement? compileImportFunctionValueElement(String code)

Compiles the given code for an Import Function Value Element into an ImportFunctionValueElement using the Ceylon compiler (more specifically, the rule for an importElement).

compileImportTypeAliasSource Codeshared ImportTypeAlias? compileImportTypeAlias(String code)

Compiles the given code for an Import Type Alias into an ImportTypeAlias using the Ceylon compiler (more specifically, the rule for an importElement).

compileImportTypeElementSource Codeshared ImportTypeElement? compileImportTypeElement(String code)

Compiles the given code for an Import Type Element into an ImportTypeElement using the Ceylon compiler (more specifically, the rule for an importElement).

compileImportWildcardSource Codeshared ImportWildcard? compileImportWildcard(String code)

Compiles the given code for an Import Wildcard into an ImportWildcard using the Ceylon compiler (more specifically, the rule for an importWildcard).

compileInModifierSource Codeshared InModifier? compileInModifier(String code)

Compiles the given code for an In Modifier into an InModifier using the Ceylon compiler (more specifically, the rule for a variance).

compileInOperationSource Codeshared InOperation? compileInOperation(String code)

Compiles the given code for an In Operation into an InOperation using the Ceylon compiler (more specifically, the rule for a comparisonExpression).

compileInitialComprehensionClauseSource Codeshared InitialComprehensionClause? compileInitialComprehensionClause(String code)

Compiles the given code for an Initial Comprehension Clause into an InitialComprehensionClause using the Ceylon compiler (more specifically, the rule for an initialComprehensionClause).

compileInlineDefinitionArgumentSource Codeshared InlineDefinitionArgument? compileInlineDefinitionArgument(String code)

Compiles the given code for an Inline Definition Argument into an InlineDefinitionArgument using the Ceylon compiler (more specifically, the rule for a namedArgumentDeclaration).

compileIntegerLiteralSource Codeshared IntegerLiteral? compileIntegerLiteral(String code)

Compiles the given code for an Integer Literal into an IntegerLiteral using the Ceylon compiler (more specifically, the rule for a nonstringLiteral).

compileInterfaceAliasDefinitionSource Codeshared InterfaceAliasDefinition? compileInterfaceAliasDefinition(String code)

Compiles the given code for an Interface Alias Definition into an InterfaceAliasDefinition using the Ceylon compiler (more specifically, the rule for a declaration).

compileInterfaceBodySource Codeshared InterfaceBody? compileInterfaceBody(String code)

Compiles the given code for an Interface Body into an InterfaceBody using the Ceylon compiler (more specifically, the rule for an interfaceBody).

compileInterfaceDecSource Codeshared InterfaceDec? compileInterfaceDec(String code)

Compiles the given code for an Interface Dec into an InterfaceDec using the Ceylon compiler (more specifically, the rule for an metaLiteral).

compileInterfaceDefinitionSource Codeshared InterfaceDefinition? compileInterfaceDefinition(String code)

Compiles the given code for an Interface Definition into an InterfaceDefinition using the Ceylon compiler (more specifically, the rule for a declaration).

compileIntersectAssignmentOperationSource Codeshared IntersectAssignmentOperation? compileIntersectAssignmentOperation(String code)

Compiles the given code for an Intersect Assignment Operation into an IntersectAssignmentOperation using the Ceylon compiler (more specifically, the rule for an assignmentExpression).

compileIntersectionOperationSource Codeshared IntersectionOperation? compileIntersectionOperation(String code)

Compiles the given code for an Intersection Operation into an IntersectionOperation using the Ceylon compiler (more specifically, the rule for an intersectionExpression).

compileIntersectionTypeSource Codeshared IntersectionType? compileIntersectionType(String code)

Compiles the given code for an Intersection Type into an IntersectionType using the Ceylon compiler (more specifically, the rule for an intersectionType).

compileInvocationSource Codeshared Invocation? compileInvocation(String code)

Compiles the given code for an Invocation into an Invocation using the Ceylon compiler (more specifically, the rule for a primary).

compileInvocationStatementSource Codeshared InvocationStatement? compileInvocationStatement(String code)

Compiles the given code for an Invocation Statement into an InvocationStatement using the Ceylon compiler (more specifically, the rule for an expressionOrSpecificationStatement).

compileIsCaseSource Codeshared IsCase? compileIsCase(String code)

Compiles the given code for an Is Case into an IsCase using the Ceylon compiler (more specifically, the rule for an isCaseCondition).

compileIsConditionSource Codeshared IsCondition? compileIsCondition(String code)

Compiles the given code for an Is Condition into an IsCondition using the Ceylon compiler (more specifically, the rule for an isCondition).

compileIsOperationSource Codeshared IsOperation? compileIsOperation(String code)

Compiles the given code for an Is Operation into an IsOperation using the Ceylon compiler (more specifically, the rule for a comparisonExpression).

compileIterableSource Codeshared Iterable? compileIterable(String code)

Compiles the given code for an Iterable into an Iterable using the Ceylon compiler (more specifically, the rule for an enumeration).

compileIterableTypeSource Codeshared IterableType? compileIterableType(String code)

Compiles the given code for an Iterable Type into an IterableType using the Ceylon compiler (more specifically, the rule for an iterableType).

compileKeySubscriptSource Codeshared KeySubscript? compileKeySubscript(String code)

Compiles the given code for a Key Subscript into a KeySubscript using the Ceylon compiler (more specifically, the rule for a indexOrIndexRange).

compileKeyValueIteratorSource Codeshared KeyValueIterator? compileKeyValueIterator(String code)

Compiles the given code for a Key Value Iterator into a KeyValueIterator using the Ceylon compiler (more specifically, the rule for a forIterator).

compileLIdentifierSource Codeshared LIdentifier? compileLIdentifier(String code)

Compiles the given code for a Lowercase Identifier into an LIdentifier using the Ceylon compiler (more specifically, the rule for a Member Name).

compileLargeAsOperationSource Codeshared LargeAsOperation? compileLargeAsOperation(String code)

Compiles the given code for a Large As Operation into a LargeAsOperation using the Ceylon compiler (more specifically, the rule for a comparisonExpression).

compileLargerOperationSource Codeshared LargerOperation? compileLargerOperation(String code)

Compiles the given code for a Larger Operation into a LargerOperation using the Ceylon compiler (more specifically, the rule for a comparisonExpression).

compileLazySpecificationSource Codeshared LazySpecification? compileLazySpecification(String code)

Compiles the given code for a Lazy Specification into a LazySpecification using the Ceylon compiler (more specifically, the rule for an expressionOrSpecificationStatement).

compileLazySpecifierSource Codeshared LazySpecifier? compileLazySpecifier(String code)

Compiles the given code for a Lazy Specifier into a LazySpecifier using the Ceylon compiler (more specifically, the rule for a lazySpecifier).

compileLiteralSource Codeshared Literal? compileLiteral(String code)

Compiles the given code for a Literal into a Literal using the Ceylon compiler (more specifically, the rules for a stringLiteral and a nonstringLiteral).

compileLocalModifierSource Codeshared LocalModifier? compileLocalModifier(String code)

Compiles the given code for a Local Modifier into a LocalModifier using the Ceylon compiler (more specifically, the lexer).

compileLogicalAssignmentOperationSource Codeshared LogicalAssignmentOperation? compileLogicalAssignmentOperation(String code)

Compiles the given code for a Logical Assignment Operation into a LogicalAssignmentOperation using the Ceylon compiler (more specifically, the rule for an assignmentExpression).

compileLogicalOperationSource Codeshared LogicalOperation? compileLogicalOperation(String code)

Compiles the given code for a Logical Operation into a LogicalOperation using the Ceylon compiler (more specifically, the rule for a disjunctionExpression).

compileMatchCaseSource Codeshared MatchCase? compileMatchCase(String code)

Compiles the given code for a Match Case into a MatchCase using the Ceylon compiler (more specifically, the rule for a matchCaseCondition).

compileMeasureOperationSource Codeshared MeasureOperation? compileMeasureOperation(String code)

Compiles the given code for a Measure Operation into a MeasureOperation using the Ceylon compiler (more specifically, the rule for an entryRangeExpression).

compileMeasureSubscriptSource Codeshared MeasureSubscript? compileMeasureSubscript(String code)

Compiles the given code for a Measure Subscript into a MeasureSubscript using the Ceylon compiler (more specifically, the rule for an indexOrIndexRange).

compileMemberDecSource Codeshared MemberDec? compileMemberDec(String code)

Compiles the given code for a Member Dec into a MemberDec using the Ceylon compiler (more specifically, the rule for a metaLiteral).

compileMemberMetaSource Codeshared MemberMeta? compileMemberMeta(String code)

Compiles the given code for a Member Meta into a MemberMeta using the Ceylon compiler (more specifically, the rule for a metaLiteral).

compileMemberOperatorSource Codeshared MemberOperator? compileMemberOperator(String code)

Compiles the given code for a Member Operator into a MemberOperator using the Ceylon compiler (more specifically, the rule for a memberSelectionOperator).

compileMetaSource Codeshared Meta? compileMeta(String code)

Compiles the given code for a Meta into a Meta using the Ceylon compiler (more specifically, the rule for a metaLiteral).

compileModifierSource Codeshared Modifier? compileModifier(String code)

Compiles the given code for a Modifier into a Modifier using the Ceylon compiler (more specifically, the lexer).

compileModuleBodySource Codeshared ModuleBody? compileModuleBody(String code)

Compiles the given code for a Module Body into a ModuleBody using the Ceylon compiler (more specifically, the rule for a moduleBody).

compileModuleCompilationUnitSource Codeshared ModuleCompilationUnit? compileModuleCompilationUnit(String code)

Compiles the given code for a Module Compilation Unit into a ModuleCompilationUnit using the Ceylon compiler (more specifically, the rule for a compilationUnit).

compileModuleDecSource Codeshared ModuleDec? compileModuleDec(String code)

Compiles the given code for a Module Dec into a ModuleDec using the Ceylon compiler (more specifically, the rule for a metaLiteral).

compileModuleDescriptorSource Codeshared ModuleDescriptor? compileModuleDescriptor(String code)

Compiles the given code for a Module Descriptor into a ModuleDescriptor using the Ceylon compiler (more specifically, the rule for a moduleDescriptor).

compileModuleImportSource Codeshared ModuleImport? compileModuleImport(String code)

Compiles the given code for a Module Import into a ModuleImport using the Ceylon compiler (more specifically, the rule for an importModuleList).

compileMultiplyAssignmentOperationSource Codeshared MultiplyAssignmentOperation? compileMultiplyAssignmentOperation(String code)

Compiles the given code for a Multiply Assignment Operation into a MultiplyAssignmentOperation using the Ceylon compiler (more specifically, the rule for an assignmentExpression).

compileNamedArgumentSource Codeshared NamedArgument? compileNamedArgument(String code)

Compiles the given code for a Named Argument into a NamedArgument using the Ceylon compiler (more specifically, the rules for a namedArgument and for an anonymousArgument).

compileNamedArgumentsSource Codeshared NamedArguments? compileNamedArguments(String code)

Compiles the given code for Named Arguments into NamedArguments using the Ceylon compiler (more specifically, the rule for namedArguments).

compileNegationOperationSource Codeshared NegationOperation? compileNegationOperation(String code)

Compiles the given code for a Negation Operation into a NegationOperation using the Ceylon compiler (more specifically, the rule for a negationComplementExpression).

compileNonemptyConditionSource Codeshared NonemptyCondition? compileNonemptyCondition(String code)

Compiles the given code for a Nonempty Condition into a NonemptyCondition using the Ceylon compiler (more specifically, the rule for a nonemptyCondition).

compileNonemptyOperationSource Codeshared NonemptyOperation? compileNonemptyOperation(String code)

Compiles the given code for a Nonempty Operation into a NonemptyOperation using the Ceylon compiler (more specifically, the rule for a existenceEmptinessExpression).

compileNotEqualOperationSource Codeshared NotEqualOperation? compileNotEqualOperation(String code)

Compiles the given code for a Not Equal Operation into a NotEqualOperation using the Ceylon compiler (more specifically, the rule for a equalityExpression).

compileNotOperationSource Codeshared NotOperation? compileNotOperation(String code)

Compiles the given code for a Not Operation into a NotOperation using the Ceylon compiler (more specifically, the rule for a logicalNegationExpression).

compileObjectArgumentSource Codeshared ObjectArgument? compileObjectArgument(String code)

Compiles the given code for an Object Argument into an ObjectArgument using the Ceylon compiler (more specifically, the rule for an objectArgument).

compileObjectDefinitionSource Codeshared ObjectDefinition? compileObjectDefinition(String code)

Compiles the given code for an Object Definition into an ObjectDefinition using the Ceylon compiler (more specifically, the rule for an declaration).

compileOfOperationSource Codeshared OfOperation? compileOfOperation(String code)

Compiles the given code for an Of Operation into an OfOperation using the Ceylon compiler (more specifically, the rule for a comparisonExpression).

compileOperationSource Codeshared Operation? compileOperation(String code)

Compiles the given code for an Operation into an Operation using the Ceylon compiler (more specifically, the rule for an assignmentExpression).

compileOptionalTypeSource Codeshared OptionalType? compileOptionalType(String code)

Compiles the given code for an Optional Type into an OptionalType using the Ceylon compiler (more specifically, the rule for an abbreviatedType).

compileOrAssignmentOperationSource Codeshared OrAssignmentOperation? compileOrAssignmentOperation(String code)

Compiles the given code for an Or Assignment Operation into an OrAssignmentOperation using the Ceylon compiler (more specifically, the rule for an assignmentExpression).

compileOrOperationSource Codeshared OrOperation? compileOrOperation(String code)

Compiles the given code for an Or Operation into an OrOperation using the Ceylon compiler (more specifically, the rule for an disjunctionExpression).

compileOutModifierSource Codeshared OutModifier? compileOutModifier(String code)

Compiles the given code for an Out Modifier into an OutModifier using the Ceylon compiler (more specifically, the rule for a variance).

compileOuterSource Codeshared Outer? compileOuter(String code)

Compiles the given code for an Outer into an Outer using the Ceylon compiler (more specifically, the rule for a selfReference).

compilePIdentifierSource Codeshared LIdentifier? compilePIdentifier(String code)

Compiles the given code for a Package Identifier into an LIdentifier using the Ceylon compiler (more specifically, the rule for a packageName).

compilePackageSource Codeshared Package? compilePackage(String code)

Compiles the given code for a Package into a Package using the Ceylon compiler (more specifically, the rule for a selfReference).

compilePackageCompilationUnitSource Codeshared PackageCompilationUnit? compilePackageCompilationUnit(String code)

Compiles the given code for a Package Compilation Unit into a PackageCompilationUnit using the Ceylon compiler (more specifically, the rule for a compilationUnit).

compilePackageDecSource Codeshared PackageDec? compilePackageDec(String code)

Compiles the given code for a Package Dec into a PackageDec using the Ceylon compiler (more specifically, the rule for a metaLiteral).

compilePackageDescriptorSource Codeshared PackageDescriptor? compilePackageDescriptor(String code)

Compiles the given code for a Package Descriptor into a PackageDescriptor using the Ceylon compiler (more specifically, the rule for a packageDescriptor).

compileParameterSource Codeshared Parameter? compileParameter(String code)

Compiles the given code for a Parameter into a Parameter using the Ceylon compiler (more specifically, the rule for a parameterDeclarationOrRef).

compileParameterReferenceSource Codeshared ParameterReference? compileParameterReference(String code)

Compiles the given code for a Parameter Reference into a ParameterReference using the Ceylon compiler (more specifically, the rule for a parameterRef).

compileParametersSource Codeshared Parameters? compileParameters(String code)

Compiles the given code for a Parameters into a Parameters using the Ceylon compiler (more specifically, the rule for a parameters).

compilePositionalArgumentsSource Codeshared PositionalArguments? compilePositionalArguments(String code)

Compiles the given code for Positional Arguments into PositionalArguments using the Ceylon compiler (more specifically, the rule for positionalArguments).

compilePostfixDecrementOperationSource Codeshared PostfixDecrementOperation? compilePostfixDecrementOperation(String code)

Compiles the given code for a Postfix Decrement Operation into a PostfixDecrementOperation using the Ceylon compiler (more specifically, the rule for a postfixIncrementDecrementExpression).

compilePostfixIncrementOperationSource Codeshared PostfixIncrementOperation? compilePostfixIncrementOperation(String code)

Compiles the given code for a Postfix Increment Operation into a PostfixIncrementOperation using the Ceylon compiler (more specifically, the rule for a postfixIncrementDecrementExpression).

compilePostfixOperationSource Codeshared PostfixOperation? compilePostfixOperation(String code)

Compiles the given code for a Postfix Operation into a PostfixOperation using the Ceylon compiler (more specifically, the rule for a postfixIncrementDecrementExpression).

compilePrefixDecrementOperationSource Codeshared PrefixDecrementOperation? compilePrefixDecrementOperation(String code)

Compiles the given code for a Prefix Decrement Operation into a PrefixDecrementOperation using the Ceylon compiler (more specifically, the rule for n incrementDecrementExpression).

compilePrefixIncrementOperationSource Codeshared PrefixIncrementOperation? compilePrefixIncrementOperation(String code)

Compiles the given code for a Prefix Increment Operation into a PrefixIncrementOperation using the Ceylon compiler (more specifically, the rule for an incrementDecrementExpression).

compilePrefixOperationSource Codeshared PrefixOperation? compilePrefixOperation(String code)

Compiles the given code for a Prefix Operation into a PrefixOperation using the Ceylon compiler (more specifically, the rule for an incrementDecrementExpression).

compilePrefixPostfixStatementSource Codeshared PrefixPostfixStatement? compilePrefixPostfixStatement(String code)

Compiles the given code for a Prefix Postfix Statement into a PrefixPostfixStatement using the Ceylon compiler (more specifically, the rule for an expressionOrSpecificationStatement).

compilePrimarySource Codeshared Primary? compilePrimary(String code)

Compiles the given code for a Primary into a Primary using the Ceylon compiler (more specifically, the rule for a primary).

compileProductOperationSource Codeshared ProductOperation? compileProductOperation(String code)

Compiles the given code for a Product Operation into a ProductOperation using the Ceylon compiler (more specifically, the rule for a multiplicativeExpression).

compileQualifiedExpressionSource Codeshared QualifiedExpression? compileQualifiedExpression(String code)

Compiles the given code for a Qualified Expression into a QualifiedExpression using the Ceylon compiler (more specifically, the rule for a primary).

compileQualifiedTypeSource Codeshared QualifiedType? compileQualifiedType(String code)

Compiles the given code for a Qualified Type into a QualifiedType using the Ceylon compiler (more specifically, the rule for a qualifiedType).

compileQuotientOperationSource Codeshared QuotientOperation? compileQuotientOperation(String code)

Compiles the given code for a Quotient Operation into a QuotientOperation using the Ceylon compiler (more specifically, the rule for a multiplicativeExpression).

compileRangeSubscriptSource Codeshared RangeSubscript? compileRangeSubscript(String code)

Compiles the given code for a Range Subscript into a RangeSubscript using the Ceylon compiler (more specifically, the rule for an indexOrIndexRange).

compileRemainderAssignmentOperationSource Codeshared RemainderAssignmentOperation? compileRemainderAssignmentOperation(String code)

Compiles the given code for a Remainder Assignment Operation into a RemainderAssignmentOperation using the Ceylon compiler (more specifically, the rule for a assignmentExpression).

compileRemainderOperationSource Codeshared RemainderOperation? compileRemainderOperation(String code)

Compiles the given code for a Remainder Operation into a RemainderOperation using the Ceylon compiler (more specifically, the rule for a multiplicativeExpression).

compileRequiredParameterSource Codeshared RequiredParameter? compileRequiredParameter(String code)

Compiles the given code for a Required Parameter into a RequiredParameter using the Ceylon compiler (more specifically, the rule for a parameterDeclarationOrRef).

compileResourceSource Codeshared Resource? compileResource(String code)

Compiles the given code for a Resource into a Resource using the Ceylon compiler (more specifically, the rule for a resource).

compileResourcesSource Codeshared Resources? compileResources(String code)

Compiles the given code for Resources into Resources using the Ceylon compiler (more specifically, the rule for resources).

compileReturnSource Codeshared Return? compileReturn(String code)

Compiles the given code for a Return into a Return using the Ceylon compiler (more specifically, the rule for a return).

compileSafeMemberOperatorSource Codeshared SafeMemberOperator? compileSafeMemberOperator(String code)

Compiles the given code for a Safe Member Operator into a SafeMemberOperator using the Ceylon compiler (more specifically, the rule for a memberSelectionOperator).

compileSatisfiedTypesSource Codeshared SatisfiedTypes? compileSatisfiedTypes(String code)

Compiles the given code for Satisfied Types into SatisfiedTypes using the Ceylon compiler (more specifically, the rule for satisfiedTypes).

compileScaleOperationSource Codeshared ScaleOperation? compileScaleOperation(String code)

Compiles the given code for a Scale Operation into a ScaleOperation using the Ceylon compiler (more specifically, the rule for a scaleExpression).

compileSelfReferenceSource Codeshared SelfReference? compileSelfReference(String code)

Compiles the given code for a Self Reference into a SelfReference using the Ceylon compiler (more specifically, the rule for a selfReference).

compileSequentialTypeSource Codeshared SequentialType? compileSequentialType(String code)

Compiles the given code for a Sequential Type into a SequentialType using the Ceylon compiler (more specifically, the rule for an abbreviatedType).

compileSetAssignmentOperationSource Codeshared SetAssignmentOperation? compileSetAssignmentOperation(String code)

Compiles the given code for a Set Assignment Operation into a SetAssignmentOperation using the Ceylon compiler (more specifically, the rule for an assignmentExpression).

compileSetOperationSource Codeshared SetOperation? compileSetOperation(String code)

Compiles the given code for a Set Operation into a SetOperation using the Ceylon compiler (more specifically, the rule for a unionExpression).

compileSimpleTypeSource Codeshared SimpleType? compileSimpleType(String code)

Compiles the given code for a Simple Type into a SimpleType using the Ceylon compiler (more specifically, the rule for a qualifiedType).

compileSmallAsOperationSource Codeshared SmallAsOperation? compileSmallAsOperation(String code)

Compiles the given code for a Small As Operation into a SmallAsOperation using the Ceylon compiler (more specifically, the rule for a comparisonExpression).

compileSmallerOperationSource Codeshared SmallerOperation? compileSmallerOperation(String code)

Compiles the given code for a Smaller Operation into a SmallerOperation using the Ceylon compiler (more specifically, the rule for a comparisonExpression).

compileSpanFromSubscriptSource Codeshared SpanFromSubscript? compileSpanFromSubscript(String code)

Compiles the given code for a Span From Subscript into a SpanFromSubscript using the Ceylon compiler (more specifically, the rule for an indexOrIndexRange).

compileSpanOperationSource Codeshared SpanOperation? compileSpanOperation(String code)

Compiles the given code for a Span Operation into a SpanOperation using the Ceylon compiler (more specifically, the rule for an entryRangeExpression).

compileSpanSubscriptSource Codeshared SpanSubscript? compileSpanSubscript(String code)

Compiles the given code for a Span Subscript into a SpanSubscript using the Ceylon compiler (more specifically, the rule for an indexOrIndexRange).

compileSpanToSubscriptSource Codeshared SpanToSubscript? compileSpanToSubscript(String code)

Compiles the given code for a Span To Subscript into a SpanToSubscript using the Ceylon compiler (more specifically, the rule for an indexOrIndexRange).

compileSpecificationSource Codeshared Specification? compileSpecification(String code)

Compiles the given code for a Specification into a Specification using the Ceylon compiler (more specifically, the rule for an expressionOrSpecificationStatement).

compileSpecifiedArgumentSource Codeshared SpecifiedArgument? compileSpecifiedArgument(String code)

Compiles the given code for a Specified Argument into a SpecifiedArgument using the Ceylon compiler (more specifically, the rule for a namedArgument).

compileSpecifierSource Codeshared Specifier? compileSpecifier(String code)

Compiles the given code for a Specifier into a Specifier using the Ceylon compiler (more specifically, the rule for a specifier).

compileSpreadArgumentSource Codeshared SpreadArgument? compileSpreadArgument(String code)

Compiles the given code for a Spread Argument into a SpreadArgument using the Ceylon compiler (more specifically, the rule for a spreadArgument).

compileSpreadMemberOperatorSource Codeshared SpreadMemberOperator? compileSpreadMemberOperator(String code)

Compiles the given code for a Spread Member Operator into a SpreadMemberOperator using the Ceylon compiler (more specifically, the rule for a memberSelectionOperator).

compileStatementSource Codeshared Statement? compileStatement(String code)

Compiles the given code for a Statement into a Statement using the Ceylon compiler (more specifically, the rule for a declarationOrStatement).

compileStringLiteralSource Codeshared StringLiteral? compileStringLiteral(String code)

Compiles the given code for a String Literal into a StringLiteral using the Ceylon compiler (more specifically, the rule for a stringLiteral).

compileStringTemplateSource Codeshared StringTemplate? compileStringTemplate(String code)

Compiles the given code for a String Template into a StringTemplate using the Ceylon compiler (more specifically, the rule for a stringExpression).

compileSubscriptSource Codeshared Subscript? compileSubscript(String code)

Compiles the given code for a Subscript into a Subscript using the Ceylon compiler (more specifically, the rule for an indexOrIndexRange).

compileSubtractAssignmentOperationSource Codeshared SubtractAssignmentOperation? compileSubtractAssignmentOperation(String code)

Compiles the given code for a Subtract Assignment Operation into a SubtractAssignmentOperation using the Ceylon compiler (more specifically, the rule for an assignmentExpression).

compileSumOperationSource Codeshared SumOperation? compileSumOperation(String code)

Compiles the given code for a Sum Operation into a SumOperation using the Ceylon compiler (more specifically, the rule for an additiveExpression).

compileSuperSource Codeshared Super? compileSuper(String code)

Compiles the given code for a Super into a Super using the Ceylon compiler (more specifically, the rule for a selfReference).

compileSwitchCaseElseSource Codeshared SwitchCaseElse? compileSwitchCaseElse(String code)

Compiles the given code for a Switch Case Else into a SwitchCaseElse using the Ceylon compiler (more specifically, the rule for a switchCaseElse).

compileSwitchCasesSource Codeshared SwitchCases? compileSwitchCases(String code)

Compiles the given code for Switch Cases into SwitchCases using the Ceylon compiler (more specifically, the rule for cases).

compileSwitchClauseSource Codeshared SwitchClause? compileSwitchClause(String code)

Compiles the given code for a Switch Clause into a SwitchClause using the Ceylon compiler (more specifically, the rule for a switchHeader).

compileThenOperationSource Codeshared ThenOperation? compileThenOperation(String code)

Compiles the given code for a Then Operation into a ThenOperation using the Ceylon compiler (more specifically, the rule for a thenElseExpression).

compileThisSource Codeshared This? compileThis(String code)

Compiles the given code for a This into a This using the Ceylon compiler (more specifically, the rule for a selfReference).

compileThrowSource Codeshared Throw? compileThrow(String code)

Compiles the given code for a Throw into a Throw using the Ceylon compiler (more specifically, the rule for a throw).

compileTryCatchFinallySource Codeshared TryCatchFinally? compileTryCatchFinally(String code)

Compiles the given code for a Try Catch Finally into a TryCatchFinally using the Ceylon compiler (more specifically, the rule for a tryCatchFinally).

compileTryClauseSource Codeshared TryClause? compileTryClause(String code)

Compiles the given code for a Try Clause into a TryClause using the Ceylon compiler (more specifically, the rule for a tryBlock).

compileTupleSource Codeshared Tuple? compileTuple(String code)

Compiles the given code for a Tuple into a Tuple using the Ceylon compiler (more specifically, the rule for a tuple).

compileTupleTypeSource Codeshared TupleType? compileTupleType(String code)

Compiles the given code for a Tuple Type into a TupleType using the Ceylon compiler (more specifically, the rule for a tupleType).

compileTypeSource Codeshared Type? compileType(String code)

Compiles the given code for a Type into a Type using the Ceylon compiler (more specifically, the rule for a type).

compileTypeAliasDefinitionSource Codeshared TypeAliasDefinition? compileTypeAliasDefinition(String code)

Compiles the given code for a Type Alias Definition into a TypeAliasDefinition using the Ceylon compiler (more specifically, the rule for a declaration).

compileTypeArgumentsSource Codeshared TypeArguments? compileTypeArguments(String code)

Compiles the given code for Type Arguments into a TypeArguments using the Ceylon compiler (more specifically, the rule for typeArguments).

compileTypeConstraintSource Codeshared TypeConstraint? compileTypeConstraint(String code)

Compiles the given code for a Type Constraint into a TypeConstraint using the Ceylon compiler (more specifically, the rule for a typeConstraint).

compileTypeDecSource Codeshared TypeDec? compileTypeDec(String code)

Compiles the given code for a Type Dec into a TypeDec using the Ceylon compiler (more specifically, the rule for a metaLiteral).

compileTypeDeclarationSource Codeshared TypeDeclaration? compileTypeDeclaration(String code)

Compiles the given code for a Type Declaration into a TypeDeclaration using the Ceylon compiler (more specifically, the rule for a declaration).

compileTypeIshSource Codeshared TypeIsh? compileTypeIsh(String code)

Compiles the given code for a Type-ish into a TypeIsh using the Ceylon compiler (more specifically, the rule for a type, variadicType or defaultedType).

compileTypeMetaSource Codeshared TypeMeta? compileTypeMeta(String code)

Compiles the given code for a Type Meta into a TypeMeta using the Ceylon compiler (more specifically, the rule for a metaLiteral).

compileTypeModifierSource Codeshared TypeModifier? compileTypeModifier(String code)

Compiles the given code for a Type Modifier into a TypeModifier using the Ceylon compiler (more specifically, the lexer).

compileTypeParameterSource Codeshared TypeParameter? compileTypeParameter(String code)

Compiles the given code for a Type Parameter into a TypeParameter using the Ceylon compiler (more specifically, the rule for a typeParameter).

compileTypeParametersSource Codeshared TypeParameters? compileTypeParameters(String code)

Compiles the given code for Type Parameters into TypeParameters using the Ceylon compiler (more specifically, the rule for typeParameters).

compileTypeSpecifierSource Codeshared TypeSpecifier? compileTypeSpecifier(String code)

Compiles the given code for a Type Specifier into a TypeSpecifier using the Ceylon compiler (more specifically, the rule for a typeSpecifier).

compileTypedDeclarationSource Codeshared TypedDeclaration? compileTypedDeclaration(String code)

Compiles the given code for a Typed Declaration into a TypedDeclaration using the Ceylon compiler (more specifically, the rule for a declaration).

compileUIdentifierSource Codeshared UIdentifier? compileUIdentifier(String code)

Compiles the given code for an Uppercase Identifier into a UIdentifier using the Ceylon compiler (more specifically, the rule for a Type Name).

compileUnaryArithmeticOperationSource Codeshared UnaryArithmeticOperation? compileUnaryArithmeticOperation(String code)

Compiles the given code for an Unary Arithmetic Operation into an UnaryArithmeticOperation using the Ceylon compiler (more specifically, the rule for an negationComplementExpression).

compileUnaryIshOperationSource Codeshared UnaryIshOperation? compileUnaryIshOperation(String code)

Compiles the given code for an Unary Ish Operation into an UnaryIshOperation using the Ceylon compiler (more specifically, the rule for an unaryIshOperation).

compileUnaryOperationSource Codeshared UnaryOperation? compileUnaryOperation(String code)

Compiles the given code for a Unary Operation into a UnaryOperation using the Ceylon compiler (more specifically, the rule for an assignmentExpression).

compileUnaryTypeOperationSource Codeshared UnaryTypeOperation? compileUnaryTypeOperation(String code)

Compiles the given code for an Unary Type Operation into an UnaryTypeOperation using the Ceylon compiler (more specifically, the rule for a comparisonExpression).

compileUnionAssignmentOperationSource Codeshared UnionAssignmentOperation? compileUnionAssignmentOperation(String code)

Compiles the given code for an Union Assignment Operation into an UnionAssignmentOperation using the Ceylon compiler (more specifically, the rule for an assignmentExpression).

compileUnionOperationSource Codeshared UnionOperation? compileUnionOperation(String code)

Compiles the given code for a Union Operation into an UnionOperation using the Ceylon compiler (more specifically, the rule for a unionExpression).

compileUnionTypeSource Codeshared UnionType? compileUnionType(String code)

Compiles the given code for a Union Type into an UnionType using the Ceylon compiler (more specifically, the rule for a unionType).

compileValueArgumentSource Codeshared ValueArgument? compileValueArgument(String code)

Compiles the given code for a Value Argument into a ValueArgument using the Ceylon compiler (more specifically, the rule for a namedArgumentDeclaration).

compileValueDecSource Codeshared ValueDec? compileValueDec(String code)

Compiles the given code for a Value Dec into a ValueDec using the Ceylon compiler (more specifically, the rule for a metaLiteral).

compileValueDeclarationSource Codeshared ValueDeclaration? compileValueDeclaration(String code)

Compiles the given code for a Value Declaration into an ValueDeclaration using the Ceylon compiler (more specifically, the rule for a declaration).

compileValueDefinitionSource Codeshared ValueDefinition? compileValueDefinition(String code)

Compiles the given code for a Value Definition into an ValueDefinition using the Ceylon compiler (more specifically, the rule for a declaration).

compileValueExpressionSource Codeshared ValueExpression? compileValueExpression(String code)

Compiles the given code for a Value Expression into a ValueExpression using the Ceylon compiler (more specifically, the rule for an expression).

compileValueGetterDefinitionSource Codeshared ValueGetterDefinition? compileValueGetterDefinition(String code)

Compiles the given code for a Value Getter Definition into a ValueGetterDefinition using the Ceylon compiler (more specifically, the rule for a declaration).

compileValueIteratorSource Codeshared ValueIterator? compileValueIterator(String code)

Compiles the given code for a Value Iterator into a ValueIterator using the Ceylon compiler (more specifically, the rule for a forIterator).

compileValueModifierSource Codeshared ValueModifier? compileValueModifier(String code)

Compiles the given code for a Value Modifier into a ValueModifier.

compileValueParameterSource Codeshared ValueParameter? compileValueParameter(String code)

Compiles the given code for a Value Parameter into a ValueParameter using the Ceylon compiler (more specifically, the rule for a parameterDeclarationOrRef).

compileValueSetterDefinitionSource Codeshared ValueSetterDefinition? compileValueSetterDefinition(String code)

Compiles the given code for a Value Setter Definition into a ValueSetterDefinition using the Ceylon compiler (more specifically, the rule for a declaration).

compileValueSpecificationSource Codeshared ValueSpecification? compileValueSpecification(String code)

Compiles the given code for a Value Specification into a ValueSpecification using the Ceylon compiler (more specifically, the rule for an expressionOrSpecificationStatement).

compileVariadicParameterSource Codeshared VariadicParameter? compileVariadicParameter(String code)

Compiles the given code for a Variadic Parameter into a VariadicParameter using the Ceylon compiler (more specifically, the rule for a parameterDeclarationOrRef).

compileVariadicTypeSource Codeshared VariadicType? compileVariadicType(String code)

Compiles the given code for a Variadic Type into a VariadicType using the Ceylon compiler (more specifically, the rule for a variadicType).

compileVarianceSource Codeshared Variance? compileVariance(String code)

Compiles the given code for a Variance into a Variance using the Ceylon compiler (more specifically, the rule for a variance).

compileVoidModifierSource Codeshared VoidModifier? compileVoidModifier(String code)

Compiles the given code for a Void Modifier into a VoidModifier.

compileWhileSource Codeshared While? compileWhile(String code)

Compiles the given code for a While into a While using the Ceylon compiler (more specifically, the rule for a whileLoop).

compileWithinOperationSource Codeshared WithinOperation? compileWithinOperation(String code)

Compiles the given code for a Within Operation into a WithinOperation using the Ceylon compiler (more specifically, the rule for a comparisonExpression).

complementAssignmentOperationToCeylonSource Codeshared ComplementAssignmentOperation complementAssignmentOperationToCeylon(Tree.ComplementAssignOp complementAssignmentOperation)

Converts a RedHat AST ComplementAssignOp to a ceylon.ast ComplementAssignmentOperation.

Parameters:
  • complementAssignmentOperation
    • Check precedence

complementOperationToCeylonSource Codeshared ComplementOperation complementOperationToCeylon(Tree.ComplementOp complementOperation)

Converts a RedHat AST ComplementOp to a ceylon.ast ComplementOperation.

Parameters:
  • complementOperation
    • Check precedence

comprehensionClauseToCeylonSource Codeshared ComprehensionClause comprehensionClauseToCeylon(Tree.ComprehensionClause comprehensionClause)

Converts a RedHat AST ComprehensionClause to a ceylon.ast ComprehensionClause.

Parameters:
  • comprehensionClause
    • is JInitialComprehensionClause|JExpressionComprehensionClause comprehensionClause
comprehensionToCeylonSource Codeshared Comprehension comprehensionToCeylon(Tree.Comprehension comprehension)

Converts a RedHat AST Comprehension to a ceylon.ast Comprehension.

conditionToCeylonSource Codeshared Condition conditionToCeylon(Tree.Condition condition)

Converts a RedHat AST Condition to a ceylon.ast Condition.

Parameters:
  • condition
    • is JBooleanCondition|JIsCondition|JExistsOrNonemptyCondition condition
conditionsToCeylonSource Codeshared Conditions conditionsToCeylon(Tree.ConditionList conditions)

Converts a RedHat AST ConditionList to ceylon.ast Conditions.

Parameters:
  • conditions
    • nonempty conds = CeylonIterable(conditions.conditions).collect(conditionToCeylon)
continueToCeylonSource Codeshared Continue continueToCeylon(Tree.Continue continue)

Converts a RedHat AST Continue to a ceylon.ast Continue.

controlStructureToCeylonSource Codeshared ControlStructure controlStructureToCeylon(Tree.ControlStatement controlStructure)

Converts a RedHat AST ControlStatement to a ceylon.ast ControlStructure.

Parameters:
  • controlStructure
    • is JIfStatement|JForStatement|JWhileStatement|JSwitchStatement|JTryCatchStatement|JDynamicStatement controlStructure
createParserSource Codeshared CeylonParser createParser(String code)

Creates a Ceylon parser that operates on the given code.

decToCeylonSource Codeshared Dec decToCeylon(Tree.MetaLiteral dec)

Converts a RedHat AST MetaLiteral to a ceylon.ast Dec.

Parameters:
  • dec
    • is JClassLiteral|JInterfaceLiteral|JAliasLiteral|JTypeParameterLiteral|JValueLiteral|JFunctionLiteral|JModuleLiteral|JPackageLiteral dec
declarationOrStatementToCeylonSource Codeshared Declaration|Statement declarationOrStatementToCeylon(Tree.Statement declarationOrStatement)

Converts a RedHat AST JStatement to a ceylon.ast Declaration or Statement.

Parameters:
  • declarationOrStatement
    • is JDeclaration|JExecutableStatement declarationOrStatement
declarationToCeylonSource Codeshared Declaration declarationToCeylon(Tree.Declaration declaration)

Converts a RedHat AST Declaration to a ceylon.ast Declaration.

Parameters:
  • declaration
    • is JMissingDeclaration|JTypeDeclaration|JTypedDeclaration|JTypeParameterDeclaration declaration
defaultedCallableParameterToCeylonSource Codeshared DefaultedCallableParameter defaultedCallableParameterToCeylon(Tree.FunctionalParameterDeclaration defaultedCallableParameter)

Converts a RedHat AST FunctionalParameterDeclaration to a ceylon.ast DefaultedCallableParameter.

Parameters:
  • defaultedCallableParameter
    • is JMethodDeclaration dec = defaultedCallableParameter.typedDeclaration
defaultedParameterReferenceToCeylonSource Codeshared DefaultedParameterReference defaultedParameterReferenceToCeylon(Tree.InitializerParameter defaultedParameterReference)

Converts a RedHat AST InitializerParameter to a ceylon.ast DefaultedParameterReference.

Parameters:
  • defaultedParameterReference
    • Must be defaulted

defaultedParameterToCeylonSource Codeshared DefaultedParameter defaultedParameterToCeylon(Tree.Parameter defaultedParameter)

Converts a RedHat AST Parameter to a ceylon.ast DefaultedParameter.

Parameters:
  • defaultedParameter
    • is JParameterDeclaration|JInitializerParameter defaultedParameter
defaultedTypeToCeylonSource Codeshared DefaultedType defaultedTypeToCeylon(Tree.DefaultedType defaultedType)

Converts a RedHat AST DefaultedType to a ceylon.ast DefaultedType.

Parameters:
  • defaultedType
    • is JStaticType jType = defaultedType.type
defaultedValueParameterToCeylonSource Codeshared DefaultedValueParameter defaultedValueParameterToCeylon(Tree.ValueParameterDeclaration defaultedValueParameter)

Converts a RedHat AST ValueParameterDeclaration to a ceylon.ast DefaultedValueParameter.

Parameters:
  • defaultedValueParameter
    • Must be defaulted

differenceOperationToCeylonSource Codeshared DifferenceOperation differenceOperationToCeylon(Tree.DifferenceOp differenceOperation)

Converts a RedHat AST DifferenceOp to a ceylon.ast DifferenceOperation.

Parameters:
  • differenceOperation
    • Check precedence

directiveToCeylonSource Codeshared Directive directiveToCeylon(Tree.Directive directive)

Converts a RedHat AST Directive to a ceylon.ast Directive.

Parameters:
  • directive
    • is JReturn|JThrow|JBreak|JContinue directive
divideAssignmentOperationToCeylonSource Codeshared DivideAssignmentOperation divideAssignmentOperationToCeylon(Tree.DivideAssignOp divideAssignmentOperation)

Converts a RedHat AST DivideAssignOp to a ceylon.ast DivideAssignmentOperation.

Parameters:
  • divideAssignmentOperation
    • Check precedence

dynamicBlockToCeylonSource Codeshared DynamicBlock dynamicBlockToCeylon(Tree.DynamicStatement dynamicBlock)

Converts a RedHat AST DynamicStatement to a ceylon.ast DynamicBlock.

dynamicClauseToCeylonSource Codeshared DynamicBlock dynamicClauseToCeylon(Tree.DynamicClause dynamicClause)

Converts a RedHat AST DynamicClause to a ceylon.ast DynamicBlock.

This function is only offered for convenience, if you happen to have an unwrapped DynamicClause; the real RedHat AST node corresponding to ceylon.ast’s DynamicBlock is DynamicStatement.

dynamicInterfaceDefinitionToCeylonSource Codeshared DynamicInterfaceDefinition dynamicInterfaceDefinitionToCeylon(Tree.InterfaceDefinition dynamicInterfaceDefinition)

Converts a RedHat AST InterfaceDefinition to a ceylon.ast DynamicInterfaceDefinition.

Parameters:
  • dynamicInterfaceDefinition
    • Must be dynamic

    • is DynamicInterfaceDefinition ret = anyInterfaceDefinitionToCeylon(dynamicInterfaceDefinition)
Throws
dynamicModifierToCeylonSource Codeshared DynamicModifier dynamicModifierToCeylon(Tree.DynamicModifier dynamicModifier)

Converts a RedHat AST DynamicModifier to a ceylon.ast DynamicModifier.

dynamicValueToCeylonSource Codeshared DynamicValue dynamicValueToCeylon(Tree.Dynamic dynamicValue)

Converts a RedHat AST Dynamic to a ceylon.ast DynamicValue.

elementOrSubrangeExpressionToCeylonSource Codeshared ElementOrSubrangeExpression elementOrSubrangeExpressionToCeylon(Tree.IndexExpression elementOrSubrangeExpression)

Converts a RedHat AST IndexExpression to a ceylon.ast ElementOrSubrangeExpression.

elseCaseClauseToCeylonSource Codeshared ElseCaseClause elseCaseClauseToCeylon(Tree.ElseClause elseCaseClause)

Converts a RedHat AST ElseClause to a ceylon.ast ElseCaseClause.

Parameters:
  • elseCaseClause
    • Must not be a synthetic (if-else) block

Throws
  • AssertionError

    If the else clause’s block isn’t a real block (i. e., an ‘else if’ construct)

elseClauseToCeylonSource Codeshared ElseClause elseClauseToCeylon(Tree.ElseClause elseClause)

Converts a RedHat AST ElseClause to a ceylon.ast ElseClause.

elseOperationToCeylonSource Codeshared ElseOperation elseOperationToCeylon(Tree.DefaultOp elseOperation)

Converts a RedHat AST DefaultOp to a ceylon.ast ElseOperation.

Parameters:
  • elseOperation
    • Check precedence

entryOperationToCeylonSource Codeshared EntryOperation entryOperationToCeylon(Tree.EntryOp entryOperation)

Converts a RedHat AST EntryOp to a ceylon.ast EntryOperation.

Parameters:
  • entryOperation
    • Check precedence

entryTypeToCeylonSource Codeshared EntryType entryTypeToCeylon(Tree.EntryType entryType)

Converts a RedHat AST EntryType to a ceylon.ast EntryType.

Parameters:
  • entryType
    • is MainType key = typeToCeylon(entryType.keyType)
    • is MainType item = typeToCeylon(entryType.valueType)
equalOperationToCeylonSource Codeshared EqualOperation equalOperationToCeylon(Tree.EqualOp equalOperation)

Converts a RedHat AST EqualOp to a ceylon.ast EqualOperation.

Parameters:
  • equalOperation
    • Check precedence

equalityOperationToCeylonSource Codeshared EqualityOperation equalityOperationToCeylon(Tree.EqualityOp|Tree.IdenticalOp equalityOperation)

Converts a RedHat AST EqualityOp or IdenticalOp to a ceylon.ast EqualityOperation.

Parameters:
  • equalityOperation
    • is JEqualOp|JNotEqualOp|JIdenticalOp equalityOperation
existsConditionToCeylonSource Codeshared ExistsCondition existsConditionToCeylon(Tree.ExistsCondition existsCondition)

Converts a RedHat AST ExistsCondition to a ceylon.ast ExistsCondition.

existsOperationToCeylonSource Codeshared ExistsOperation existsOperationToCeylon(Tree.Exists existsOperation)

Converts a RedHat AST Exists to a ceylon.ast ExistsOperation.

Parameters:
  • existsOperation
    • Check precedence

existsOrNonemptyConditionToCeylonSource Codeshared ExistsOrNonemptyCondition existsOrNonemptyConditionToCeylon(Tree.ExistsOrNonemptyCondition existsOrNonemptyCondition)

Converts a RedHat AST ExistsOrNonemptyCondition to a ceylon.ast ExistsOrNonemptyCondition.

Parameters:
  • existsOrNonemptyCondition
    • is JExistsCondition|JNonemptyCondition existsOrNonemptyCondition
exponentiationOperationToCeylonSource Codeshared ExponentiationOperation exponentiationOperationToCeylon(Tree.PowerOp exponentiationExpression)

Converts a RedHat AST PowerOp to a ceylon.ast ExponentiationOperation.

Parameters:
  • exponentiationExpression
    • is PrePostfixingExpression left = expressionToCeylon(exponentiationExpression.leftTerm)
    • is ExponentiatingExpression right = expressionToCeylon(exponentiationExpression.rightTerm)
expressionComprehensionClauseToCeylonSource Codeshared ExpressionComprehensionClause expressionComprehensionClauseToCeylon(Tree.ExpressionComprehensionClause expressionComprehensionClause)

Converts a RedHat AST ExpressionComprehensionClause to a ceylon.ast ExpressionComprehensionClause.

expressionStatementToCeylonSource Codeshared ExpressionStatement expressionStatementToCeylon(Tree.ExpressionStatement expressionStatement)

Converts a RedHat AST ExpressionStatement to a ceylon.ast ExpressionStatement.

Parameters:
  • expressionStatement
    • is JAssignmentOp|JPrefixOperatorExpression|JPostfixOperatorExpression|JInvocationExpression expression = expressionStatement.expression.term
expressionToCeylonSource Codeshared Expression expressionToCeylon(Tree.Term term)

Converts a RedHat AST Term to a ceylon.ast Expression.

extendedTypeToCeylonSource Codeshared ExtendedType extendedTypeToCeylon(Tree.ExtendedType extendedType)

Converts a RedHat AST ExtendedType to a ceylon.ast ExtendedType.

failClauseToCeylonSource Codeshared FailClause failClauseToCeylon(Tree.ElseClause failClause)

Converts a RedHat AST ElseClause to a ceylon.ast FailClause.

Parameters:
  • failClause
    • exists jBlock = failClause.block
finallyClauseToCeylonSource Codeshared FinallyClause finallyClauseToCeylon(Tree.FinallyClause finallyClause)

Converts a RedHat AST FinallyClause to a ceylon.ast FinallyClause.

floatLiteralToCeylonSource Codeshared FloatLiteral floatLiteralToCeylon(Tree.FloatLiteral floatLiteral)

Converts a RedHat AST FloatLiteral to a ceylon.ast FloatLiteral.

Parameters:
  • floatLiteral
    • floatLiteral.mainToken.type == float_literal
Throws
forClauseToCeylonSource Codeshared ForClause forClauseToCeylon(Tree.ForClause forClause)

Converts a RedHat AST ForClause to a ceylon.ast ForClause.

forComprehensionClauseToCeylonSource Codeshared ForComprehensionClause forComprehensionClauseToCeylon(Tree.ForComprehensionClause forComprehensionClause)

Converts a RedHat AST ForComprehensionClause to a ceylon.ast ForComprehensionClause.

forFailToCeylonSource Codeshared ForFail forFailToCeylon(Tree.ForStatement forFail)

Converts a RedHat AST ForStatement to a ceylon.ast ForFail.

forIteratorToCeylonSource Codeshared ForIterator forIteratorToCeylon(Tree.ForIterator forIterator)

Converts a RedHat AST ForIterator to a ceylon.ast ForIterator.

Parameters:
  • forIterator
    • is JValueIterator|JKeyValueIterator forIterator
fullPackageNameToCeylonSource Codeshared FullPackageName fullPackageNameToCeylon(Tree.ImportPath fullPackageName)

Converts a RedHat AST ImportPath to a ceylon.ast FullPackageName.

Parameters:
  • fullPackageName
    • nonempty components = CeylonIterable(fullPackageName.identifiers).collect(pIdentifierToCeylon)
functionArgumentToCeylonSource Codeshared FunctionArgument functionArgumentToCeylon(Tree.MethodArgument functionArgument)

Converts a RedHat AST MethodArgument to a ceylon.ast FunctionArgument.

(Warning: The RedHat MethodArgument should not be confused with FunctionArgument, which corresponds to ceylon.ast’s FunctionExpression.)

Parameters:
  • functionArgument
    • is JStaticType|JFunctionModifier|JVoidModifier|JDynamicModifier jType = functionArgument.type
functionDecToCeylonSource Codeshared FunctionDec functionDecToCeylon(Tree.FunctionLiteral functionDec)

Converts a RedHat AST FunctionDec to a ceylon.ast FunctionDec.

functionDeclarationToCeylonSource Codeshared FunctionDeclaration functionDeclarationToCeylon(Tree.MethodDeclaration functionDeclaration)

Converts a RedHat AST MethodDeclaration to a ceylon.ast FunctionDeclaration.

Parameters:
  • functionDeclaration
    • Must not have a specification

functionDefinitionToCeylonSource Codeshared FunctionDefinition functionDefinitionToCeylon(Tree.MethodDefinition functionDefinition)

Converts a RedHat AST MethodDefinition to a ceylon.ast FunctionDefinition.

functionExpressionToCeylonSource Codeshared FunctionExpression functionExpressionToCeylon(Tree.FunctionArgument functionExpression)

Converts a RedHat AST FunctionArgument to a ceylon.ast FunctionExpression.

Parameters:
  • functionExpression
    • nonempty parameterLists = CeylonIterable(functionExpression.parameterLists).collect(parametersToCeylon)
functionModifierToCeylonSource Codeshared FunctionModifier functionModifierToCeylon(Tree.FunctionModifier functionModifier)

Converts a RedHat AST FunctionModifier to a ceylon.ast FunctionModifier.

functionShortcutDefinitionToCeylonSource Codeshared FunctionShortcutDefinition functionShortcutDefinitionToCeylon(Tree.MethodDeclaration functionShortcutDefinition)

Converts a RedHat AST MethodDeclaration to a ceylon.ast FunctionShortcutDefinition.

givenDecToCeylonSource Codeshared GivenDec givenDecToCeylon(Tree.TypeParameterLiteral givenDec)

Converts a RedHat AST TypeParameterLiteral to a ceylon.ast GivenDec.

Parameters:
  • givenDec
    • is JBaseType type = givenDec.type
groupedExpressionToCeylonSource Codeshared GroupedExpression groupedExpressionToCeylon(Tree.Expression groupedExpression)

Converts a RedHat AST Expression to a ceylon.ast GroupedExpression.

Warning: Expression is used somewhat ambiguously in the RedHat AST. It can be used to wrap any expression in parentheses (and is used thus in the rule parExpression), and despite its name, it’s not the root of the expression type hierarchy (which is Term); however, many other node types declare an Expression child instead of a Term child, and the Expression used is then often a simple wrapper around a Term without parenthesis tokens.

This function only converts true grouped expressions (i. e., it asserts the existence of tokens); if you’re not sure if your Expression is grouped or not, use expressionToCeylon() instead.

Parameters:
  • groupedExpression
    • Must be a grouped expression

Throws
groupedTypeToCeylonSource Codeshared GroupedType groupedTypeToCeylon(Tree.GroupedType groupedType)

Converts a RedHat AST GroupedType to a ceylon.ast GroupedType.

identicalOperationToCeylonSource Codeshared IdenticalOperation identicalOperationToCeylon(Tree.IdenticalOp identicalOperation)

Converts a RedHat AST IdenticalOp to a ceylon.ast IdenticalOperation.

Parameters:
  • identicalOperation
    • Check precedence

identifierToCeylonSource Codeshared Identifier identifierToCeylon(Tree.Identifier identifier)

Converts a RedHat AST Identifier to a ceylon.ast Identifier.

Parameters:
  • identifier
    • Need CommonToken to get length of token (!= text’s length for \iCONSTANT)

Throws
  • AssertionError

    If the token type is neither LIDENTIFIER nor UIDENTIFIER.

identityOperationToCeylonSource Codeshared IdentityOperation identityOperationToCeylon(Tree.PositiveOp identityOperation)

Converts a RedHat AST PositiveOp to a ceylon.ast IdentityOperation.

Parameters:
  • identityOperation
    • is ExponentiatingExpression operand = expressionToCeylon(identityOperation.term)
ifClauseToCeylonSource Codeshared IfClause ifClauseToCeylon(Tree.IfClause ifClause)

Converts a RedHat AST IfClause to a ceylon.ast IfClause.

ifComprehensionClauseToCeylonSource Codeshared IfComprehensionClause ifComprehensionClauseToCeylon(Tree.IfComprehensionClause ifComprehensionClause)

Converts a RedHat AST IfComprehensionClause to a ceylon.ast IfComprehensionClause.

ifElseToCeylonSource Codeshared IfElse ifElseToCeylon(Tree.IfStatement ifElse)

Converts a RedHat AST IfStatement to a ceylon.ast IfElse.

importAliasToCeylonSource Codeshared ImportAlias importAliasToCeylon(Tree.Alias importAlias)

Converts a RedHat AST Alias to a ceylon.ast ImportAlias.

importElementToCeylonSource Codeshared ImportElement importElementToCeylon(Tree.ImportMemberOrType importElement)

Converts a RedHat AST ImportMemberOrType to a ceylon.ast ImportElement.

importElementsToCeylonSource Codeshared ImportElements importElementsToCeylon(Tree.ImportMemberOrTypeList importElements)

Converts a RedHat AST ImportMemberOrTypeList to a ceylon.ast ImportElements.

importFunctionValueAliasToCeylonSource Codeshared ImportFunctionValueAlias importFunctionValueAliasToCeylon(Tree.Alias importFunctionValueAlias)

Converts a RedHat AST Alias to a ceylon.ast ImportFunctionValueAlias.

importFunctionValueElementToCeylonSource Codeshared ImportFunctionValueElement importFunctionValueElementToCeylon(Tree.ImportMemberOrType importFunctionValueElement)

Converts a RedHat AST ImportMemberOrType to a ceylon.ast ImportFunctionValueElement.

importToCeylonSource Codeshared Import importToCeylon(Tree.Import import)

Converts a RedHat AST Import to a ceylon.ast Import.

importTypeAliasToCeylonSource Codeshared ImportTypeAlias importTypeAliasToCeylon(Tree.Alias importTypeAlias)

Converts a RedHat AST Alias to a ceylon.ast ImportTypeAlias.

importTypeElementToCeylonSource Codeshared ImportTypeElement importTypeElementToCeylon(Tree.ImportMemberOrType importTypeElement)

Converts a RedHat AST ImportMemberOrType to a ceylon.ast ImportTypeElement.

(It might seem more appropriate if this method only accepted ImportTypes, but the RedHat parser never actually produces these. See ceylon/ceylon-spec#323.)

importWildcardToCeylonSource Codeshared ImportWildcard importWildcardToCeylon(Tree.ImportWildcard importWildcard)

Converts a RedHat AST ImportWildcard to a ceylon.ast ImportWildcard.

inModifierToCeylonSource Codeshared InModifier inModifierToCeylon(Tree.TypeVariance inModifier)

Converts a RedHat AST TypeVariance with token type IN_OP (in_op) to a ceylon.ast InModifier.

Parameters:
  • inModifier
    • Must be an ‘in’ modifier

inOperationToCeylonSource Codeshared InOperation inOperationToCeylon(Tree.InOp inOperation)

Converts a RedHat AST InOp to a ceylon.ast InOperation.

Parameters:
  • inOperation
    • Check precedence

initialComprehensionClauseToCeylonSource Codeshared InitialComprehensionClause initialComprehensionClauseToCeylon(Tree.InitialComprehensionClause initialComprehensionClause)

Converts a RedHat AST InitialComprehensionClause to a ceylon.ast InitialComprehensionClause.

Parameters:
  • initialComprehensionClause
    • is JForComprehensionClause|JIfComprehensionClause initialComprehensionClause
inlineDefinitionArgumentToCeylonSource Codeshared InlineDefinitionArgument inlineDefinitionArgumentToCeylon(Tree.TypedArgument inlineDefinitionArgument)

Converts a RedHat AST TypedArgument to a ceylon.ast InlineDefinitionArgument.

Parameters:
  • inlineDefinitionArgument
    • is JAttributeArgument|JMethodArgument|JObjectArgument inlineDefinitionArgument
integerLiteralToCeylonSource Codeshared IntegerLiteral integerLiteralToCeylon(Tree.NaturalLiteral integerLiteral)

Converts a RedHat AST NaturalLiteral to a ceylon.ast IntegerLiteral.

Parameters:
  • integerLiteral
    • integerLiteral.mainToken.type == naturalLiteral
Throws
interfaceAliasDefinitionToCeylonSource Codeshared InterfaceAliasDefinition interfaceAliasDefinitionToCeylon(Tree.InterfaceDeclaration interfaceAliasDefinition)

Converts a RedHat AST InterfaceDeclaration to a ceylon.ast InterfaceAliasDefinition.

interfaceBodyToCeylonSource Codeshared InterfaceBody interfaceBodyToCeylon(Tree.InterfaceBody interfaceBody)

Converts a RedHat AST InterfaceBody to a ceylon.ast InterfaceBody.

interfaceDecToCeylonSource Codeshared InterfaceDec interfaceDecToCeylon(Tree.InterfaceLiteral interfaceDec)

Converts a RedHat AST InterfaceLiteral to a ceylon.ast InterfaceDec.

Parameters:
  • interfaceDec
    • is JBaseType|JQualifiedType jType = interfaceDec.type
interfaceDefinitionToCeylonSource Codeshared InterfaceDefinition interfaceDefinitionToCeylon(Tree.InterfaceDefinition interfaceDefinition)

Converts a RedHat AST InterfaceDefinition to a ceylon.ast InterfaceDefinition.

Parameters:
  • interfaceDefinition
    • Must not be dynamic

    • is InterfaceDefinition ret = anyInterfaceDefinitionToCeylon(interfaceDefinition)
Throws
intersectAssignmentOperationToCeylonSource Codeshared IntersectAssignmentOperation intersectAssignmentOperationToCeylon(Tree.IntersectAssignOp intersectAssignmentOperation)

Converts a RedHat AST IntersectAssignOp to a ceylon.ast IntersectAssignmentOperation.

Parameters:
  • intersectAssignmentOperation
    • Check precedence

intersectionOperationToCeylonSource Codeshared IntersectionOperation intersectionOperationToCeylon(Tree.IntersectionOp intersectionOperation)

Converts a RedHat AST IntersectionOp to a ceylon.ast IntersectionOperation.

Parameters:
  • intersectionOperation
    • Check precedence

intersectionTypeToCeylonSource Codeshared IntersectionType intersectionTypeToCeylon(Tree.IntersectionType intersectionType)

Converts a RedHat AST IntersectionType to a ceylon.ast IntersectionType.

invocationStatementToCeylonSource Codeshared InvocationStatement invocationStatementToCeylon(Tree.ExpressionStatement invocationStatement)

Converts a RedHat AST ExpressionStatement to a ceylon.ast InvocationStatement.

Parameters:
  • invocationStatement
    • is JInvocationExpression expression = invocationStatement.expression.term
invocationToCeylonSource Codeshared Invocation invocationToCeylon(Tree.InvocationExpression invocation)

Converts a RedHat AST InvocationExpression to a ceylon.ast Invocation.

isCaseToCeylonSource Codeshared IsCase isCaseToCeylon(Tree.IsCase isCase)

Converts a RedHat AST IsCase to a ceylon.ast IsCase.

Parameters:
  • isCase
    • is JStaticType jType = isCase.type
isConditionToCeylonSource Codeshared IsCondition isConditionToCeylon(Tree.IsCondition isCondition)

Converts a RedHat AST IsCondition to a ceylon.ast IsCondition.

Parameters:
  • isCondition
    • is JStaticType jType = isCondition.type
isOperationToCeylonSource Codeshared IsOperation isOperationToCeylon(Tree.IsOp isOperation)

Converts a RedHat AST IsOp to a ceylon.ast IsOperation.

Parameters:
  • isOperation
    • Check precedence

    • Must be a real type

iterableToCeylonSource Codeshared Iterable iterableToCeylon(Tree.SequenceEnumeration iterable)

Converts a RedHat AST SequenceEnumeration to a ceylon.ast Iterable.

iterableTypeToCeylonSource Codeshared IterableType iterableTypeToCeylon(Tree.IterableType iterableType)

Converts a RedHat AST IterableType to a ceylon.ast IterableType.

keySubscriptToCeylonSource Codeshared KeySubscript keySubscriptToCeylon(Tree.Element keySubscript)

Converts a RedHat AST Element to a ceylon.ast KeySubscript.

Parameters:
  • keySubscript
    • Check precedence

keyValueIteratorToCeylonSource Codeshared KeyValueIterator keyValueIteratorToCeylon(Tree.KeyValueIterator keyValueIterator)

Converts a RedHat AST KeyValueIterator to a ceylon.ast KeyValueIterator.

lIdentifierToCeylonSource Codeshared LIdentifier lIdentifierToCeylon(Tree.Identifier identifier)

Converts a RedHat AST Identifier to a ceylon.ast LIdentifier.

Parameters:
  • identifier
    • Need CommonToken to get length of token (!= text’s length for \iCONSTANT)

Throws
largeAsOperationToCeylonSource Codeshared LargeAsOperation largeAsOperationToCeylon(Tree.LargeAsOp largeAsOperation)

Converts a RedHat AST LargeAsOp to a ceylon.ast LargeAsOperation.

Parameters:
  • largeAsOperation
    • Check precedence

largerOperationToCeylonSource Codeshared LargerOperation largerOperationToCeylon(Tree.LargerOp largerOperation)

Converts a RedHat AST LargerOp to a ceylon.ast LargerOperation.

Parameters:
  • largerOperation
    • Check precedence

lazySpecificationToCeylonSource Codeshared LazySpecification lazySpecificationToCeylon(Tree.SpecifierStatement lazySpecification)

Converts a RedHat AST SpecifierStatement to a ceylon.ast LazySpecification.

Only lazy specification statements are converted by this function; for non-lazy specification statements, use valueSpecificationToCeylon().

Parameters:
  • lazySpecification
    • Only function or value may be specified

lazySpecifierToCeylonSource Codeshared LazySpecifier lazySpecifierToCeylon(Tree.LazySpecifierExpression lazySpecifier)

Converts a RedHat AST LazySpecifierExpression to a ceylon.ast LazySpecifier.

Parameters:
  • lazySpecifier
    • Must be a “wrapper” Expression, not a grouping Expression

    • Must be a true lazy specifier

literalToCeylonSource Codeshared Literal literalToCeylon(Tree.Literal literal)

Converts a RedHat AST Literal to a ceylon.ast Literal.

(A QuotedLiteral – a string surrounded by single or double quotes – is always converted to a StringLiteral.)

Parameters:
  • literal
    • is JStringLiteral|JCharacterLiteral|JIntegerLiteral|JFloatLiteral|JQuotedLiteral literal
Throws
localModifierToCeylonSource Codeshared LocalModifier localModifierToCeylon(Tree.LocalModifier localModifier)

Converts a RedHat AST LocalModifier to a ceylon.ast LocalModifier.

Parameters:
  • localModifier
    • is JValueModifier|JFunctionModifier localModifier
logicalAssignmentOperationToCeylonSource Codeshared LogicalAssignmentOperation logicalAssignmentOperationToCeylon(Tree.LogicalAssignmentOp logicalAssignmentOperation)

Converts a RedHat AST LogicalAssignmentOp to a ceylon.ast LogicalAssignmentOperation.

Parameters:
  • logicalAssignmentOperation
    • is JAndAssignOp|JOrAssignOp logicalAssignmentOperation
logicalOperationToCeylonSource Codeshared LogicalOperation logicalOperationToCeylon(Tree.LogicalOp logicalOperation)

Converts a RedHat AST LogicalOp to a ceylon.ast LogicalOperation.

Parameters:
  • logicalOperation
    • is JAndOp|JOrOp logicalOperation
matchCaseToCeylonSource Codeshared MatchCase matchCaseToCeylon(Tree.MatchCase matchCase)

Converts a RedHat AST MatchCase to a ceylon.ast MatchCase.

measureOperationToCeylonSource Codeshared MeasureOperation measureOperationToCeylon(Tree.SegmentOp measureOperation)

Converts a RedHat AST SegmentOp to a ceylon.ast MeasureOperation.

Parameters:
  • measureOperation
    • Check precedence

measureSubscriptToCeylonSource Codeshared MeasureSubscript measureSubscriptToCeylon(Tree.ElementRange measureSubscript)

Converts a RedHat AST ElementRange to a ceylon.ast MeasureSubscript.

Parameters:
  • measureSubscript
    • exists jFrom = measureSubscript.lowerBound
    • exists jLength = measureSubscript.length
    • !measureSubscript.upperBound exists
memberDecToCeylonSource Codeshared MemberDec memberDecToCeylon(Tree.MemberLiteral memberDec)

Converts a RedHat AST MemberLiteral to a ceylon.ast MemberDec.

Parameters:
  • memberDec
    • Must be a Dec, not a Meta

memberMetaToCeylonSource Codeshared MemberMeta memberMetaToCeylon(Tree.MemberLiteral memberMeta)

Converts a RedHat AST MemberLiteral to a ceylon.ast MemberMeta.

Parameters:
  • memberMeta
    • exists jQualifier = memberMeta.type else memberMeta.objectExpression
    • Must not be a reference expression

memberOperatorToCeylonSource Codeshared MemberOperator memberOperatorToCeylon(Tree.MemberOp memberOperator)

Converts a RedHat AST MemberOp to a ceylon.ast MemberOperator.

metaToCeylonSource Codeshared Meta metaToCeylon(Tree.MetaLiteral metaLiteral)

Converts a RedHat AST MetaLiteral to a ceylon.ast Meta.

Parameters:
  • metaLiteral
    • is JTypeLiteral|JMemberLiteral metaLiteral
modifierToCeylonSource Codeshared Modifier modifierToCeylon(Tree.VoidModifier|Tree.LocalModifier|Tree.DynamicModifier|Tree.TypeVariance modifier)

Converts a RedHat AST VoidModifier or DynamicModifier to a ceylon.ast Modifier.

moduleBodyToCeylonSource Codeshared ModuleBody moduleBodyToCeylon(Tree.ImportModuleList moduleBody)

Converts a RedHat AST ImportModuleList to a ceylon.ast ModuleBody.

moduleCompilationUnitToCeylonSource Codeshared ModuleCompilationUnit moduleCompilationUnitToCeylon(Tree.CompilationUnit moduleCompilationUnit)

Converts a RedHat AST CompilationUnit to a ceylon.ast ModuleCompilationUnit.

Parameters:
  • moduleCompilationUnit
    • Must not have declarations or package descriptors

    • Must have exactly one module descriptor

Throws
  • AssertionError

    If the compilation unit contains package descriptors, declarations, or not exactly one module descriptor

moduleDecToCeylonSource Codeshared ModuleDec moduleDecToCeylon(Tree.ModuleLiteral moduleDec)

Converts a RedHat AST ModuleLiteral to a ceylon.ast ModuleDec.

moduleDescriptorToCeylonSource Codeshared ModuleDescriptor moduleDescriptorToCeylon(Tree.ModuleDescriptor moduleDescriptor)

Converts a RedHat AST ModuleDescriptor to a ceylon.ast ModuleDescriptor.

moduleImportToCeylonSource Codeshared ModuleImport moduleImportToCeylon(Tree.ImportModule moduleImport)

Converts a RedHat AST ImportModule to a ceylon.ast ModuleImport.

multiplyAssignmentOperationToCeylonSource Codeshared MultiplyAssignmentOperation multiplyAssignmentOperationToCeylon(Tree.MultiplyAssignOp multiplyAssignmentOperation)

Converts a RedHat AST MultiplyAssignOp to a ceylon.ast MultiplyAssignmentOperation.

Parameters:
  • multiplyAssignmentOperation
    • Check precedence

namedArgumentToCeylonSource Codeshared NamedArgument namedArgumentToCeylon(Tree.NamedArgument namedArgument)

Converts a RedHat AST NamedArgument to a ceylon.ast NamedArgument.

Parameters:
  • namedArgument
    • is JSpecifiedArgument|JTypedArgument namedArgument
namedArgumentsToCeylonSource Codeshared NamedArguments namedArgumentsToCeylon(Tree.NamedArgumentList namedArguments)

Converts a RedHat AST NamedArgumentList to a ceylon.ast NamedArguments.

negationOperationToCeylonSource Codeshared NegationOperation negationOperationToCeylon(Tree.NegativeOp negationOperation)

Converts a RedHat AST NegativeOp to a ceylon.ast NegationOperation.

Parameters:
  • negationOperation
    • is ExponentiatingExpression operand = expressionToCeylon(negationOperation.term)
nonemptyConditionToCeylonSource Codeshared NonemptyCondition nonemptyConditionToCeylon(Tree.NonemptyCondition nonemptyCondition)

Converts a RedHat AST NonemptyCondition to a ceylon.ast NonemptyCondition.

nonemptyOperationToCeylonSource Codeshared NonemptyOperation nonemptyOperationToCeylon(Tree.Nonempty nonemptyOperation)

Converts a RedHat AST Nonempty to a ceylon.ast NonemptyOperation.

Parameters:
  • nonemptyOperation
    • Check precedence

notEqualOperationToCeylonSource Codeshared NotEqualOperation notEqualOperationToCeylon(Tree.NotEqualOp notEqualOperation)

Converts a RedHat AST NotEqualOp to a ceylon.ast NotEqualOperation.

Parameters:
  • notEqualOperation
    • Check precedence

notOperationToCeylonSource Codeshared NotOperation notOperationToCeylon(Tree.NotOp notOperation)

Converts a RedHat AST NotOp to a ceylon.ast NotOperation.

Parameters:
  • notOperation
    • Check precedence

objectArgumentToCeylonSource Codeshared ObjectArgument objectArgumentToCeylon(Tree.ObjectArgument objectArgument)

Converts a RedHat AST ObjectArgument to a ceylon.ast ObjectArgument.

objectDefinitionToCeylonSource Codeshared ObjectDefinition objectDefinitionToCeylon(Tree.ObjectDefinition objectDefinition)

Converts a RedHat AST ObjectDefinition to a ceylon.ast ObjectDefinition.

ofOperationToCeylonSource Codeshared OfOperation ofOperationToCeylon(Tree.OfOp ofOperation)

Converts a RedHat AST OfOp to a ceylon.ast OfOperation.

Parameters:
  • ofOperation
    • Check precedence

    • Must be a real type

openBoundToCeylonSource Codeshared OpenBound openBoundToCeylon(Tree.OpenBound openBound)

Converts a RedHat AST OpenBound to a ceylon.ast OpenBound.

Parameters:
  • openBound
    • Check precedence

operationToCeylonSource Codeshared Operation operationToCeylon(Tree.OperatorExpression operatorExpression)

Converts a RedHat AST OperatorExpression to a ceylon.ast Operation.

Parameters:
  • operatorExpression
    • is JUnaryOperatorExpression|JBinaryOperatorExpression|JWithinOp operatorExpression
optionalTypeToCeylonSource Codeshared OptionalType optionalTypeToCeylon(Tree.OptionalType optionalType)

Converts a RedHat AST OptionalType to a ceylon.ast OptionalType.

Parameters:
  • optionalType
    • is PrimaryType definite = typeToCeylon(optionalType.definiteType)
orAssignmentOperationToCeylonSource Codeshared OrAssignmentOperation orAssignmentOperationToCeylon(Tree.OrAssignOp orAssignmentOperation)

Converts a RedHat AST OrAssignOp to a ceylon.ast OrAssignmentOperation.

Parameters:
  • orAssignmentOperation
    • Check precedence

orOperationToCeylonSource Codeshared OrOperation orOperationToCeylon(Tree.OrOp orOperation)

Converts a RedHat AST OrOp to a ceylon.ast OrOperation.

Parameters:
  • orOperation
    • Check precedence

outModifierToCeylonSource Codeshared OutModifier outModifierToCeylon(Tree.TypeVariance outModifier)

Converts a RedHat AST TypeVariance with token type OUT (outType) to a ceylon.ast OutModifier.

Parameters:
  • outModifier
    • Must be an ‘in’ modifier

outerToCeylonSource Codeshared Outer outerToCeylon(Tree.Outer outer)

Converts a RedHat AST Outer to a ceylon.ast Outer.

Parameters:
  • outer
    • \iouter.mainToken.type == outerType
    • \iouter.mainToken.text == "outer"
Throws
  • AssertionError

    If the token type is not OUTER or the token text is not outer.

pIdentifierToCeylonSource Codeshared LIdentifier pIdentifierToCeylon(Tree.Identifier identifier)

Converts a RedHat AST Identifier with token type PIDENTIFIER to a ceylon.ast LIdentifier.

There’s no syntactical difference between package and lowercase identifiers, but they have different token types.

Parameters:
  • identifier
    • Need CommonToken to get length of token (!= text’s length for \iCONSTANT)

Throws
packageCompilationUnitToCeylonSource Codeshared PackageCompilationUnit packageCompilationUnitToCeylon(Tree.CompilationUnit packageCompilationUnit)

Converts a RedHat AST CompilationUnit to a ceylon.ast PackageCompilationUnit.

Parameters:
  • packageCompilationUnit
    • Must not have declarations or module descriptors

    • Must have exactly one package descriptor

Throws
  • AssertionError

    If the compilation unit contains module descriptors, declarations, or not exactly one package descriptor

packageDecToCeylonSource Codeshared PackageDec packageDecToCeylon(Tree.PackageLiteral packageDec)

Converts a RedHat AST PackageLiteral to a ceylon.ast PackageDec.

packageDescriptorToCeylonSource Codeshared PackageDescriptor packageDescriptorToCeylon(Tree.PackageDescriptor packageDescriptor)

Converts a RedHat AST PackageDescriptor to a ceylon.ast PackageDescriptor.

packageToCeylonSource Codeshared Package packageToCeylon(Tree.Package package)

Converts a RedHat AST Package to a ceylon.ast Package.

Parameters:
  • package
    • \ipackage.mainToken.type == packageType
    • \ipackage.mainToken.text == "package"
Throws
  • AssertionError

    If the token type is not PACKAGE or the token text is not package.

parameterReferenceToCeylonSource Codeshared ParameterReference parameterReferenceToCeylon(Tree.InitializerParameter parameterReference)

Converts a RedHat AST InitializerParameter to a ceylon.ast ParameterReference.

Parameters:
  • parameterReference
    • Must not be defaulted

parameterToCeylonSource Codeshared Parameter parameterToCeylon(Tree.Parameter parameter)

Converts a RedHat AST Parameter to a ceylon.ast Parameter.

Parameters:
  • parameter
    • is JParameterDeclaration|JInitializerParameter parameter
parametersToCeylonSource Codeshared Parameters parametersToCeylon(Tree.ParameterList parameters)

Converts a RedHat AST ParameterList to a ceylon.ast Parameters.

positionalArgumentsToCeylonSource Codeshared PositionalArguments positionalArgumentsToCeylon(Tree.PositionalArgumentList positionalArguments)

Converts a RedHat AST PositionalArgumentList to a ceylon.ast PositionalArguments.

postfixDecrementOperationToCeylonSource Codeshared PostfixDecrementOperation postfixDecrementOperationToCeylon(Tree.PostfixDecrementOp postfixDecrementOperation)

Converts a RedHat AST PostfixDecrementOp to a ceylon.ast PostfixDecrementOperation.

Parameters:
  • postfixDecrementOperation
    • is JPrimary jPrimary = postfixDecrementOperation.term
postfixIncrementOperationToCeylonSource Codeshared PostfixIncrementOperation postfixIncrementOperationToCeylon(Tree.PostfixIncrementOp postfixIncrementOperation)

Converts a RedHat AST PostfixIncrementOp to a ceylon.ast PostfixIncrementOperation.

Parameters:
  • postfixIncrementOperation
    • is JPrimary jPrimary = postfixIncrementOperation.term
postfixOperationToCeylonSource Codeshared PostfixOperation postfixOperationToCeylon(Tree.PostfixOperatorExpression postfixOperatorExpression)

Converts a RedHat AST PostfixOperatorExpression to a ceylon.ast PostfixOperation.

Parameters:
  • postfixOperatorExpression
    • is JPostfixDecrementOp|JPostfixIncrementOp postfixOperatorExpression
prefixDecrementOperationToCeylonSource Codeshared PrefixDecrementOperation prefixDecrementOperationToCeylon(Tree.DecrementOp prefixDecrementOperation)

Converts a RedHat AST DecrementOp to a ceylon.ast PrefixDecrementOperation.

Parameters:
  • prefixDecrementOperation
    • is JPrimary jPrimary = prefixDecrementOperation.term
prefixIncrementOperationToCeylonSource Codeshared PrefixIncrementOperation prefixIncrementOperationToCeylon(Tree.IncrementOp prefixIncrementOperation)

Converts a RedHat AST IncrementOp to a ceylon.ast PrefixIncrementOperation.

Parameters:
  • prefixIncrementOperation
    • is JPrimary jPrimary = prefixIncrementOperation.term
prefixOperationToCeylonSource Codeshared PrefixOperation prefixOperationToCeylon(Tree.PrefixOperatorExpression prefixOperation)

Converts a RedHat AST PrefixOperatorExpression to a ceylon.ast PrefixOperation.

Parameters:
  • prefixOperation
    • is JDecrementOp|JIncrementOp prefixOperation
prefixPostfixStatementToCeylonSource Codeshared PrefixPostfixStatement prefixPostfixStatementToCeylon(Tree.ExpressionStatement prefixPostfixStatement)

Converts a RedHat AST ExpressionStatement to a ceylon.ast PrefixPostfixStatement.

Parameters:
  • prefixPostfixStatement
    • is JPrefixOperatorExpression|JPostfixOperatorExpression expression = prefixPostfixStatement.expression.term
primaryToCeylonSource Codeshared Primary primaryToCeylon(Tree.Primary primary)

Converts a RedHat AST Primary to a ceylon.ast Primary.

productOperationToCeylonSource Codeshared ProductOperation productOperationToCeylon(Tree.ProductOp productOperation)

Converts a RedHat AST ProductOp to a ceylon.ast ProductOperation.

Parameters:
  • productOperation
    • Check precedence

qualifiedExpressionToCeylonSource Codeshared QualifiedExpression qualifiedExpressionToCeylon(Tree.QualifiedMemberOrTypeExpression qualifiedMemberOrTypeExpression)

Converts a RedHat AST QualifiedMemberOrTypeExpression to a ceylon.ast QualifiedExpression.

qualifiedTypeToCeylonSource Codeshared QualifiedType qualifiedTypeToCeylon(Tree.QualifiedType qualifiedType)

Converts a RedHat AST QualifiedType to a ceylon.ast QualifiedType.

quotientOperationToCeylonSource Codeshared QuotientOperation quotientOperationToCeylon(Tree.QuotientOp divisionOperation)

Converts a RedHat AST QuotientOp to a ceylon.ast QuotientOperation.

Parameters:
  • divisionOperation
    • Check precedence

rangeSubscriptToCeylonSource Codeshared RangeSubscript rangeSubscriptToCeylon(Tree.ElementRange rangeSubscript)

Converts a RedHat AST ElementRange to a ceylon.ast RangeSubscript.

remainderAssignmentOperationToCeylonSource Codeshared RemainderAssignmentOperation remainderAssignmentOperationToCeylon(Tree.RemainderAssignOp remainderAssignmentOperation)

Converts a RedHat AST RemainderAssignOp to a ceylon.ast RemainderAssignmentOperation.

Parameters:
  • remainderAssignmentOperation
    • Check precedence

remainderOperationToCeylonSource Codeshared RemainderOperation remainderOperationToCeylon(Tree.RemainderOp remainderOperation)

Converts a RedHat AST RemainderOp to a ceylon.ast RemainderOperation.

Parameters:
  • remainderOperation
    • Check precedence

requiredParameterToCeylonSource Codeshared RequiredParameter requiredParameterToCeylon(Tree.Parameter requiredParameter)

Converts a RedHat AST Parameter to a ceylon.ast RequiredParameter.

Parameters:
  • requiredParameter
    • is JParameterDeclaration|JInitializerParameter requiredParameter
resourceToCeylonSource Codeshared Resource resourceToCeylon(Tree.Resource resource)

Converts a RedHat AST Resource to a ceylon.ast Resource.

resourcesToCeylonSource Codeshared Resources resourcesToCeylon(Tree.ResourceList resources)

Converts a RedHat AST Resources to ceylon.ast Resources.

Parameters:
  • resources
    • nonempty res = CeylonIterable(resources.resources).collect(resourceToCeylon)
returnToCeylonSource Codeshared Return returnToCeylon(Tree.Return return)

Converts a RedHat AST Return to a ceylon.ast Return.

safeMemberOperatorToCeylonSource Codeshared SafeMemberOperator safeMemberOperatorToCeylon(Tree.SafeMemberOp safeMemberOperator)

Converts a RedHat AST SafeMemberOp to a ceylon.ast SafeMemberOperator.

satisfiedTypesToCeylonSource Codeshared SatisfiedTypes satisfiedTypesToCeylon(Tree.SatisfiedTypes satisfiedTypes)

Converts RedHat AST SatisfiedTypes to ceylon.ast SatisfiedTypes.

scaleOperationToCeylonSource Codeshared ScaleOperation scaleOperationToCeylon(Tree.ScaleOp scaleOperation)

Converts a RedHat AST ScaleOp to a ceylon.ast ScaleOperation.

Parameters:
  • scaleOperation
    • Check precedence

selfReferenceToCeylonSource Codeshared SelfReference selfReferenceToCeylon(Tree.SelfExpression|Tree.Outer|Tree.Package selfReference)

Converts a RedHat AST SelfExpression, Outer or Package to a ceylon.ast SelfReference.

Parameters:
  • selfReference
    • is JThis|JSuper|JOuter|JPackage selfReference
Throws
sequentialTypeToCeylonSource Codeshared SequentialType sequentialTypeToCeylon(Tree.SequenceType sequentialType)

Converts a RedHat AST SequenceType to a ceylon.ast SequentialType.

Parameters:
  • sequentialType
    • is PrimaryType element = typeToCeylon(sequentialType.elementType)
setAssignmentOperationToCeylonSource Codeshared SetAssignmentOperation setAssignmentOperationToCeylon(Tree.BitwiseAssignmentOp setAssignmentOperation)

Converts a RedHat AST BitwiseAssignmentOp to a ceylon.ast SetAssignmentOperation.

Parameters:
  • setAssignmentOperation
    • is JIntersectAssignOp|JUnionAssignOp|JComplementAssignOp setAssignmentOperation
setOperationToCeylonSource Codeshared SetOperation setOperationToCeylon(Tree.BitwiseOp setOperation)

Converts a RedHat AST BitwiseOp to a ceylon.ast SetOperation.

Parameters:
  • setOperation
    • is JIntersectionOp|JUnionOp|JComplementOp setOperation
simpleTypeToCeylonSource Codeshared SimpleType simpleTypeToCeylon(Tree.SimpleType simpleType)

Converts a RedHat AST SimpleType to a ceylon.ast SimpleType.

Parameters:
  • simpleType
    • is JBaseType|JQualifiedType simpleType
smallAsOperationToCeylonSource Codeshared SmallAsOperation smallAsOperationToCeylon(Tree.SmallAsOp smallAsOperation)

Converts a RedHat AST SmallAsOp to a ceylon.ast SmallAsOperation.

Parameters:
  • smallAsOperation
    • Check precedence

smallerOperationToCeylonSource Codeshared SmallerOperation smallerOperationToCeylon(Tree.SmallerOp smallerOperation)

Converts a RedHat AST SmallerOp to a ceylon.ast SmallerOperation.

Parameters:
  • smallerOperation
    • Check precedence

spanFromSubscriptToCeylonSource Codeshared SpanFromSubscript spanFromSubscriptToCeylon(Tree.ElementRange spanFromSubscript)

Converts a RedHat AST ElementRange to a ceylon.ast SpanFromSubscript.

Parameters:
  • spanFromSubscript
    • exists jFrom = spanFromSubscript.lowerBound
    • !spanFromSubscript.upperBound exists
    • !spanFromSubscript.length exists
spanOperationToCeylonSource Codeshared SpanOperation spanOperationToCeylon(Tree.RangeOp spanOperation)

Converts a RedHat AST RangeOp to a ceylon.ast SpanOperation.

Parameters:
  • spanOperation
    • Check precedence

spanSubscriptToCeylonSource Codeshared SpanSubscript spanSubscriptToCeylon(Tree.ElementRange spanSubscript)

Converts a RedHat AST ElementRange to a ceylon.ast SpanSubscript.

Parameters:
  • spanSubscript
    • exists jFrom = spanSubscript.lowerBound
    • exists jTo = spanSubscript.upperBound
    • !spanSubscript.length exists
spanToSubscriptToCeylonSource Codeshared SpanToSubscript spanToSubscriptToCeylon(Tree.ElementRange spanToSubscript)

Converts a RedHat AST ElementRange to a ceylon.ast SpanToSubscript.

Parameters:
  • spanToSubscript
    • exists jTo = spanToSubscript.upperBound
    • !spanToSubscript.lowerBound exists
    • !spanToSubscript.length exists
specificationToCeylonSource Codeshared Specification specificationToCeylon(Tree.SpecifierStatement specification)

Converts a RedHat AST SpecifierStatement to a ceylon.ast Specification.

specifiedArgumentToCeylonSource Codeshared SpecifiedArgument specifiedArgumentToCeylon(Tree.NamedArgument specifiedArgument)

Converts a RedHat AST NamedArgument to a ceylon.ast SpecifiedArgument.

The main RedHat AST type for specified arguments is SpecifiedArgument; however, lazy specifications like

val => "Hello, World!";
comparing(Integer x, Integer y) => x.magnitude <=> y.magnitude;

are instead parsed as AttributeArguments / FunctionArguments with a synthetic ‘function’ / ‘value’ modifier (null token).

specifierToCeylonSource Codeshared Specifier specifierToCeylon(Tree.SpecifierExpression specifier)

Converts a RedHat AST SpecifierExpression to a ceylon.ast Specifier.

Note that this only converts direct specifier expressions; lazy specifier expressions, which in the RedHat AST (LazySpecifierExpression) are a subclass of regular specifier expressions, are not converted and throw an AssertionError.

Parameters:
  • specifier
    • Must be a “wrapper” Expression, not a grouping Expression

    • Must be a regular specifier

Throws
spreadArgumentToCeylonSource Codeshared SpreadArgument spreadArgumentToCeylon(Tree.SpreadArgument spreadArgument)

Converts a RedHat AST SpreadArgument to a ceylon.ast SpreadArgument.

Parameters:
  • spreadArgument
    • Check precedence

spreadMemberOperatorToCeylonSource Codeshared SpreadMemberOperator spreadMemberOperatorToCeylon(Tree.SpreadOp spreadMemberOperator)

Converts a RedHat AST SpreadOp to a ceylon.ast SpreadMemberOperator.

statementToCeylonSource Codeshared Statement statementToCeylon(Tree.ExecutableStatement statement)

Converts a RedHat AST ExecutableStatement to a ceylon.ast Statement.

(RedHat AST’s Statement is the supertype of Declaration and ExecutableStatement and used as Declaration|Statement in Body.)

Parameters:
  • statement
    • is JSpecifierStatement|JExpressionStatement|JAssertion|JDirective|JControlStatement statement
stringLiteralToCeylonSource Codeshared StringLiteral stringLiteralToCeylon(Tree.StringLiteral stringLiteral)

Converts a RedHat AST StringLiteral to a ceylon.ast StringLiteral.

Parameters:
  • stringLiteral
    • is CommonToken token = stringLiteral.mainToken
Throws
  • AssertionError

    If the token type is neither STRING_LITERAL nor VERBATIM_STRING nor ASTRING_LITERAL nor AVERBATIM_STRING.

stringTemplateToCeylonSource Codeshared StringTemplate stringTemplateToCeylon(Tree.StringTemplate stringTemplate)

Converts a RedHat AST StringTemplate to a ceylon.ast StringTemplate.

Parameters:
  • stringTemplate
    • nonempty expressions = CeylonIterable(stringTemplate.expressions).collect(valueExpressionToCeylon)
subscriptToCeylonSource Codeshared Subscript subscriptToCeylon(Tree.ElementOrRange subscript)

Converts a RedHat AST ElementOrRange to a ceylon.ast Subscript.

Parameters:
  • subscript
    • is JElement|JElementRange subscript
subtractAssignmentOperationToCeylonSource Codeshared SubtractAssignmentOperation subtractAssignmentOperationToCeylon(Tree.SubtractAssignOp subtractAssignmentOperation)

Converts a RedHat AST SubtractAssignOp to a ceylon.ast SubtractAssignmentOperation.

Parameters:
  • subtractAssignmentOperation
    • Check precedence

sumOperationToCeylonSource Codeshared SumOperation sumOperationToCeylon(Tree.SumOp sumOperation)

Converts a RedHat AST SumOp to a ceylon.ast SumOperation.

Parameters:
  • sumOperation
    • Check precedence

superToCeylonSource Codeshared Super superToCeylon(Tree.Super super)

Converts a RedHat AST Super to a ceylon.ast Super.

Parameters:
  • super
    • \isuper.mainToken.type == superType
    • \isuper.mainToken.text == "super"
Throws
  • AssertionError

    If the token type is not SUPER or the token text is not super.

switchCaseElseToCeylonSource Codeshared SwitchCaseElse switchCaseElseToCeylon(Tree.SwitchStatement switchCaseElse)

Converts a RedHat AST SwitchStatement to a ceylon.ast SwitchCaseElse.

switchCasesToCeylonSource Codeshared SwitchCases switchCasesToCeylon(Tree.SwitchCaseList switchCases)

Converts a RedHat AST SwitchCaseList to a ceylon.ast SwitchCases.

Parameters:
  • switchCases
    • nonempty caseClauses = CeylonIterable(switchCases.caseClauses).collect(caseClauseToCeylon)
switchClauseToCeylonSource Codeshared SwitchClause switchClauseToCeylon(Tree.SwitchClause switchClause)

Converts a RedHat AST SwitchClause to a ceylon.ast SwitchClause.

thenOperationToCeylonSource Codeshared ThenOperation thenOperationToCeylon(Tree.ThenOp thenOperation)

Converts a RedHat AST ThenOp to a ceylon.ast ThenOperation.

Parameters:
  • thenOperation
    • Check precedence

thisToCeylonSource Codeshared This thisToCeylon(Tree.This this)

Converts a RedHat AST This to a ceylon.ast This.

Parameters:
  • this
    • \ithis.mainToken.type == thisType
    • \ithis.mainToken.text == "this"
Throws
  • AssertionError

    If the token type is not THIS or the token text is not this.

throwToCeylonSource Codeshared Throw throwToCeylon(Tree.Throw throw)

Converts a RedHat AST Throw to a ceylon.ast Throw.

tryCatchFinallyToCeylonSource Codeshared TryCatchFinally tryCatchFinallyToCeylon(Tree.TryCatchStatement tryCatchFinally)

Converts a RedHat AST TryCatchFinally to a ceylon.ast TryCatchFinally.

tryClauseToCeylonSource Codeshared TryClause tryClauseToCeylon(Tree.TryClause tryClause)

Converts a RedHat AST TryClause to a ceylon.ast TryClause.

tupleToCeylonSource Codeshared Tuple tupleToCeylon(Tree.Tuple tuple)

Converts a RedHat AST Tuple to a ceylon.ast Tuple.

tupleTypeToCeylonSource Codeshared TupleType tupleTypeToCeylon(Tree.TupleType tupleType)

Converts a RedHat AST TupleType to a ceylon.ast TupleType.

typeAliasDefinitionToCeylonSource Codeshared TypeAliasDefinition typeAliasDefinitionToCeylon(Tree.TypeAliasDeclaration typeAliasDefinition)

Converts a RedHat AST TypeAliasDeclaration to a ceylon.ast TypeAliasDefinition.

typeArgumentsToCeylonSource Codeshared TypeArguments typeArgumentsToCeylon(Tree.TypeArgumentList typeArguments)

Converts RedHat AST TypeArgumentList to ceylon.ast TypeArguments.

(This function does not accept TypeArguments, which include InferredTypeArguments; use anyTypeArgumentsToCeylon() for that.)

typeConstraintToCeylonSource Codeshared TypeConstraint typeConstraintToCeylon(Tree.TypeConstraint typeConstraint)

Converts a RedHat AST TypeConstraint to a ceylon.ast TypeConstraint.

Parameters:
  • typeConstraint
    • Type parameters with possible instantiation not supported

    • Lower bound type constraint not supported

typeDecToCeylonSource Codeshared TypeDec typeDecToCeylon(Tree.TypeLiteral typeDec)

Converts a RedHat AST TypeLiteral to a ceylon.ast TypeDec.

Parameters:
  • typeDec