Examples of VariableBinding


Examples of com.clarkparsia.pellet.rules.VariableBinding

      for ( int i = 0; i < arguments.length; i++ ) {
        arguments[i] = newBinding.get( atom.getAllArguments().get( i ) );
      }
     
      if ( function.apply( newBinding.getABox(), arguments ) ) {
        VariableBinding newPartial = new VariableBinding( newBinding.getABox() );
        for ( int i = 0; i < arguments.length; i++ ) {
          AtomDObject arg = atom.getAllArguments().get( i );
          Literal result = arguments[ i ];
          Literal current = newBinding.get( arg );
         
View Full Code Here

Examples of com.dragome.compiler.ast.VariableBinding

    String firstArg;
    if (!(args.get(0) instanceof StringLiteral))
    {
      if (args.get(0) instanceof VariableBinding)
      {
        VariableBinding variableBinding= (VariableBinding) args.get(0);
        firstArg= variableBinding.getName();
      }
      else
        throw new RuntimeException("First argument to " + methodBinding + " must be a string literal");
    }
    else
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.VariableBinding

*/
public void complainOnDeferredChecks(FlowInfo flowInfo, BlockScope scope) {
 
  // check redundant final assignments
  for (int i = 0; i < this.assignCount; i++) {
    VariableBinding variable = this.finalVariables[i];
    if (variable == null) continue;
   
    boolean complained = false; // remember if have complained on this final assignment
    if (variable instanceof FieldBinding) {
      // final field
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.VariableBinding

* @param flowInfo the flow info against which checks must be performed
*/
public void complainOnDeferredFinalChecks(BlockScope scope, FlowInfo flowInfo) {
  // complain on final assignments in loops
  for (int i = 0; i < assignCount; i++) {
    VariableBinding variable = finalVariables[i];
    if (variable == null) continue;
    boolean complained = false; // remember if have complained on this final assignment
    if (variable instanceof FieldBinding) {
      if (flowInfo.isPotentiallyAssigned((FieldBinding) variable)) {
        complained = true;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.VariableBinding

          VariableBinding[] vars = currentMethodScope.getEmulationPath(localBinding);
          if (vars == null) {
            return null;
          }
          assert (vars.length == 1);
          VariableBinding varBinding = vars[0];

          // See if there's an available parameter
          if (varBinding instanceof SyntheticArgumentBinding) {
            JType type = (JType) typeMap.get(varBinding.type);
            String name = String.valueOf(varBinding.name);
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.VariableBinding

          VariableBinding[] vars = currentMethodScope.getEmulationPath(localBinding);
          if (vars == null) {
            return null;
          }
          assert (vars.length == 1);
          VariableBinding varBinding = vars[0];

          // See if there's an available parameter
          if (varBinding instanceof SyntheticArgumentBinding) {
            JType type = (JType) typeMap.get(varBinding.type);
            String name = String.valueOf(varBinding.name);
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.VariableBinding

*/
public void complainOnDeferredChecks(FlowInfo flowInfo, BlockScope scope) {

  // check redundant final assignments
  for (int i = 0; i < this.assignCount; i++) {
    VariableBinding variable = this.finalVariables[i];
    if (variable == null) continue;

    boolean complained = false; // remember if have complained on this final assignment
    if (variable instanceof FieldBinding) {
      // final field
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.VariableBinding

* @param flowInfo the flow info against which checks must be performed
*/
public void complainOnDeferredFinalChecks(BlockScope scope, FlowInfo flowInfo) {
  // complain on final assignments in loops
  for (int i = 0; i < this.assignCount; i++) {
    VariableBinding variable = this.finalVariables[i];
    if (variable == null) continue;
    boolean complained = false; // remember if have complained on this final assignment
    if (variable instanceof FieldBinding) {
      if (flowInfo.isPotentiallyAssigned((FieldBinding) variable)) {
        complained = true;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.VariableBinding

  if (this.binding.isValidBinding()) {
    switch (this.bits & ASTNode.RestrictiveFlagMASK) {
      case Binding.VARIABLE : // =========only variable============
      case Binding.VARIABLE | Binding.TYPE : //====both variable and type============
        if (this.binding instanceof VariableBinding) {
          VariableBinding variable = (VariableBinding) this.binding;
          TypeBinding variableType;
          if (this.binding instanceof LocalVariableBinding) {
            this.bits &= ~ASTNode.RestrictiveFlagMASK;  // clear bits
            this.bits |= Binding.LOCAL;
            if (!variable.isFinal() && (this.bits & ASTNode.DepthMASK) != 0) {
              scope.problemReporter().cannotReferToNonFinalOuterLocal((LocalVariableBinding)variable, this);
            }
            variableType = variable.type;
            this.constant = (this.bits & ASTNode.IsStrictlyAssigned) == 0 ? variable.constant() : Constant.NotAConstant;
          } else {
            // a field
            variableType = checkFieldAccess(scope);
          }
          // perform capture conversion if read access
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.VariableBinding

          VariableBinding[] vars = currentMethodScope.getEmulationPath(localBinding);
          if (vars == null) {
            return null;
          }
          assert (vars.length == 1);
          VariableBinding varBinding = vars[0];

          // See if there's an available parameter
          if (varBinding instanceof SyntheticArgumentBinding) {
            JType type = (JType) typeMap.get(varBinding.type);
            String name = String.valueOf(varBinding.name);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.